.golangci.yml
raw| 1 | version: "2" |
| 2 | |
| 3 | linters: |
| 4 | default: none |
| 5 | enable: |
| 6 | - exhaustive |
| 7 | - govet |
| 8 | - errcheck |
| 9 | - staticcheck |
| 10 | - unused |
| 11 | |
| 12 | settings: |
| 13 | exhaustive: |
| 14 | default-signifies-exhaustive: true |
| 15 | staticcheck: |
| 16 | checks: |
| 17 | - "all" |
| 18 | - "-ST1000" # don't require package comments |
| 19 | - "-S1016" # allow explicit struct literals over type conversions |
| 20 | |
| 21 | formatters: |
| 22 | enable: |
| 23 | - gofmt |
| 24 | - golines |
| 25 | settings: |
| 26 | golines: |
| 27 | max-len: 100 |