From 5fc04cf57ea0f5fe4b2b12d36197dae95e6c5526 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 17 Aug 2025 12:31:20 +0800 Subject: [PATCH] golangci-lint --- forged/.golangci.yaml | 38 ++++++++++++-------------------------- diff --git a/forged/.golangci.yaml b/forged/.golangci.yaml index e475c41fb3d27f98813a81ace2558839367e02e2..75a56cdbdd06185265bdfe37ddefe292162a08ea 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: -- 2.48.1