Fix remaining linter warnings

This commit is contained in:
Vladimir Hodakov 2019-10-19 02:18:27 +04:00
parent 3c690ef129
commit 92ee8ccf5e
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
2 changed files with 3 additions and 9 deletions

View File

@ -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

View File

@ -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)