dear linter, using xerrors is what we want to do.
This commit is contained in:
parent
d044e30e12
commit
cc328689e1
@ -37,6 +37,9 @@ issues:
|
|||||||
- "string .* has .* occurrences, make it a constant"
|
- "string .* has .* occurrences, make it a constant"
|
||||||
- "a blank import should be only in a main or test package, or have a comment justifying it"
|
- "a blank import should be only in a main or test package, or have a comment justifying it"
|
||||||
- "package comment should be of the form"
|
- "package comment should be of the form"
|
||||||
|
- "Potential hardcoded credentials"
|
||||||
|
- "Use of weak random number generator"
|
||||||
|
- "xerrors.* is deprecated"
|
||||||
|
|
||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
@ -51,7 +54,7 @@ issues:
|
|||||||
- path: build/params_.*\.go
|
- path: build/params_.*\.go
|
||||||
linters:
|
linters:
|
||||||
- golint
|
- golint
|
||||||
|
|
||||||
- path: api/apistruct/struct.go
|
- path: api/apistruct/struct.go
|
||||||
linters:
|
linters:
|
||||||
- golint
|
- golint
|
||||||
|
Loading…
Reference in New Issue
Block a user