-
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.
Merge pull request #17 from hashmap-kz/feature/lint
feature/lint
- Loading branch information
Showing
26 changed files
with
216 additions
and
135 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 |
---|---|---|
@@ -0,0 +1,121 @@ | ||
--- | ||
run: | ||
concurrency: 6 | ||
timeout: 10m | ||
issues: | ||
exclude-dirs: | ||
- integration/* | ||
|
||
# Maximum issues count per one linter. Set to 0 to disable. Default is 50. | ||
max-issues-per-linter: 0 | ||
|
||
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3. | ||
max-same-issues: 0 | ||
linters: | ||
disable-all: true | ||
enable: | ||
- asciicheck | ||
- bodyclose | ||
- dogsled | ||
- dupl | ||
- durationcheck | ||
- errcheck | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godox | ||
- gofmt | ||
- gofumpt | ||
- goheader | ||
- goimports | ||
- gomoddirectives | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- govet | ||
- importas | ||
- ineffassign | ||
- makezero | ||
- misspell | ||
- nakedret | ||
- nolintlint | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- whitespace | ||
|
||
linters-settings: | ||
godox: | ||
keywords: | ||
- BUG | ||
- FIXME | ||
- HACK | ||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
gocritic: | ||
disabled-checks: | ||
- ifElseChain | ||
enabled-checks: | ||
# Diagnostic | ||
- commentedOutCode | ||
- nilValReturn | ||
- sloppyReassign | ||
- weakCond | ||
- octalLiteral | ||
|
||
# Performance | ||
- appendCombine | ||
- equalFold | ||
- hugeParam | ||
- indexAlloc | ||
- rangeExprCopy | ||
- rangeValCopy | ||
|
||
# Style | ||
- boolExprSimplify | ||
- commentedOutImport | ||
- docStub | ||
- emptyFallthrough | ||
- emptyStringTest | ||
- hexLiteral | ||
- methodExprCall | ||
- stringXbytes | ||
- typeAssertChain | ||
- unlabelStmt | ||
- yodaStyleExpr | ||
# - ifElseChain | ||
|
||
# Opinionated | ||
- builtinShadow | ||
- importShadow | ||
- initClause | ||
- nestingReduce | ||
- paramTypeCombine | ||
- ptrToRefParam | ||
- typeUnparen | ||
- unnamedResult | ||
- unnecessaryBlock | ||
nolintlint: | ||
# Enable to ensure that nolint directives are all used. Default is true. | ||
allow-unused: false | ||
# Disable to ensure that nolint directives don't have a leading space. Default is true. | ||
# TODO(lint): Enforce machine-readable `nolint` directives | ||
allow-leading-space: true | ||
# Exclude following linters from requiring an explanation. Default is []. | ||
allow-no-explanation: [] | ||
# Enable to require an explanation of nonzero length after each nolint directive. Default is false. | ||
# TODO(lint): Enforce explanations for `nolint` directives | ||
require-explanation: false | ||
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false. | ||
require-specific: 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
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.