|
15 | 15 | # include test files or not, default is true
|
16 | 16 | tests: false
|
17 | 17 |
|
18 |
| - # list of build tags, all linters use it. Default is empty list. |
19 |
| - build-tags: |
20 |
| - # - mytag |
21 |
| - |
22 |
| - # which dirs to skip: they won't be analyzed; |
23 |
| - # can use regexp here: generated.*, regexp is applied on full path; |
24 |
| - # default value is empty list, but next dirs are always skipped independently |
25 |
| - # from this option's value: |
26 |
| - # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ |
27 |
| - skip-dirs: |
28 |
| - #- src/research |
29 |
| - |
30 |
| - # which files to skip: they will be analyzed, but issues from them |
31 |
| - # won't be reported. Default value is empty list, but there is |
32 |
| - # no need to include all autogenerated files, we confidently recognize |
33 |
| - # autogenerated files. If it's not please let us know. |
34 |
| - skip-files: |
35 |
| - #- ".*\\.my\\.go$" |
36 |
| - #- lib/bad.go |
37 |
| - |
38 |
| - # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": |
39 |
| - # If invoked with -mod=readonly, the go command is disallowed from the implicit |
40 |
| - # automatic updating of go.mod described above. Instead, it fails when any changes |
41 |
| - # to go.mod are needed. This setting is most useful to check that go.mod does |
42 |
| - # not need updates, such as in a continuous integration and testing system. |
43 |
| - # If invoked with -mod=vendor, the go command assumes that the vendor |
44 |
| - # directory holds the correct copies of dependencies and ignores |
45 |
| - # the dependency descriptions in go.mod. |
46 |
| - #modules-download-mode: readonly|release|vendor |
47 |
| - |
48 |
| - |
49 | 18 | # output configuration options
|
50 | 19 | output:
|
51 | 20 | # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
@@ -115,7 +84,7 @@ linters-settings:
|
115 | 84 | # Setting locale to US will correct the British spelling of 'colour' to 'color'.
|
116 | 85 | locale: UK
|
117 | 86 | ignore-words:
|
118 |
| - #- someword |
| 87 | + - fuego |
119 | 88 | lll:
|
120 | 89 | # max line length, lines longer will be reported. Default is 120.
|
121 | 90 | # '\t' is counted as 1 character by default, and can be changed with the tab-width option
|
@@ -170,17 +139,22 @@ linters-settings:
|
170 | 139 | # sizeThreshold: 32
|
171 | 140 |
|
172 | 141 | linters:
|
173 |
| - #enable: |
174 |
| - # - megacheck |
175 |
| - # - govet |
176 |
| - # - maligned |
177 |
| - # - golint |
| 142 | + # enable: |
| 143 | + # - cyclop |
| 144 | + # - gocognit |
| 145 | + # - gocyclo |
| 146 | + # - goerr113 |
| 147 | + # - gofmt |
| 148 | + # - golint |
| 149 | + # - ifshort |
| 150 | + # - megacheck |
178 | 151 | enable-all: true
|
179 | 152 | disable:
|
180 |
| - - gomnd |
| 153 | + - forcetypeassert |
| 154 | + - ireturn |
181 | 155 | - lll
|
182 | 156 | - nlreturn
|
183 |
| - - wsl |
| 157 | + - varnamelen |
184 | 158 | disable-all: false
|
185 | 159 | #presets:
|
186 | 160 | # - bugs
|
|
0 commit comments