Skip to content

Commit

Permalink
ci: fix golangci-lint behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
tessig committed Oct 26, 2022
1 parent 5483683 commit 9986e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/golangci-lint.yml
Expand Up @@ -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:
Expand Down
31 changes: 1 addition & 30 deletions .golangci.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9986e7f

Please sign in to comment.