Fix remaining linter warnings
This commit is contained in:
parent
3c690ef129
commit
92ee8ccf5e
@ -4,10 +4,9 @@ linters:
|
|||||||
enable-all: true
|
enable-all: true
|
||||||
disable:
|
disable:
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
- gocritic
|
|
||||||
- funlen
|
- funlen
|
||||||
- godox
|
- godox
|
||||||
- gocyclo # is deprecated
|
- gocyclo # is deprecated in favor of gocognit
|
||||||
linters-settings:
|
linters-settings:
|
||||||
lll:
|
lll:
|
||||||
line-length: 180
|
line-length: 180
|
||||||
@ -15,14 +14,7 @@ issues:
|
|||||||
exclude-rules:
|
exclude-rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- dupl
|
|
||||||
- errcheck
|
- errcheck
|
||||||
- gocritic
|
|
||||||
- gocyclo
|
|
||||||
- gosec
|
|
||||||
- lll
|
- lll
|
||||||
- goconst
|
|
||||||
- unparam
|
|
||||||
- unused
|
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
@ -118,6 +118,7 @@ func lexPathBracketOpen(l lexer, state *intStack) stateFn {
|
|||||||
|
|
||||||
return lexPathBracketClose
|
return lexPathBracketClose
|
||||||
case '"':
|
case '"':
|
||||||
|
// nolint:errcheck
|
||||||
l.takeString()
|
l.takeString()
|
||||||
l.emit(pathKey)
|
l.emit(pathKey)
|
||||||
|
|
||||||
@ -155,6 +156,7 @@ func lexKey(l lexer, state *intStack) stateFn {
|
|||||||
|
|
||||||
return lexPathAfterKey
|
return lexPathAfterKey
|
||||||
case '"':
|
case '"':
|
||||||
|
// nolint:errcheck
|
||||||
l.takeString()
|
l.takeString()
|
||||||
l.emit(pathKey)
|
l.emit(pathKey)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user