| 1 |
version: "2" |
| 2 |
linters: |
| 3 |
default: all |
| 4 |
disable: |
| 5 |
- exhaustruct |
| 6 |
- mnd |
| 7 |
- tagliatelle |
| 8 |
- varnamelen |
| 9 |
- wsl |
| 10 |
settings: |
| 11 |
cyclop: |
| 12 |
max-complexity: 15 |
| 13 |
package-average: 10 |
| 14 |
depguard: |
| 15 |
rules: |
| 16 |
internal: |
| 17 |
files: |
| 18 |
- '**/internal/**/*.go' |
| 19 |
- '!$test' |
| 20 |
allow: |
| 21 |
- $gostd |
| 22 |
- github.com/google/go-cmp |
| 23 |
main: |
| 24 |
files: |
| 25 |
- '!**/internal/**/*.go' |
| 26 |
- '!$test' |
| 27 |
allow: |
| 28 |
- $gostd |
| 29 |
- github.com/editorconfig/editorconfig-core-go/v2 |
| 30 |
- github.com/hashicorp/go-multierror |
| 31 |
- golang.org/x/mod/semver |
| 32 |
- gopkg.in/ini.v1 |
| 33 |
wsl_v5: |
| 34 |
allow-first-in-block: true |
| 35 |
allow-whole-block: false |
| 36 |
branch-max-lines: 2 |
| 37 |
exclusions: |
| 38 |
generated: lax |
| 39 |
presets: |
| 40 |
- comments |
| 41 |
- common-false-positives |
| 42 |
- legacy |
| 43 |
- std-error-handling |
| 44 |
paths: |
| 45 |
- third_party$ |
| 46 |
- builtin$ |
| 47 |
- examples$ |
| 48 |
formatters: |
| 49 |
enable: |
| 50 |
- gci |
| 51 |
- gofmt |
| 52 |
- gofumpt |
| 53 |
- goimports |
| 54 |
settings: |
| 55 |
gci: |
| 56 |
sections: |
| 57 |
- standard |
| 58 |
- default |
| 59 |
- prefix(github.com/editorconfig/editorconfig-core-go) |
| 60 |
exclusions: |
| 61 |
generated: lax |
| 62 |
paths: |
| 63 |
- third_party$ |
| 64 |
- builtin$ |
| 65 |
- examples$ |