Skip to content

Commit

Permalink
Pass correct arguments to the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dmigwi committed Jun 20, 2024
1 parent ae7dc07 commit 9078834
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
version: v1.59.1
skip-pkg-cache: true
args: --out-format=colored-line-number

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
Expand Down
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ linters:

linters-settings:
errcheck:
# Individual function to be ignored one per line.
# see https://github.com/kisielk/errcheck#excluding-functions for details
exclude-functions:
- (net/http.ResponseWriter).Write
- (github.com/jrick/logrotate/rotator.Rotator).Write
- (github.com/crypto-power/cryptopower/logger).SetLogLevels
- (*github.com/jrick/logrotate/rotator.Rotator).Write
- github.com/crypto-power/cryptopower/logger.SetLogLevels

0 comments on commit 9078834

Please sign in to comment.