chore(lint): add new linters and update codebase

- add canonicalheader
- add copyloopvar
- add fatcontext
- add intrange
This commit is contained in:
Quentin McGaw
2024-10-11 18:28:00 +00:00
parent 3c8e80a1a4
commit abe9dcbe33
77 changed files with 8 additions and 116 deletions

View File

@@ -37,7 +37,9 @@ linters:
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- copyloopvar
- decorder
- dogsled
- dupl
@@ -47,6 +49,7 @@ linters:
- errchkjson
- errname
- exhaustive
- fatcontext
- forcetypeassert
- gci
- gocheckcompilerdirectives
@@ -66,6 +69,7 @@ linters:
- grouper
- importas
- interfacebloat
- intrange
- ireturn
- lll
- maintidx