From 9986e7fdb366c0973ab55b29eb75caabf4c126a9 Mon Sep 17 00:00:00 2001 From: Thorsten Essig Date: Wed, 26 Oct 2022 13:15:54 +0200 Subject: [PATCH] ci: fix golangci-lint behaviour --- .github/workflows/golangci-lint.yml | 2 ++ .golangci.yml | 31 +---------------------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ae92f9f..73d1ad0 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -19,6 +19,8 @@ jobs: with: go-version: 1.* - uses: actions/checkout@v3 + with: + fetch-depth: '0' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.golangci.yml b/.golangci.yml index 74ea743..e9739e1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,7 +19,7 @@ output: # Example: "checkstyle:report.json,colored-line-number" # # Default: colored-line-number - format: tab + format: colored-line-number print-issued-lines: true print-linter-name: true uniq-by-line: true @@ -94,35 +94,6 @@ issues: - varnamelen - wrapcheck -severity: - default-severity: blocker - rules: # code-climate format from gitlab supports: info, minor, major, critical, or blocker - - severity: critical - linters: - - gosec - - severity: major - linters: - - goerr113 - - prealloc - - wrapcheck - - severity: minor - linters: - - cyclop - - decorder - - errname - - goconst - - gocognit - - predeclared - - testpackage - - tparallel - - usestdlibvars - - varnamelen - - severity: info - linters: - - paralleltest - - thelper - - wsl - linters-settings: gomnd: ignored-functions: