-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7403c9f
commit f0c986b
Showing
1 changed file
with
23 additions
and
62 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,69 +1,30 @@ | ||
run: | ||
timeout: 5m | ||
tests: false | ||
|
||
issues: | ||
include: | ||
- EXC0001 | ||
- EXC0005 | ||
- EXC0011 | ||
- EXC0012 | ||
- EXC0013 | ||
|
||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
linters: | ||
enable-all: false | ||
disable: | ||
disable-all: true | ||
presets: | ||
fast: false | ||
enable: | ||
- gocritic | ||
- ineffassign | ||
- staticcheck | ||
- stylecheck | ||
- unused | ||
- govet | ||
- gofmt | ||
- typecheck | ||
- bodyclose | ||
- exportloopref | ||
- goimports | ||
- gosec | ||
|
||
issues: | ||
max-same-issues: 0 | ||
max-same: 0 | ||
new: false | ||
exclude-use-default: false | ||
fix: true | ||
exclude: | ||
- "G304: Potential file inclusion via variable" | ||
- "G204: Subprocess launched with variable" | ||
- "G104: Errors unhandled" | ||
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked | ||
# unparam warns that return value is always nil for functions that have an obligatory error return value but cannot produce an error | ||
- .*result 0 \(error\) is always nil | ||
|
||
linters-settings: | ||
errcheck: | ||
check-type-assertions: false | ||
check-blank: true | ||
gocyclo: | ||
min-complexity: 10 | ||
golint: | ||
min-confidence: 0.8 | ||
govet: | ||
check-shadowing: true | ||
stylecheck: | ||
checks: [ | ||
"ST1019", # Importing the same package multiple times. | ||
] | ||
staticcheck: | ||
checks: [ | ||
"all", | ||
"-SA1019", # TODO(fix) Using a deprecated function, variable, constant or field | ||
"-SA2002" # TODO(fix) Called testing.T.FailNow or SkipNow in a goroutine, which isn’t allowed | ||
] | ||
gocritic: | ||
enabled-checks: | ||
- equalFold | ||
- boolExprSimplify | ||
|
||
output: | ||
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" | ||
format: colored-line-number | ||
|
||
# print lines of code with issue, default is true | ||
print-issued-lines: true | ||
|
||
# print linter name in the end of issue text, default is true | ||
print-linter-name: true | ||
- nilerr | ||
- predeclared | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
- whitespace |