62159
Sy
symb / files
symb / .golangci.yml
1.1 KB
1run: 2 timeout: 5m 3 4linters: 5 enable: 6 - errcheck # Check for unchecked errors 7 - gosimple # Simplify code 8 - govet # Vet examines Go source code 9 - ineffassign # Detect ineffectual assignments 10 - staticcheck # Static analysis 11 - unused # Check for unused constants, variables, functions 12 - gofmt # Check formatting 13 - goimports # Check imports 14 - misspell # Check for commonly misspelled words 15 - revive # Fast, configurable, extensible linter 16 - stylecheck # Replacement for golint 17 - unconvert # Remove unnecessary type conversions 18 - unparam # Report unused function parameters 19 - goconst # Find repeated strings that could be constants 20 - gocyclo # Check cyclomatic complexity 21 - dupl # Check for duplicate code 22 - gosec # Security problems 23 24linters-settings: 25 gocyclo: 26 min-complexity: 15 27 28 dupl: 29 threshold: 100 30 31 goconst: 32 min-len: 3 33 min-occurrences: 3 34 35issues: 36 exclude-rules: 37 # Exclude some linters from running on tests files 38 - path: _test\.go 39 linters: 40 - gocyclo 41 - errcheck 42 - dupl 43 - gosec