Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 2, 2024
1 parent a827909 commit 487887d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions _typos.tom
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[default.extend-words]
testng = "testng"

Check warning on line 2 in _typos.tom

View workflow job for this annotation

GitHub Actions / Spell Check

"testng" should be "testing".

Check warning on line 2 in _typos.tom

View workflow job for this annotation

GitHub Actions / Spell Check

"testng" should be "testing".
afe = "afe"
Bouned = "Bouned"

[type.po]
extend-glob = ["**/tests/testdata/**"]
Expand Down
2 changes: 1 addition & 1 deletion cli/docs/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ var flagsMap = map[string]components.Flag{
InputFile: components.NewStringFlag(InputFile, "Path to an input file in YAML format contains multiple git providers. With this option, all other scm flags will be ignored and only git servers mentioned in the file will be examined.."),
ScmType: components.NewStringFlag(ScmType, fmt.Sprintf("SCM type. Possible values are: %s.", git.NewScmType().GetValidScmTypeString()), components.SetMandatory()),
ScmApiUrl: components.NewStringFlag(ScmApiUrl, "SCM API URL. For example: 'https://api.github.com'.", components.SetMandatory()),
Token: components.NewStringFlag(Token, fmt.Sprintf("SCM API token. In the absence of a flag, tokens should be passed in the %s enviroment variable, or in the corresponding environment variables '%s'.", git.GenericGitTokenEnvVar, git.NewScmType().GetOptionalScmTypeTokenEnvVars()), components.SetMandatory()),
Token: components.NewStringFlag(Token, fmt.Sprintf("SCM API token. In the absence of a flag, tokens should be passed in the %s environment variable, or in the corresponding environment variables '%s'.", git.GenericGitTokenEnvVar, git.NewScmType().GetOptionalScmTypeTokenEnvVars()), components.SetMandatory()),
Owner: components.NewStringFlag(Owner, "The format of the owner key depends on the Git provider: On GitHub and GitLab, the owner is typically an individual or an organization, On Bitbucket, the owner can also be a project. In the case of a private instance on Bitbucket, the individual or organization name should be prefixed with '~'.", components.SetMandatory()),
RepoName: components.NewStringFlag(RepoName, "List of semicolon-separated(;) repositories names to analyze, If not provided all repositories related to the provided owner will be analyzed."),
Months: components.NewStringFlag(Months, "Number of months to analyze.", components.WithIntDefaultValue(git.DefaultContContributorsMonths)),
Expand Down
2 changes: 1 addition & 1 deletion cli/gitcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func GetCountContributorsParams(c *components.Context) (*git.CountContributorsPa
if envVarToken != "" {
params.Token = envVarToken
} else {
return nil, errorutils.CheckErrorf("Providing a token is mandatory. should use --%s flag, the token enviromment variable %s, or coresponding provider enviromment variable %s.", flags.Token, git.GenericGitTokenEnvVar, scmTypes.GetOptionalScmTypeTokenEnvVars())
return nil, errorutils.CheckErrorf("Providing a token is mandatory. should use --%s flag, the token environment variable %s, or corresponding provider environment variable %s.", flags.Token, git.GenericGitTokenEnvVar, scmTypes.GetOptionalScmTypeTokenEnvVars())
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions commands/curation/curationaudit.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const (
MinArtiPassThroughSupport = "7.82.0"
MinArtiGolangSupport = "7.87.0"
MinArtiNuGetSupport = "7.93.0"
MinXrayPassTHroughSupport = "3.92.0"
MinXrayPassThroughSupport = "3.92.0"
)

var CurationOutputFormats = []string{string(outFormat.Table), string(outFormat.Json)}
Expand Down Expand Up @@ -105,7 +105,7 @@ func (ca *CurationAuditCommand) checkSupportByVersionOrEnv(tech techutils.Techno
return false, err
}

xrayVersionErr := clientutils.ValidateMinimumVersion(clientutils.Xray, xrayVersion, MinXrayPassTHroughSupport)
xrayVersionErr := clientutils.ValidateMinimumVersion(clientutils.Xray, xrayVersion, MinXrayPassThroughSupport)
rtVersionErr := clientutils.ValidateMinimumVersion(clientutils.Artifactory, artiVersion, minArtiVersion)
if xrayVersionErr != nil || rtVersionErr != nil {
return false, errors.Join(xrayVersionErr, rtVersionErr)
Expand Down
2 changes: 1 addition & 1 deletion commands/scan/buildscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (bsc *BuildScanCommand) runBuildScanAndPrintResults(xrayManager *xray.XrayS
return false, err
}

// A patch for Xray issue where it returns Base URL from the API but it is somtimes not the URL that is configured in the CLI
// A patch for Xray issue where it returns Base URL from the API but it is sometimes not the URL that is configured in the CLI
// More info in https://jfrog-int.atlassian.net/browse/XRAY-77451

url, endpoint, trimerr := trimUrl(buildScanResults.MoreDetailsUrl)
Expand Down

0 comments on commit 487887d

Please sign in to comment.