diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /.golangci.yaml | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to '.golangci.yaml')
| -rw-r--r-- | .golangci.yaml | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/.golangci.yaml b/.golangci.yaml index 2befef15..3c8128ed 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -7,17 +7,12 @@ linters: - internal/compress/flate - internal/compress/internal disable: - - depguard # not sensible for us - dupword # extremely normal in tests and a pretty unnecessary linter - goconst # unnecessary especially for our parsing code; many false positives - - mnd # same as above - - lll # poor standard - - ireturn # not an issue - - perfsprint # silly fmt.Errorf vs errors.New suggestion + - mnd # unnecessary especially for our parsing code; many false positives + - lll # common sense is much better than these sort of rules - gosmopolitan # completely normal to have CJK and such in tests - - gochecknoglobals # unlikely to be introduce accidentally and are usually intentional - nonamedreturns # named returns are often good for clarity - - errname # ErrXXX is better than XXXError - wsl # outdated, use wsl_v5 instead - varnamelen # it's rather reasonable to have counters like i, even when it spans quite a bit - gocyclo # cyclomatic metrics aren't that good @@ -31,6 +26,18 @@ linters: - gocognit # tmp: should consider sometime settings: + perfsprint: + errorf: false + depguard: + rules: + Main: + list-mode: strict + files: + - $all + allow: + - $gostd + - codeberg.org/lindenii/furgit + - golang.org/x gosec: excludes: - G301 # UNIX permissions |
