-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from gometalinter to golangci-lint
gometalinter has been deprecated so we move to golangci-lint as successor project. The installation of the tool is not necessary any more, since we vendor the dependency directly into the repository. This allows more reproducible lint results. All linters which currently pass have been enabled. The gofmt and govet lint scripts have been removed because they are now included in golangci-lint as well. Signed-off-by: Sascha Grunert <[email protected]>
- Loading branch information
1 parent
7f76abe
commit c846886
Showing
990 changed files
with
204,010 additions
and
4,918 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 |
---|---|---|
|
@@ -30,3 +30,5 @@ | |
*.un~ | ||
Session.vim | ||
.netrwhist | ||
|
||
build |
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,110 @@ | ||
--- | ||
run: | ||
concurrency: 6 | ||
deadline: 5m | ||
linters: | ||
disable-all: true | ||
enable: | ||
- depguard | ||
- gofmt | ||
- govet | ||
- ineffassign | ||
- nakedret | ||
- structcheck | ||
- typecheck | ||
- varcheck | ||
# - bodyclose | ||
# - deadcode | ||
# - dupl | ||
# - errcheck | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
# - goconst | ||
# - gocritic | ||
# - gocyclo | ||
# - goimports | ||
# - golint | ||
# - gosec | ||
# - gosimple | ||
# - interfacer | ||
# - lll | ||
# - maligned | ||
# - misspell | ||
# - prealloc | ||
# - scopelint | ||
# - staticcheck | ||
# - stylecheck | ||
# - unconvert | ||
# - unparam | ||
# - unused | ||
linters-settings: | ||
gocritic: | ||
enabled-checks: | ||
# Diagnostic | ||
- appendAssign | ||
- argOrder | ||
- badCond | ||
- caseOrder | ||
- codegenComment | ||
- commentedOutCode | ||
- deprecatedComment | ||
- dupArg | ||
- dupBranchBody | ||
- dupCase | ||
- dupSubExpr | ||
- exitAfterDefer | ||
- flagDeref | ||
- flagName | ||
- nilValReturn | ||
- offBy1 | ||
- sloppyReassign | ||
- weakCond | ||
- octalLiteral | ||
|
||
# Performance | ||
- appendCombine | ||
- equalFold | ||
- hugeParam | ||
- indexAlloc | ||
- rangeExprCopy | ||
- rangeValCopy | ||
|
||
# Style | ||
- assignOp | ||
- boolExprSimplify | ||
- captLocal | ||
- commentFormatting | ||
- commentedOutImport | ||
- defaultCaseOrder | ||
- docStub | ||
- elseif | ||
- emptyFallthrough | ||
- emptyStringTest | ||
- hexLiteral | ||
- ifElseChain | ||
- methodExprCall | ||
- regexpMust | ||
- singleCaseSwitch | ||
- sloppyLen | ||
- stringXbytes | ||
- switchTrue | ||
- typeAssertChain | ||
- typeSwitchVar | ||
- underef | ||
- unlabelStmt | ||
- unlambda | ||
- unslice | ||
- valSwap | ||
- wrapperFunc | ||
- yodaStyleExpr | ||
|
||
# Opinionated | ||
- builtinShadow | ||
- importShadow | ||
- initClause | ||
- nestingReduce | ||
- paramTypeCombine | ||
- ptrToRefParam | ||
- typeUnparen | ||
- unnamedResult | ||
- unnecessaryBlock |
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.