|
1 | | -run: |
2 | | - timeout: 5m |
3 | | - |
| 1 | +version: "2" |
4 | 2 | linters: |
5 | 3 | enable: |
6 | 4 | - bodyclose |
7 | 5 | - containedctx |
8 | | - - gofmt |
9 | | - - govet |
10 | | - - ineffassign |
| 6 | + - exhaustive |
| 7 | + - gocritic |
11 | 8 | - misspell |
| 9 | + - nakedret |
12 | 10 | - noctx |
13 | 11 | - perfsprint |
| 12 | + - predeclared |
| 13 | + - revive |
14 | 14 | - rowserrcheck |
15 | 15 | - sloglint |
16 | 16 | - sqlclosecheck |
17 | | - - staticcheck |
18 | | - - usetesting |
19 | 17 | - unconvert |
20 | | - - unused |
21 | | - - gocritic |
22 | | - - nakedret |
23 | | - - predeclared |
24 | | - - revive |
25 | | - - exhaustive |
| 18 | + - usetesting |
26 | 19 | disable: |
27 | 20 | - errcheck |
28 | 21 | - gosec |
29 | | - - gosimple |
30 | | - |
31 | | -linters-settings: |
32 | | - errcheck: |
33 | | - exclude-functions: [github.com/go-kit/kit/log:Log] |
34 | | - gofmt: |
35 | | - simplify: false |
36 | | - gocritic: |
37 | | - disabled-checks: |
38 | | - - ifElseChain |
39 | | - - elseif |
40 | | - sloglint: |
41 | | - kv-only: true |
42 | | - context: "all" |
43 | | - key-naming-case: snake |
44 | | - static-msg: true |
45 | | - revive: |
| 22 | + settings: |
| 23 | + errcheck: |
| 24 | + exclude-functions: |
| 25 | + - github.com/go-kit/kit/log:Log |
| 26 | + gocritic: |
| 27 | + disabled-checks: |
| 28 | + - ifElseChain |
| 29 | + - elseif |
| 30 | + revive: |
| 31 | + rules: |
| 32 | + - name: superfluous-else |
| 33 | + arguments: |
| 34 | + - preserveScope |
| 35 | + severity: warning |
| 36 | + disabled: false |
| 37 | + - name: package-comments |
| 38 | + disabled: false |
| 39 | + - name: context-as-argument |
| 40 | + disabled: false |
| 41 | + - name: context-keys-type |
| 42 | + disabled: false |
| 43 | + - name: error-return |
| 44 | + disabled: false |
| 45 | + - name: errorf |
| 46 | + disabled: false |
| 47 | + - name: unreachable-code |
| 48 | + disabled: false |
| 49 | + - name: early-return |
| 50 | + disabled: false |
| 51 | + - name: confusing-naming |
| 52 | + disabled: false |
| 53 | + - name: defer |
| 54 | + disabled: false |
| 55 | + sloglint: |
| 56 | + kv-only: true |
| 57 | + context: all |
| 58 | + static-msg: true |
| 59 | + key-naming-case: snake |
| 60 | + staticcheck: |
| 61 | + checks: |
| 62 | + - all |
| 63 | + exclusions: |
| 64 | + generated: lax |
| 65 | + presets: |
| 66 | + - comments |
| 67 | + - common-false-positives |
| 68 | + - legacy |
| 69 | + - std-error-handling |
46 | 70 | rules: |
47 | | - - name: superfluous-else |
48 | | - severity: warning |
49 | | - disabled: false |
50 | | - arguments: |
51 | | - - "preserveScope" |
52 | | - - name: package-comments |
53 | | - disabled: false |
54 | | - - name: context-as-argument |
55 | | - disabled: false |
56 | | - - name: context-keys-type |
57 | | - disabled: false |
58 | | - - name: error-return |
59 | | - disabled: false |
60 | | - - name: errorf |
61 | | - disabled: false |
62 | | - - name: unreachable-code |
63 | | - disabled: false |
64 | | - - name: early-return |
65 | | - disabled: false |
66 | | - - name: confusing-naming |
67 | | - disabled: false |
68 | | - - name: defer |
69 | | - disabled: false |
70 | | - staticcheck: |
71 | | - checks: ["all"] |
72 | | - |
73 | | -issues: |
74 | | - exclude-rules: |
75 | | - # False positive: https://github.com/kunwardeep/paralleltest/issues/8. |
76 | | - - linters: |
77 | | - - paralleltest |
78 | | - text: "does not use range value in test Run" |
79 | | - # We prefer fmt.Sprintf over string concatenation for readability |
80 | | - - linters: [perfsprint] |
81 | | - text: "fmt.Sprintf can be replaced with string concatenation" |
82 | | - - linters: [perfsprint] |
83 | | - text: "fmt.Sprintf can be replaced with faster hex.EncodeToString" |
84 | | - - linters: [perfsprint] |
85 | | - text: "fmt.Sprintf can be replaced with faster strconv.FormatBool" |
86 | | - - linters: [perfsprint] |
87 | | - text: "fmt.Sprintf can be replaced with faster strconv.FormatInt" |
88 | | - - linters: [perfsprint] |
89 | | - text: "fmt.Sprintf can be replaced with faster strconv.FormatUint" |
90 | | - - linters: [perfsprint] |
91 | | - text: "fmt.Sprintf can be replaced with faster strconv.Itoa" |
92 | | - - linters: [perfsprint] |
93 | | - text: "fmt.Sprint can be replaced with faster strconv.Itoa" |
94 | | - exclude-dirs: |
95 | | - - test-cmds |
| 71 | + - linters: |
| 72 | + - paralleltest |
| 73 | + text: does not use range value in test Run |
| 74 | + - linters: |
| 75 | + - perfsprint |
| 76 | + text: fmt.Sprintf can be replaced with string concatenation |
| 77 | + - linters: |
| 78 | + - perfsprint |
| 79 | + text: fmt.Sprintf can be replaced with faster hex.EncodeToString |
| 80 | + - linters: |
| 81 | + - perfsprint |
| 82 | + text: fmt.Sprintf can be replaced with faster strconv.FormatBool |
| 83 | + - linters: |
| 84 | + - perfsprint |
| 85 | + text: fmt.Sprintf can be replaced with faster strconv.FormatInt |
| 86 | + - linters: |
| 87 | + - perfsprint |
| 88 | + text: fmt.Sprintf can be replaced with faster strconv.FormatUint |
| 89 | + - linters: |
| 90 | + - perfsprint |
| 91 | + text: fmt.Sprintf can be replaced with faster strconv.Itoa |
| 92 | + - linters: |
| 93 | + - perfsprint |
| 94 | + text: fmt.Sprint can be replaced with faster strconv.Itoa |
| 95 | + paths: |
| 96 | + - test-cmds |
| 97 | + - third_party$ |
| 98 | + - builtin$ |
| 99 | + - examples$ |
| 100 | +formatters: |
| 101 | + enable: |
| 102 | + - gofmt |
| 103 | + settings: |
| 104 | + gofmt: |
| 105 | + simplify: false |
| 106 | + exclusions: |
| 107 | + generated: lax |
| 108 | + paths: |
| 109 | + - test-cmds |
| 110 | + - third_party$ |
| 111 | + - builtin$ |
| 112 | + - examples$ |
0 commit comments