mirror of https://github.com/dtm-labs/dtm.git
committed by
GitHub
24 changed files with 124 additions and 110 deletions
@ -1,27 +0,0 @@ |
|||
run: |
|||
deadline: 5m |
|||
skip-dirs: |
|||
# - test |
|||
# - bench |
|||
|
|||
linter-settings: |
|||
goconst: |
|||
min-len: 2 |
|||
min-occurrences: 2 |
|||
|
|||
linters: |
|||
enable: |
|||
- revive |
|||
- goconst |
|||
- gofmt |
|||
- goimports |
|||
- misspell |
|||
- unparam |
|||
|
|||
issues: |
|||
exclude-use-default: false |
|||
exclude-rules: |
|||
- path: _test.go |
|||
linters: |
|||
- errcheck |
|||
- revive |
|||
@ -1,4 +1,3 @@ |
|||
set -x |
|||
|
|||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2 |
|||
$(go env GOPATH)/bin/golangci-lint run |
|||
go install github.com/mgechev/revive@latest && revive -config revive.toml ./... |
|||
|
|||
@ -0,0 +1,27 @@ |
|||
ignoreGeneratedHeader = false |
|||
severity = "warning" |
|||
confidence = 0.8 |
|||
errorCode = 0 |
|||
warningCode = 0 |
|||
|
|||
[rule.blank-imports] |
|||
[rule.context-as-argument] |
|||
[rule.context-keys-type] |
|||
[rule.dot-imports] |
|||
[rule.error-return] |
|||
[rule.error-strings] |
|||
[rule.error-naming] |
|||
[rule.exported] |
|||
[rule.if-return] |
|||
[rule.increment-decrement] |
|||
[rule.var-naming] |
|||
[rule.var-declaration] |
|||
[rule.range] |
|||
[rule.receiver-naming] |
|||
[rule.time-naming] |
|||
[rule.unexported-return] |
|||
[rule.indent-error-flow] |
|||
[rule.errorf] |
|||
[rule.superfluous-else] |
|||
[rule.unreachable-code] |
|||
[rule.redefines-builtin-id] |
|||
Loading…
Reference in new issue