Skip to content

Commit

Permalink
some common patterns for skipping wrapcheck, ignore dogsled for tests…
Browse files Browse the repository at this point in the history
… and mocks
  • Loading branch information
Maya Sergeeva committed Oct 19, 2022
1 parent 1eefba9 commit e046bfb
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,16 +466,30 @@ linters-settings:
- .Close(
- .Err(
- .Scan(
- .Result(
ignoreSigRegexps:
- \.New.*Error\(
- json-iterator\/go
- \.Create/*
- \.Add/*
- \.Insert/*
- \.Get/*
- \.Edit/*
- \.Update/*
- \.Delete/*
- \..*Create\(
- \..*Add\(
- \..*Insert\(
- \..*Count\(
- \..*Get\(
- \..*List\(
- \..*Edit\(
- \..*Update\(
- \..*Delete\(
- \..*Wrap\(
- \.Create.*\(
- \.Add.*\(
- \.Insert.*\(
- \.Count.*\(
- \.Get.*\(
- \.List.*\(
- \.Edit.*\(
- \.Update.*\(
- \.Delete.*\(
- \.Wrap.*\(
ignorePackageGlobs:
- encoding/*
- jsoniter*
Expand Down Expand Up @@ -517,6 +531,7 @@ issues:
- gocyclo
- typecheck
- errcheck
- dogsled
- path: _mock\.go
linters:
- gomnd
Expand All @@ -530,6 +545,7 @@ issues:
- gocyclo
- typecheck
- errcheck
- dogsled

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
Expand All @@ -538,7 +554,7 @@ issues:
max-same-issues: 0

# Fix found issues (if it's supported by the linter)
fix: true
fix: false

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
Expand Down

0 comments on commit e046bfb

Please sign in to comment.