From 92ee8ccf5e1752f0e20479f39fa0918ac09e35b3 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sat, 19 Oct 2019 02:18:27 +0400 Subject: [PATCH] Fix remaining linter warnings --- .golangci.yaml | 10 +--------- path_states.go | 2 ++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index ebe95a8..e944d02 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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 \ No newline at end of file diff --git a/path_states.go b/path_states.go index 2d01361..77e6357 100644 --- a/path_states.go +++ b/path_states.go @@ -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)