aboutsummaryrefslogtreecommitdiff
path: root/forged
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-17 12:31:20 +0800
committerRunxi Yu <me@runxiyu.org>2025-08-17 12:31:20 +0800
commit5fc04cf57ea0f5fe4b2b12d36197dae95e6c5526 (patch)
tree1588d7268a02efe115381562a1c7693a72936f81 /forged
parentFix some imports (diff)
downloadforge-5fc04cf57ea0f5fe4b2b12d36197dae95e6c5526.tar.gz
forge-5fc04cf57ea0f5fe4b2b12d36197dae95e6c5526.tar.zst
forge-5fc04cf57ea0f5fe4b2b12d36197dae95e6c5526.zip
golangci-lint
Diffstat (limited to 'forged')
-rw-r--r--forged/.golangci.yaml38
1 files changed, 12 insertions, 26 deletions
diff --git a/forged/.golangci.yaml b/forged/.golangci.yaml
index e475c41..75a56cd 100644
--- a/forged/.golangci.yaml
+++ b/forged/.golangci.yaml
@@ -4,32 +4,18 @@ linters:
default: all
disable:
- 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
- - 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
+ - wsl_v5 # tmp
+ - wsl # tmp
+ - unused # tmp
+ - nonamedreturns
+ - err113 # tmp
+ - gochecknoinits # tmp
+ - nlreturn # tmp
+ - cyclop # tmp
+ - gocognit # tmp
+ - varnamelen # tmp
+ - funlen # tmp
+ - lll
linters-settings:
revive: