-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from numtide/feat/more-linters
feat/more linters
- Loading branch information
Showing
40 changed files
with
275 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,24 @@ | ||
linters: | ||
enable: | ||
- errname | ||
- exhaustive | ||
- gci | ||
- goconst | ||
- godot | ||
- gofumpt | ||
- goheader | ||
- goimports | ||
- gosec | ||
- importas | ||
- ireturn | ||
- lll | ||
- makezero | ||
- misspell | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- prealloc | ||
- predeclared | ||
- revive | ||
- rowserrcheck | ||
- stylecheck | ||
- tenv | ||
- testpackage | ||
- unconvert | ||
- unparam | ||
- wastedassign | ||
- whitespace | ||
- wsl | ||
enable-all: true | ||
disable: | ||
- depguard | ||
- execinquery | ||
- exhaustruct | ||
- exportloopref | ||
- funlen | ||
- godox | ||
- gomnd | ||
- mnd | ||
- varnamelen | ||
- forbidigo | ||
- gocognit | ||
- gocyclo | ||
- cyclop | ||
- err113 | ||
- maintidx | ||
- tagliatelle # prefer snake_case in json fields | ||
- gochecknoglobals | ||
- gochecknoinits | ||
# would be nice to have but too many tests depend on environment variables, which is not allowed for t.Parallel() | ||
- paralleltest | ||
- nlreturn # find this annoying more than useful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.