mirror of https://github.com/go-gitea/gitea
more cleanup
This commit is contained in:
parent
bba5be77bf
commit
c162f32289
|
@ -100,40 +100,21 @@ issues:
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
||||||
exclude-dirs: [node_modules, public, web_src]
|
exclude-dirs: [node_modules, public, web_src]
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
# Exclude some linters from running on tests files.
|
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters: [gocyclo, errcheck, dupl, gosec, unparam, staticcheck]
|
||||||
- gocyclo
|
|
||||||
- errcheck
|
|
||||||
- dupl
|
|
||||||
- gosec
|
|
||||||
- unparam
|
|
||||||
- staticcheck
|
|
||||||
- path: models/migrations/v
|
- path: models/migrations/v
|
||||||
linters:
|
linters: [gocyclo, errcheck, dupl, gosec]
|
||||||
- gocyclo
|
|
||||||
- errcheck
|
|
||||||
- dupl
|
|
||||||
- gosec
|
|
||||||
- path: cmd
|
- path: cmd
|
||||||
linters:
|
linters: [forbidigo]
|
||||||
- forbidigo
|
- text: "webhook"
|
||||||
- linters:
|
linters: [dupl]
|
||||||
- dupl
|
- text: "`ID' should not be capitalized"
|
||||||
text: "webhook"
|
linters: [gocritic]
|
||||||
- linters:
|
- text: "swagger"
|
||||||
- gocritic
|
linters: [unused, deadcode]
|
||||||
text: "`ID' should not be capitalized"
|
- text: "argument x is overwritten before first use"
|
||||||
- linters:
|
linters: [staticcheck]
|
||||||
- unused
|
|
||||||
- deadcode
|
|
||||||
text: "swagger"
|
|
||||||
- linters:
|
|
||||||
- staticcheck
|
|
||||||
text: "argument x is overwritten before first use"
|
|
||||||
- text: "commentFormatting: put a space between `//` and comment text"
|
- text: "commentFormatting: put a space between `//` and comment text"
|
||||||
linters:
|
linters: [gocritic]
|
||||||
- gocritic
|
|
||||||
- text: "exitAfterDefer:"
|
- text: "exitAfterDefer:"
|
||||||
linters:
|
linters: [gocritic]
|
||||||
- gocritic
|
|
||||||
|
|
Loading…
Reference in New Issue