|
|
@ -1,28 +1,19 @@ |
|
|
version: 1 |
|
|
version: "2" |
|
|
|
|
|
run: |
|
|
|
|
|
tests: true |
|
|
linters: |
|
|
linters: |
|
|
enable: |
|
|
enable: |
|
|
- errcheck |
|
|
|
|
|
- gosimple |
|
|
|
|
|
- govet |
|
|
|
|
|
- ineffassign |
|
|
|
|
|
- staticcheck |
|
|
|
|
|
- typecheck |
|
|
|
|
|
- unused |
|
|
|
|
|
- revive |
|
|
|
|
|
- misspell |
|
|
|
|
|
- bodyclose |
|
|
- bodyclose |
|
|
|
|
|
- misspell |
|
|
linters-settings: |
|
|
- revive |
|
|
|
|
|
settings: |
|
|
errcheck: |
|
|
errcheck: |
|
|
check-blank: true |
|
|
|
|
|
check-type-assertions: true |
|
|
check-type-assertions: true |
|
|
|
|
|
check-blank: true |
|
|
govet: |
|
|
govet: |
|
|
enable-all: true |
|
|
|
|
|
disable: |
|
|
disable: |
|
|
- fieldalignment |
|
|
- fieldalignment |
|
|
|
|
|
enable-all: true |
|
|
revive: |
|
|
revive: |
|
|
rules: |
|
|
rules: |
|
|
- name: blank-imports |
|
|
- name: blank-imports |
|
|
@ -42,12 +33,24 @@ linters-settings: |
|
|
- name: unexported-return |
|
|
- name: unexported-return |
|
|
- name: indent-error-flow |
|
|
- name: indent-error-flow |
|
|
- name: errorf |
|
|
- name: errorf |
|
|
|
|
|
exclusions: |
|
|
run: |
|
|
generated: lax |
|
|
timeout: 5m |
|
|
presets: |
|
|
tests: true |
|
|
- comments |
|
|
|
|
|
- common-false-positives |
|
|
|
|
|
- legacy |
|
|
|
|
|
- std-error-handling |
|
|
|
|
|
paths: |
|
|
|
|
|
- third_party$ |
|
|
|
|
|
- builtin$ |
|
|
|
|
|
- examples$ |
|
|
issues: |
|
|
issues: |
|
|
exclude-use-default: true |
|
|
|
|
|
max-issues-per-linter: 0 |
|
|
max-issues-per-linter: 0 |
|
|
max-same-issues: 0 |
|
|
max-same-issues: 0 |
|
|
|
|
|
formatters: |
|
|
|
|
|
exclusions: |
|
|
|
|
|
generated: lax |
|
|
|
|
|
paths: |
|
|
|
|
|
- third_party$ |
|
|
|
|
|
- builtin$ |
|
|
|
|
|
- examples$ |
|
|
|