diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index c84fc6f..8ad09fe 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml @@ -6,7 +6,7 @@ on: branches: - main -name: golangci-lint +name: lint and test jobs: golangci: strategy: diff --git a/.golangci.yaml b/.golangci.yaml index faa3fdb..fd610c5 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,17 +2,18 @@ run: timeout: 5m issues-exit-code: 1 tests: true - skip-dirs: - - local issues: max-same-issues: 100 + exclude-dirs: + - local exclude-rules: - path: _test\.go linters: - bodyclose - errcheck - gosec + fix: true linters: enable: @@ -32,21 +33,10 @@ linters: - whitespace output: - # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" - format: colored-line-number - # print lines of code with issue, default is true + formats: + - format: colored-line-number print-issued-lines: true - # print linter name in the end of issue text, default is true print-linter-name: true - # make issues output unique by line, default is true uniq-by-line: true - # add a prefix to the output file references; default is no prefix path-prefix: "" - # sorts results by: filepath, line and column sort-results: true - -linters-settings: - golint: - min-confidence: 0.8 - -fix: true