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

View File

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