Skip to content

Commit bfdad63

Browse files
authored
chore: enable misspell linter (#672)
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent a093a76 commit bfdad63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ linters:
1717
- govet
1818
- importas
1919
- ineffassign
20-
# - misspell
20+
- misspell
2121
# Disabled because of https://github.com/argoproj/argo-cd/issues/21705
2222
# - nolintlint
2323
# - perfsprint

pkg/cache/cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ func Test_watchEvents_Deadlock(t *testing.T) {
13071307
require.True(t, v)
13081308
case <-time.After(10 * time.Second):
13091309
hasDeadlock = true
1310-
t.Errorf("timeout reached on attempt %d. It is possible that a deadlock occured", i)
1310+
t.Errorf("timeout reached on attempt %d. It is possible that a deadlock occurred", i)
13111311
// Tip: to debug the deadlock, increase the timer to a value higher than X in "go test -timeout X"
13121312
// This will make the test panic with the goroutines information
13131313
t.FailNow()

pkg/sync/resource/annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func GetAnnotationCSVs(obj AnnotationGetter, key string) []string {
3030
}
3131

3232
// HasAnnotationOption will return if the given obj has an annotation defined
33-
// as the given key and has in its values, the ocurrence of val.
33+
// as the given key and has in its values, the occurrence of val.
3434
func HasAnnotationOption(obj AnnotationGetter, key, val string) bool {
3535
for _, item := range GetAnnotationCSVs(obj, key) {
3636
if item == val {

0 commit comments

Comments
 (0)