summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.golangci.yml')
-rwxr-xr-x.golangci.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100755
index 00000000..3ba99efc
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,61 @@
+run:
+ skip-files:
+ - plugins/http/tests/http_test.go
+ - plugins/http/tests/plugin_test_old.go
+ - plugins/http/tests/rpc_test_old.go
+ - plugins/http/tests/config_test.go
+ - plugins/static/tests/static_plugin_test.go
+ - plugins/headers/tests/old.go
+linters:
+ disable-all: true
+ enable:
+ - bodyclose
+ - deadcode
+ - depguard
+ - dogsled
+ # - dupl
+ - errcheck
+ - exhaustive
+ # - funlen
+ # - gochecknoinits
+ # - goconst
+ - gocritic
+ - gocyclo
+ - gofmt
+ - goimports
+ - golint
+ # - gomnd
+ - goprintffuncname
+ - gosec
+ # - gosimple
+ - govet
+ - ineffassign
+ - interfacer
+ # - lll
+ - misspell
+ - nakedret
+ # - noctx
+ - nolintlint
+ - rowserrcheck
+ - scopelint
+ - staticcheck
+ - structcheck
+ - stylecheck
+ - unconvert
+ # - unparam
+ # - unused
+ - varcheck
+ - whitespace
+
+ # don't enable:
+ # - typecheck
+ # - gochecknoglobals
+ # - gocognit
+ # - godot
+ # - godox
+ # - goerr113
+ # - maligned
+ # - nestif
+ # - prealloc
+ # - testpackage
+ # - wsl