-
-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix liting; use golangci lint (#508)
* add base golangci-lint * fix linting errors: unused var t, unexported-return ``` runner/util_test.go:237:34: unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive) func TestGetStructureFieldTagMap(t *testing.T) { ``` ``` main.go:54:1: exported function GetVersionInfo should have comment or be unexported main.go:54:23: exported func GetVersionInfo returns unexported type main.versionInfo, which can be annoying to use ```
- Loading branch information
Showing
5 changed files
with
34 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
run: | ||
timeout: 2m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. | ||
- gci # Gci controls Go package import order and makes it always deterministic | ||
- goimports # checks that goimports was run | ||
- ineffassign # Detects when assignments to existing variables are not used | ||
- misspell # spell checker | ||
- revive # configurable linter for Go. Drop-in replacement of golint | ||
- staticcheck # go vet on steroids | ||
- stylecheck # static analysis, finds bugs and performance issues, offers simplifications, and enforces style rules | ||
- unconvert # Remove unnecessary type conversions | ||
- unused # Checks Go code for unused constants, variables, functions and types |
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