-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Use Go 1.17 for golangci linting and update golangci/golangci-…
…lint-action (#364) * Use Go 1.17 for golangci linting and update golangci/golangci-lint-action Go 1.18 is not supported by golangci-lint yet since generics are not supported. Signed-off-by: Ethan Lowman <[email protected]> * Try to make the linter happy Signed-off-by: Ethan Lowman <[email protected]> * Fix go version Signed-off-by: Ethan Lowman <[email protected]> * Remove usage of deprecated io/ioutil Signed-off-by: Ethan Lowman <[email protected]> * Appease gofmt for 1.19 Signed-off-by: Ethan Lowman <[email protected]> * Remove one more ioutil instance Signed-off-by: Ethan Lowman <[email protected]> * Remove decodeRoot Signed-off-by: Ethan Lowman <[email protected]> * Remove more unused functions Signed-off-by: Ethan Lowman <[email protected]> Signed-off-by: Ethan Lowman <[email protected]>
- Loading branch information
1 parent
64ded18
commit 06ed599
Showing
17 changed files
with
51 additions
and
95 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
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,11 +1,15 @@ | ||
run: | ||
# Lint using Go 1.17, since some linters are disabled by default for Go 1.18 | ||
# until generics are supported. | ||
# See https://github.com/golangci/golangci-lint/issues/2649 | ||
go: '1.17' | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- staticcheck | ||
- gofmt | ||
- govet | ||
- gosimple | ||
- structcheck | ||
- varcheck | ||
- unused | ||
- typecheck |
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
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.