|
| 1 | +version: "2" |
| 2 | + |
| 3 | +formatters: |
| 4 | + enable: |
| 5 | + - gci |
| 6 | + - gofumpt |
| 7 | + settings: |
| 8 | + gofumpt: |
| 9 | + extra-rules: true |
| 10 | + |
1 | 11 | linters: |
2 | | - enable-all: true |
| 12 | + default: all |
3 | 13 | disable: |
4 | | - - exportloopref # deprecated |
5 | | - - rowserrcheck # not relevant (SQL) |
6 | | - - sqlclosecheck # not relevant (SQL) |
7 | 14 | - cyclop # duplicate of gocyclo |
8 | 15 | - dupl |
| 16 | + - err113 |
| 17 | + - errcheck # FIXME(ldez) must be fixed |
9 | 18 | - exhaustive |
10 | 19 | - exhaustruct |
11 | 20 | - forbidigo |
12 | 21 | - gochecknoglobals |
13 | 22 | - gochecknoinits |
14 | | - - err113 |
15 | | - - mnd |
| 23 | + - gosmopolitan |
| 24 | + - gosec # FIXME(ldez) must be fixed |
16 | 25 | - lll |
| 26 | + - misspell |
| 27 | + - mnd |
| 28 | + - nakedret # FIXME(ldez) must be fixed |
17 | 29 | - nilnil |
18 | 30 | - nlreturn |
| 31 | + - nonamedreturns # FIXME(ldez) must be fixed |
19 | 32 | - paralleltest |
20 | 33 | - prealloc |
| 34 | + - rowserrcheck # not relevant (SQL) |
| 35 | + - sqlclosecheck # not relevant (SQL) |
21 | 36 | - testpackage |
22 | 37 | - tparallel |
23 | 38 | - varnamelen |
24 | 39 | - wrapcheck |
25 | | - - wsl |
26 | | - - misspell |
27 | | - - gosec # FIXME(ldez) must be fixed |
28 | | - - errcheck # FIXME(ldez) must be fixed |
29 | | - - nonamedreturns # FIXME(ldez) must be fixed |
30 | | - - nakedret # FIXME(ldez) must be fixed |
| 40 | + - wsl # FIXME(ldez) must be fixed |
31 | 41 |
|
32 | | -linters-settings: |
33 | | - govet: |
34 | | - enable-all: true |
35 | | - disable: |
36 | | - - fieldalignment |
37 | | - gocyclo: |
38 | | - min-complexity: 16 |
39 | | - goconst: |
40 | | - min-len: 3 |
41 | | - min-occurrences: 3 |
42 | | - misspell: |
43 | | - locale: US |
44 | | - funlen: |
45 | | - lines: -1 |
46 | | - statements: 40 |
47 | | - gofumpt: |
48 | | - extra-rules: true |
49 | | - depguard: |
| 42 | + settings: |
| 43 | + depguard: |
| 44 | + rules: |
| 45 | + main: |
| 46 | + deny: |
| 47 | + - pkg: github.com/instana/testify |
| 48 | + desc: not allowed |
| 49 | + - pkg: github.com/pkg/errors |
| 50 | + desc: Should be replaced by standard lib errors package |
| 51 | + forbidigo: |
| 52 | + forbid: |
| 53 | + - pattern: ^print(ln)?$ |
| 54 | + - pattern: ^panic$ |
| 55 | + - pattern: ^spew\.Print(f|ln)?$ |
| 56 | + - pattern: ^spew\.Dump$ |
| 57 | + funlen: |
| 58 | + lines: -1 |
| 59 | + statements: 40 |
| 60 | + goconst: |
| 61 | + min-len: 3 |
| 62 | + min-occurrences: 3 |
| 63 | + gocritic: |
| 64 | + disabled-checks: |
| 65 | + - sloppyReassign |
| 66 | + - rangeValCopy |
| 67 | + - octalLiteral |
| 68 | + - paramTypeCombine # already handle by gofumpt.extra-rules |
| 69 | + - exitAfterDefer # FIXME(ldez) must be fixed |
| 70 | + - ifElseChain # FIXME(ldez) must be fixed |
| 71 | + enabled-tags: |
| 72 | + - diagnostic |
| 73 | + - style |
| 74 | + - performance |
| 75 | + settings: |
| 76 | + hugeParam: |
| 77 | + sizeThreshold: 100 |
| 78 | + gocyclo: |
| 79 | + min-complexity: 16 |
| 80 | + godox: |
| 81 | + keywords: |
| 82 | + - FIXME |
| 83 | + govet: |
| 84 | + disable: |
| 85 | + - fieldalignment |
| 86 | + enable-all: true |
| 87 | + misspell: |
| 88 | + locale: US |
| 89 | + |
| 90 | + exclusions: |
| 91 | + warn-unused: true |
| 92 | + presets: |
| 93 | + - comments |
50 | 94 | rules: |
51 | | - main: |
52 | | - deny: |
53 | | - - pkg: "github.com/instana/testify" |
54 | | - desc: not allowed |
55 | | - - pkg: "github.com/pkg/errors" |
56 | | - desc: Should be replaced by standard lib errors package |
57 | | - godox: |
58 | | - keywords: |
59 | | - - FIXME |
60 | | - gocritic: |
61 | | - enabled-tags: |
62 | | - - diagnostic |
63 | | - - style |
64 | | - - performance |
65 | | - disabled-checks: |
66 | | - - sloppyReassign |
67 | | - - rangeValCopy |
68 | | - - octalLiteral |
69 | | - - paramTypeCombine # already handle by gofumpt.extra-rules |
70 | | - - exitAfterDefer # FIXME(ldez) must be fixed |
71 | | - - ifElseChain # FIXME(ldez) must be fixed |
72 | | - settings: |
73 | | - hugeParam: |
74 | | - sizeThreshold: 100 |
75 | | - forbidigo: |
76 | | - forbid: |
77 | | - - '^print(ln)?$' |
78 | | - - '^panic$' |
79 | | - - '^spew\.Print(f|ln)?$' |
80 | | - - '^spew\.Dump$' |
| 95 | + - linters: |
| 96 | + - funlen |
| 97 | + - goconst |
| 98 | + path: .*_test.go |
81 | 99 |
|
82 | 100 | issues: |
83 | | - exclude-use-default: false |
84 | 101 | max-issues-per-linter: 0 |
85 | 102 | max-same-issues: 0 |
86 | | - exclude: |
87 | | - - 'ST1000: at least one file in a package should have a package comment' |
88 | | - - 'package-comments: should have a package comment' |
89 | | - exclude-rules: |
90 | | - - path: .*_test.go |
91 | | - linters: |
92 | | - - funlen |
93 | | - - goconst |
94 | | - |
95 | | -run: |
96 | | - timeout: 2m |
|
0 commit comments