Skip to content

Commit f1f0056

Browse files
authored
Spelling fixes (#717)
1 parent 0680c75 commit f1f0056

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Then generate the types with :
358358
schema-generate -i sarif-schema-2.1.0.json -o mypath/types.go
359359
```
360360

361-
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.
361+
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.
362362
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)
363363

364364
### Tests

analyzer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func NewAnalyzer(conf Config, tests bool, excludeGenerated bool, logger *log.Log
113113
}
114114
}
115115

116-
// SetConfig upates the analyzer configuration
116+
// SetConfig updates the analyzer configuration
117117
func (gosec *Analyzer) SetConfig(conf Config) {
118118
gosec.config = conf
119119
}

cmd/gosec/sort_issues_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ func firstIsGreater(less, greater *gosec.Issue) {
3838
}
3939

4040
var _ = Describe("Sorting by Severity", func() {
41-
It("sortes by severity", func() {
41+
It("sorts by severity", func() {
4242
less := createIssue()
4343
less.Severity = gosec.Low
4444
greater := createIssue()
4545
less.Severity = gosec.High
4646
firstIsGreater(&less, &greater)
4747
})
4848

49-
Context("Serverity is same", func() {
50-
It("sortes by What", func() {
49+
Context("Severity is same", func() {
50+
It("sorts by What", func() {
5151
less := createIssue()
5252
less.What = "test1"
5353
greater := createIssue()
@@ -56,8 +56,8 @@ var _ = Describe("Sorting by Severity", func() {
5656
})
5757
})
5858

59-
Context("Serverity and What is same", func() {
60-
It("sortes by File", func() {
59+
Context("Severity and What is same", func() {
60+
It("sorts by File", func() {
6161
less := createIssue()
6262
less.File = "test1"
6363
greater := createIssue()
@@ -67,8 +67,8 @@ var _ = Describe("Sorting by Severity", func() {
6767
})
6868
})
6969

70-
Context("Serverity, What and File is same", func() {
71-
It("sortes by line number", func() {
70+
Context("Severity, What and File is same", func() {
71+
It("sorts by line number", func() {
7272
less := createIssue()
7373
less.Line = "1"
7474
greater := createIssue()

errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func NewError(line, column int, err string) *Error {
2020
}
2121
}
2222

23-
// sortErros sorts the golang erros by line
23+
// sortErrors sorts the golang errors by line
2424
func sortErrors(allErrors map[string][]Error) {
2525
for _, errors := range allErrors {
2626
sort.Slice(errors, func(i, j int) bool {

report/sarif/types.go

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)