aboutsummaryrefslogtreecommitdiff
path: root/forged/.golangci.yaml
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 09:33:11 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 09:34:06 +0800
commitc9b4eee4c589b8b40c02d0c96f887ec991580a24 (patch)
tree0ab3f2a22e9c4ca430573559d5712a4a7a6903a3 /forged/.golangci.yaml
parentMove the Go stuff to ./forged/ (diff)
downloadforge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.gz
forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.zst
forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.zip
Restructure static/templates into forged
Diffstat (limited to 'forged/.golangci.yaml')
-rw-r--r--forged/.golangci.yaml42
1 files changed, 42 insertions, 0 deletions
diff --git a/forged/.golangci.yaml b/forged/.golangci.yaml
new file mode 100644
index 0000000..1c8c972
--- /dev/null
+++ b/forged/.golangci.yaml
@@ -0,0 +1,42 @@
+linters:
+ enable-all: true
+ disable:
+ - tenv
+ - depguard
+ - err113 # dynamically defined errors are fine for our purposes
+ - forcetypeassert # type assertion failures are usually programming errors
+ - gochecknoinits # we use inits sparingly for good reasons
+ - godox # they're just used as markers for where needs improvements
+ - ireturn # doesn't work well with how we use generics
+ - lll # long lines are acceptable
+ - mnd # it's a bit ridiculous to replace all of them
+ - nakedret # patterns should be consistent
+ - nonamedreturns # i like named returns
+ - wrapcheck # wrapping all errors is just not necessary
+ - varnamelen # "from" and "to" are very valid
+ - stylecheck
+ - containedctx
+ - godot
+ - dogsled
+ - maintidx # e
+ - nestif # e
+ - gocognit # e
+ - gocyclo # e
+ - dupl # e
+ - cyclop # e
+ - goconst # e
+ - funlen # e
+ - wsl # e
+ - nlreturn # e
+ - unused # e
+ - exhaustruct # e
+
+linters-settings:
+ revive:
+ rules:
+ - name: error-strings
+ disabled: true
+
+issues:
+ max-issues-per-linter: 0
+ max-same-issues: 0