summaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-19 09:38:49 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-19 12:12:57 +1100
commita34bdf1a046c90c22a1c0b653241b8107e89c7f9 (patch)
tree4de55d492803487a6575c976f89875744a7d3b7b /.golangci.yml
parentd93fef4c61db20dd9e2bb535c2fbb742cdbed60a (diff)
update linters
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 000000000..358a5d12a
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,24 @@
+linters:
+ disable:
+ - structcheck # gives false positives
+ enable:
+ - gofumpt
+ - thelper
+ - goimports
+ - tparallel
+ - wastedassign
+ - exportloopref
+ - unparam
+ - prealloc
+ - unconvert
+ - exhaustive
+ - makezero
+ # - goconst # TODO: enable and fix issues
+ fast: false
+
+linters-settings:
+ exhaustive:
+ default-signifies-exhaustive: true
+
+run:
+ go: 1.18