Skip to content

Commit 6c08ed1

Browse files
authored
Merge pull request #3894 from PG2000/patch-1
✨ chore: add ginkgolinter
2 parents 19bf0c7 + ec805f8 commit 6c08ed1

File tree

14 files changed

+101
-92
lines changed

14 files changed

+101
-92
lines changed

.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ linters:
6868
- dupl
6969
- errcheck
7070
- exportloopref
71+
- ginkgolinter
7172
- goconst
7273
- gocyclo
7374
- gofmt

docs/book/src/cronjob-tutorial/testdata/project/.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ linters:
2222
- dupl
2323
- errcheck
2424
- exportloopref
25+
- ginkgolinter
2526
- goconst
2627
- gocyclo
2728
- gofmt

docs/book/src/getting-started/testdata/project/.golangci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ linters:
2222
- dupl
2323
- errcheck
2424
- exportloopref
25+
- ginkgolinter
2526
- goconst
2627
- gocyclo
2728
- gofmt

pkg/cli/cli_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ plugins:
372372
c.projectVersion = projectVersion
373373

374374
Expect(c.resolvePlugins()).To(Succeed())
375-
Expect(len(c.resolvedPlugins)).To(Equal(1))
375+
Expect(c.resolvedPlugins).To(HaveLen(1))
376376
Expect(plugin.KeyFor(c.resolvedPlugins[0])).To(Equal(qualified))
377377
},
378378
Entry("fully qualified plugin", "foo.example.com/v1", "foo.example.com/v1"),

0 commit comments

Comments
 (0)