-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a custom golangci-lint config that enables more linters then the default Also fix the one issue that was found by revive.
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
run: | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- errcheck | ||
- exportloopref | ||
- gocritic | ||
- goimports | ||
- goprintffuncname | ||
- gosimple | ||
- ineffassign | ||
- misspell | ||
- nolintlint | ||
- prealloc | ||
- revive | ||
- staticcheck | ||
- tenv | ||
- typecheck | ||
- unconvert | ||
- unused | ||
- usestdlibvars | ||
- vet | ||
|
||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/simplesurance/jenkins-exporter |
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