]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - .golangci.yml
ci/run: run golangci-lint
[safcm/safcm.git] / .golangci.yml
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644 (file)
index 0000000..13bcd7f
--- /dev/null
@@ -0,0 +1,37 @@
+linters:
+  disable-all: true
+  enable:
+    # Enabled by default
+    - deadcode
+    - errcheck
+    - gosimple
+    - govet
+    - ineffassign
+    - staticcheck
+    - structcheck
+    - typecheck
+    - unused
+    - varcheck
+    # Additional checks
+    - bodyclose
+    - contextcheck
+    - durationcheck
+    - errname
+    - exhaustive
+    - exportloopref
+    - gofmt
+    - nilerr
+    - nolintlint
+    - predeclared
+    - rowserrcheck
+    - unconvert
+    - wastedassign
+
+  issues:
+    # Don't hide potential important issues
+    exclude-use-default: false
+
+linters-settings:
+  exhaustive:
+    # "default" is good enough to be exhaustive
+    default-signifies-exhaustive: true