-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add golang lint
- Loading branch information
Showing
201 changed files
with
3,460 additions
and
3,520 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
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,44 @@ | ||
run: | ||
timeout: 15m | ||
|
||
output: | ||
sort-results: true | ||
|
||
linters: | ||
enable: | ||
- gocritic | ||
- gofumpt | ||
- goimports | ||
- misspell | ||
- predeclared | ||
- revive | ||
- unconvert | ||
- unused | ||
- errcheck | ||
|
||
issues: | ||
max-same-issues: 0 | ||
exclude-rules: | ||
- linters: | ||
- gocritic | ||
text: "appendAssign" | ||
- linters: | ||
- revive | ||
text: "don't use an underscore in package name" # package name not change | ||
- path: test/unittest/ | ||
linters: | ||
- revive | ||
text: "should not use dot imports" # ginkgo coding style | ||
- linters: | ||
- revive | ||
text: "VpcDns should be VpcDNS" # api param not change | ||
- linters: | ||
- revive | ||
text: "VpcDnsList should be VpcDNSList" # api param not change | ||
|
||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/kubeovn/kube-ovn | ||
gofumpt: | ||
extra-rules: true | ||
|
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.