|
| 1 | +version: "2" |
| 2 | + |
1 | 3 | linters: |
2 | 4 | enable: |
3 | 5 | - staticcheck |
4 | 6 | - unconvert |
5 | | - - gofmt |
6 | | - - goimports |
7 | 7 | - ineffassign |
8 | | - - vet |
| 8 | + - govet |
9 | 9 | - unused |
10 | 10 | - misspell |
11 | 11 | - revive |
12 | 12 | disable: |
13 | 13 | - errcheck |
| 14 | + exclusions: |
| 15 | + rules: |
| 16 | + # We have protoc-generated ttRPC/gRPC code. When adding extra functions |
| 17 | + # for generated types we want to consistently violate golint's semantic |
| 18 | + # function name spelling rules, instead of inconsistently doing so only |
| 19 | + # from automatically generated files. These rules are for that. |
| 20 | + - path: pkg/adaptation/result.go |
| 21 | + linters: |
| 22 | + - golint |
| 23 | + - revive |
| 24 | + text: "should be claim" |
| 25 | + # Differ copies pods and containers with Mutexes for diffing. Should be harmless. |
| 26 | + - path: plugins/differ/nri-differ.go |
| 27 | + linters: |
| 28 | + - govet |
| 29 | + text: "copylocks: .*protobuf/internal/impl.MessageState.*" |
| 30 | + # We dot-import ginkgo and gomega in some tests. Silence any related errors. |
| 31 | + - path: 'pkg/adaptation|pkg/runtime-tools/generate|pkg/net/multiplex' |
| 32 | + linters: |
| 33 | + - revive |
| 34 | + text: "dot-imports:" |
| 35 | + - linters: |
| 36 | + - revive |
| 37 | + text: "package-comments:" |
14 | 38 |
|
15 | | -issues: |
16 | | - include: |
17 | | - - EXC0002 |
18 | | - exclude-rules: |
19 | | - # We have protoc-generated ttRPC/gRPC code. When adding extra functions |
20 | | - # for generated types we want to consistently violate golint's semantic |
21 | | - # function name spelling rules, instead of inconsistently doing so only |
22 | | - # from automatically generated files. These rules are for that. |
23 | | - - path: pkg/adaptation/result.go |
24 | | - linters: |
25 | | - - golint |
26 | | - - revive |
27 | | - text: "should be claim" |
28 | | - # Ignore naming violation in the test suite as well. |
29 | | - - path: pkg/adaptation/adaptation_suite_test.go |
30 | | - linters: |
31 | | - - golint |
32 | | - - revive |
33 | | - text: "should be strip" |
34 | | - # Differ copies pods and containers with Mutexes for diffing. Should be harmless. |
35 | | - - path: plugins/differ/nri-differ.go |
36 | | - linters: |
37 | | - - govet |
38 | | - text: "copylocks: .*protobuf/internal/impl.MessageState.*" |
39 | | - # We dot-import ginkgo and gomega in some tests. Silence any related errors. |
40 | | - - path: 'pkg/adaptation|pkg/runtime-tools/generate|pkg/net/multiplex' |
41 | | - text: "dot-imports:" |
| 39 | +formatters: |
| 40 | + enable: |
| 41 | + - gofmt |
| 42 | + - goimports |
42 | 43 |
|
43 | 44 | run: |
44 | 45 | timeout: 2m |
0 commit comments