-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable first basic linters in ARO (#2060)
* Enable first basic linters in ARO * Remove modules-download-mode from the linter run config
- Loading branch information
Showing
9 changed files
with
29 additions
and
9 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,8 +1,37 @@ | ||
run: | ||
timeout: 5m | ||
skip-dirs: | ||
- vendor/portal | ||
|
||
issues: | ||
exclude-rules: | ||
- linters: | ||
- staticcheck | ||
text: "SA1019: codec.BasicHandle is deprecated" | ||
# This is set to false to disregard the default EXC0011 exclusion | ||
# which shadows all the ST* checks. Refer https://github.com/golangci/golangci-lint/issues/2281 | ||
exclude-use-default: false | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: false | ||
|
||
stylecheck: | ||
# added additional checks for comments in Go. | ||
# Refer https://staticcheck.io/docs/options#checks for details | ||
checks: ["all", "-ST1000", "ST1020", "ST1021", "ST1022"] | ||
|
||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- gofmt | ||
- unused | ||
- deadcode | ||
- gosimple | ||
- govet | ||
- staticcheck | ||
# TODO: Enable the stylecheck linter in a follow-up PR as it requires changes in a lot of files | ||
# - stylecheck | ||
- whitespace | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,5 +156,4 @@ func NewDialer(isLocalDevelopmentMode bool) (Dialer, error) { | |
} | ||
|
||
return d, nil | ||
|
||
} |
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