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