aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/.golangci.yml
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:44 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:44 +0800
commitdd84b9d64fb98746a230cd24233ff50a562c39c9 (patch)
treeb583261ef00b3afe72ec4d6dacb31e57779a6faf /cli/.golangci.yml
parent0b46fcd72ac34382387b2bcf9095233efbcc52f4 (diff)
downloadHydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.tar.gz
HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.zip
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