Skip to content

Commit

Permalink
Spelling fixes (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Nov 9, 2021
1 parent 0680c75 commit f1f0056
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -358,7 +358,7 @@ Then generate the types with :
schema-generate -i sarif-schema-2.1.0.json -o mypath/types.go
```

Most of the MarshallJSON/UnmarshalJSON are removed except the one for PropertyBag which is handy to inline the additionnal properties. The rest can be removed.
Most of the MarshallJSON/UnmarshalJSON are removed except the one for PropertyBag which is handy to inline the additional properties. The rest can be removed.
The URI,ID, UUID, GUID were renamed so it fits the Golang convention defined [here](https://github.com/golang/lint/blob/master/lint.go#L700)

### Tests
Expand Down
2 changes: 1 addition & 1 deletion analyzer.go
Expand Up @@ -113,7 +113,7 @@ func NewAnalyzer(conf Config, tests bool, excludeGenerated bool, logger *log.Log
}
}

// SetConfig upates the analyzer configuration
// SetConfig updates the analyzer configuration
func (gosec *Analyzer) SetConfig(conf Config) {
gosec.config = conf
}
Expand Down
14 changes: 7 additions & 7 deletions cmd/gosec/sort_issues_test.go
Expand Up @@ -38,16 +38,16 @@ func firstIsGreater(less, greater *gosec.Issue) {
}

var _ = Describe("Sorting by Severity", func() {
It("sortes by severity", func() {
It("sorts by severity", func() {
less := createIssue()
less.Severity = gosec.Low
greater := createIssue()
less.Severity = gosec.High
firstIsGreater(&less, &greater)
})

Context("Serverity is same", func() {
It("sortes by What", func() {
Context("Severity is same", func() {
It("sorts by What", func() {
less := createIssue()
less.What = "test1"
greater := createIssue()
Expand All @@ -56,8 +56,8 @@ var _ = Describe("Sorting by Severity", func() {
})
})

Context("Serverity and What is same", func() {
It("sortes by File", func() {
Context("Severity and What is same", func() {
It("sorts by File", func() {
less := createIssue()
less.File = "test1"
greater := createIssue()
Expand All @@ -67,8 +67,8 @@ var _ = Describe("Sorting by Severity", func() {
})
})

Context("Serverity, What and File is same", func() {
It("sortes by line number", func() {
Context("Severity, What and File is same", func() {
It("sorts by line number", func() {
less := createIssue()
less.Line = "1"
greater := createIssue()
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Expand Up @@ -20,7 +20,7 @@ func NewError(line, column int, err string) *Error {
}
}

// sortErros sorts the golang erros by line
// sortErrors sorts the golang errors by line
func sortErrors(allErrors map[string][]Error) {
for _, errors := range allErrors {
sort.Slice(errors, func(i, j int) bool {
Expand Down
16 changes: 8 additions & 8 deletions report/sarif/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1f0056

Please sign in to comment.