-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move "vet" checks from golangci-lint to nogo (#9671)
Nogo is `rules_go`'s way of linting go code. It runs during compilation, and only during compilation. This means that lint results are cached along with compiled libraries, so if a library isn't being compiled, you don't have to spend time linting it. Moving govet is the easiest linter. I plan to gradually chip away at everything that golangci-lint does, but for now, we're just getting the simplest one. (Additionally, this makes bazel builds behave more like go builds. Go runs vet whenever you request a test, and won't run the test if vet fails. This doesn't happen with Bazel, but golangci-lint would have gotten it. Now it works again, and also affects non-test targets, which I think is helpful.) We also gain the ability to write our own lint rules: https://github.com/bazelbuild/rules_go/blob/master/go/nogo.rst#writing-and-registering-analyzers
- Loading branch information
Showing
8 changed files
with
648 additions
and
129 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 +1 @@ | ||
7.0.0 | ||
7.0.1 |
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ linters: | |
- wrapcheck | ||
- nolintlint | ||
- gofmt | ||
- govet | ||
- gosimple | ||
- errcheck | ||
- ineffassign | ||
|
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.