-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify golangci-lint config, autofix
- Loading branch information
1 parent
f617121
commit e02eb7b
Showing
4 changed files
with
22 additions
and
35 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,27 +1,14 @@ | ||
linters: | ||
enable-all: true | ||
enable: | ||
- bodyclose | ||
- goconst | ||
- godot | ||
- gofmt | ||
- goimports | ||
- prealloc | ||
|
||
disable: | ||
# errcheck flags a lot of issues that we don't find valid, especially as | ||
# fixing them has the potential to change behavior. | ||
# Temporarily disabling so it can be addressed in a dedicated PR. | ||
- errcheck | ||
|
||
# these linters are either deprecated or unhelpful, so likely they will not | ||
# be used in the future | ||
- exhaustivestruct | ||
- golint | ||
- interfacer | ||
- maligned | ||
- scopelint | ||
- testpackage | ||
|
||
linters-settings: | ||
# While not enabled atm, errcheck could be enabled in the future, so leaving | ||
# behind the config here for now. | ||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
|
||
# One notable gap in the configuration here is the ability to exclude test | ||
# files, which appears to be supported by the errcheck linter itself, but is | ||
# not part of the config struct contained in golangci-lint. This seems like | ||
# a good candidate for a first-time contribution to golangci-lint. | ||
- errorlint | ||
- goerr113 |
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