diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 4f64946..5232946 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -19,6 +19,8 @@ jobs: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: v1.60.1 + verify: false # https://github.com/golangci/golangci-lint-action/issues/1163 + # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.golangci.yml b/.golangci.yml index 7fed191..eae9f90 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,24 +18,24 @@ linters: fast: false enable: - bodyclose - - copyloopvar #- depguard - dogsled + - dupl - errcheck - #- exportloopref + - copyloopvar - exhaustive #- funlen - #- goconst + - goconst - gocritic - #- gocyclo - - gofmt - - goimports + - gocyclo + #- gofumpt + #- goimports - goprintffuncname #- gosec - gosimple - govet - ineffassign - #- misspell + - misspell - nolintlint - rowserrcheck - staticcheck @@ -49,7 +49,6 @@ linters: - predeclared - asciicheck - revive - - forbidigo - makezero run: @@ -58,20 +57,18 @@ run: deadline: 5m issues-exit-code: 1 tests: false - skip-dirs: - - order - go: '1.20' # output configuration options output: - format: "colored-line-number" + formats: + - format: "colored-line-number" print-issued-lines: true print-linter-name: true uniq-by-line: true issues: # Fix found issues (if it's supported by the linter) - fix: true + fix: false exclude-use-default: false exclude: - "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"