|
| 1 | +version: "2" |
1 | 2 | run:
|
2 |
| - tests: true |
3 |
| - skip-dirs: |
4 |
| - - bin |
5 |
| - - docs |
6 |
| - - client/mocks |
7 |
| - - resources/forks |
8 |
| - - codegen |
9 |
| - timeout: 10m |
10 | 3 | build-tags:
|
11 | 4 | - all
|
12 |
| - |
13 |
| -linters-settings: |
14 |
| - gofmt: |
15 |
| - rewrite-rules: |
16 |
| - - pattern: 'interface{}' |
17 |
| - replacement: 'any' |
18 |
| - errcheck: |
19 |
| - check-blank: false |
20 |
| - ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy |
21 |
| - gocritic: |
22 |
| - disabled-checks: |
23 |
| - - commentFormatting |
24 |
| - dupl: |
25 |
| - # tokens count to trigger issue, 150 by default |
26 |
| - threshold: 500 |
27 |
| - |
28 |
| - revive: |
29 |
| - enable-all-rules: true |
30 |
| - rules: |
31 |
| - - name: cyclomatic |
32 |
| - disabled: true |
33 |
| - - name: argument-limit |
34 |
| - disabled: true |
35 |
| - - name: function-length |
36 |
| - disabled: true |
37 |
| - - name: function-result-limit |
38 |
| - disabled: true |
39 |
| - - name: line-length-limit |
40 |
| - disabled: true |
41 |
| - - name: file-header |
42 |
| - disabled: true |
43 |
| - - name: cognitive-complexity |
44 |
| - disabled: true |
45 |
| - - name: banned-characters |
46 |
| - disabled: true |
47 |
| - - name: max-public-structs |
48 |
| - disabled: true |
49 |
| - - name: add-constant |
50 |
| - disabled: true |
51 |
| - - name: unhandled-error |
52 |
| - disabled: true |
53 |
| - - name: var-naming |
54 |
| - disabled: true |
55 |
| - - name: deep-exit |
56 |
| - disabled: true |
57 |
| - - name: exported |
58 |
| - disabled: false |
59 |
| - arguments: |
60 |
| - - 'disableStutteringCheck' |
61 |
| - - name: unused-parameter |
62 |
| - disabled: true |
63 |
| - - name: confusing-naming |
64 |
| - disabled: true |
65 |
| - - name: confusing-results |
66 |
| - disabled: true |
67 |
| - - name: flag-parameter |
68 |
| - disabled: true |
69 |
| - - name: nested-structs |
70 |
| - disabled: true |
71 |
| - - name: unchecked-type-assertion |
72 |
| - disabled: true |
73 |
| - - name: import-alias-naming |
74 |
| - disabled: true |
75 |
| - - name: use-errors-new |
76 |
| - disabled: true |
77 |
| - |
| 5 | + tests: true |
78 | 6 | linters:
|
79 | 7 | enable:
|
80 | 8 | - asciicheck
|
81 | 9 | - bodyclose
|
82 | 10 | - dupl
|
83 |
| - - errcheck |
84 | 11 | - gocritic
|
85 |
| - - gofmt |
86 |
| - - gosimple |
87 |
| - - govet |
88 |
| - - ineffassign |
89 | 12 | - importas
|
90 | 13 | - misspell
|
91 | 14 | - nakedret
|
92 | 15 | - prealloc
|
93 | 16 | - revive
|
94 |
| - - staticcheck |
95 | 17 | - unconvert
|
96 | 18 | - unparam
|
97 |
| - - unused |
98 |
| - |
99 |
| -issues: |
100 |
| - exclude-rules: |
101 |
| - # Exclude some linters from running on tests files. |
102 |
| - - path: _test\.go |
103 |
| - linters: |
104 |
| - - dupl |
105 |
| - - gocritic |
106 |
| - - revive |
107 |
| - # Exclude some linters from running on resource files. |
108 |
| - - path: resources(\\|\/).*\.go |
109 |
| - linters: |
110 |
| - - dupl |
111 |
| - # Exclude some linters from running on services files. |
112 |
| - - path: services\.go |
113 |
| - linters: |
114 |
| - - dupl |
| 19 | + settings: |
| 20 | + dupl: |
| 21 | + threshold: 500 |
| 22 | + errcheck: |
| 23 | + check-blank: false |
| 24 | + gocritic: |
| 25 | + disabled-checks: |
| 26 | + - commentFormatting |
| 27 | + revive: |
| 28 | + enable-all-rules: true |
| 29 | + rules: |
| 30 | + - name: cyclomatic |
| 31 | + disabled: true |
| 32 | + - name: argument-limit |
| 33 | + disabled: true |
| 34 | + - name: function-length |
| 35 | + disabled: true |
| 36 | + - name: function-result-limit |
| 37 | + disabled: true |
| 38 | + - name: line-length-limit |
| 39 | + disabled: true |
| 40 | + - name: file-header |
| 41 | + disabled: true |
| 42 | + - name: cognitive-complexity |
| 43 | + disabled: true |
| 44 | + - name: banned-characters |
| 45 | + disabled: true |
| 46 | + - name: max-public-structs |
| 47 | + disabled: true |
| 48 | + - name: add-constant |
| 49 | + disabled: true |
| 50 | + - name: unhandled-error |
| 51 | + disabled: true |
| 52 | + - name: var-naming |
| 53 | + disabled: true |
| 54 | + - name: deep-exit |
| 55 | + disabled: true |
| 56 | + - name: exported |
| 57 | + arguments: |
| 58 | + - disableStutteringCheck |
| 59 | + disabled: false |
| 60 | + - name: unused-parameter |
| 61 | + disabled: true |
| 62 | + - name: confusing-naming |
| 63 | + disabled: true |
| 64 | + - name: confusing-results |
| 65 | + disabled: true |
| 66 | + - name: flag-parameter |
| 67 | + disabled: true |
| 68 | + - name: nested-structs |
| 69 | + disabled: true |
| 70 | + - name: unchecked-type-assertion |
| 71 | + disabled: true |
| 72 | + - name: import-alias-naming |
| 73 | + disabled: true |
| 74 | + - name: use-errors-new |
| 75 | + disabled: true |
| 76 | + exclusions: |
| 77 | + generated: lax |
| 78 | + presets: |
| 79 | + - comments |
| 80 | + - common-false-positives |
| 81 | + - legacy |
| 82 | + - std-error-handling |
| 83 | + rules: |
| 84 | + - linters: |
| 85 | + - dupl |
| 86 | + - gocritic |
| 87 | + - revive |
| 88 | + path: _test\.go |
| 89 | + - linters: |
| 90 | + - dupl |
| 91 | + path: resources(\\|\/).*\.go |
| 92 | + - linters: |
| 93 | + - dupl |
| 94 | + path: services\.go |
| 95 | + paths: |
| 96 | + - third_party$ |
| 97 | + - builtin$ |
| 98 | + - examples$ |
| 99 | +formatters: |
| 100 | + enable: |
| 101 | + - gofmt |
| 102 | + settings: |
| 103 | + gofmt: |
| 104 | + rewrite-rules: |
| 105 | + - pattern: interface{} |
| 106 | + replacement: any |
| 107 | + exclusions: |
| 108 | + generated: lax |
| 109 | + paths: |
| 110 | + - third_party$ |
| 111 | + - builtin$ |
| 112 | + - examples$ |
0 commit comments