diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..9bb84bd --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,20 @@ +linters: + enable: + - gocyclo + - golint + - misspell + disable: + - structcheck # too many false positives + +linters-settings: + gocyclo: + # minimal code complexity to report, 30 by default (but we recommend 10-20) + min-complexity: 20 + +issues: + # List of regexps of issue texts to exclude, empty list by default. + # But independently from this option we use default exclude patterns, + # it can be disabled by `exclude-use-default: false`. To list all + # excluded by default patterns execute `golangci-lint run --help` + exclude: + - SA5008 # ignore staticcheck for go-flags \ No newline at end of file