diff --git a/.golangci.yml b/.golangci.yml index dabd79d..66453fb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -38,7 +38,7 @@ issues: - errcheck - forcetypeassert - funlen - - err113 + - goerr113 - dupl - maintidx @@ -59,11 +59,11 @@ linters: - dupl - dupword - durationcheck - - err113 - errcheck - errchkjson - errname - errorlint + - execinquery - exhaustive - exportloopref # - forbidigo @@ -77,6 +77,7 @@ linters: - goconst - gocritic - godot + - goerr113 - gofmt - gofumpt - goheader diff --git a/paramgen/internal/paramgen.go b/paramgen/internal/paramgen.go index a498112..a3c43a6 100644 --- a/paramgen/internal/paramgen.go +++ b/paramgen/internal/paramgen.go @@ -680,7 +680,7 @@ func (p *parameterParser) parseValidation(str string) (config.Validation, error) } // if required=false then do not add a validation if !req { - return nil, nil + return nil, nil //nolint:nilnil // ignore this validation } return config.ValidationRequired{}, nil case validationLT, validationLessThan: