aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/.golangci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'cli/.golangci.yml')
-rw-r--r--cli/.golangci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/cli/.golangci.yml b/cli/.golangci.yml
new file mode 100644
index 0000000..2008477
--- /dev/null
+++ b/cli/.golangci.yml
@@ -0,0 +1,30 @@
+# Refer to golangci-lint's example config file for more options and information:
+# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
+
+run:
+ timeout: 5m
+ modules-download-mode: readonly
+ go: 1.17
+ skip-dirs:
+ - internal/yaml # vendored upstream library
+ skip-files:
+ - internal/chrometracing/chrometracing.go # vendored upstream library
+
+linters:
+ enable:
+ - errcheck
+ - goimports
+ - govet
+ - staticcheck
+ - revive
+ - nakedret
+
+linters-settings:
+ nakedret:
+ # Aggressively disallow naked returns
+ max-func-lines: 3
+
+issues:
+ exclude-use-default: false
+ max-issues-per-linter: 0
+ max-same-issues: 0