Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Disable uncheckedInlineErr rule in linter
Browse files Browse the repository at this point in the history
The linter does not support constructs like

```
if err := j.do(); client.IgnoreNotFound(err) != nil {
[…]
}
```
  • Loading branch information
damyan committed Jan 8, 2024
1 parent ac75a69 commit 9cd1879
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ linters-settings:
disabled-checks:
- rangeValCopy # Reason: premature optimisation - saves memory but hurts readability.
- unnamedResult # Reason: named return params may be less readable but it is discussible.
- uncheckedInlineErr # Reason: false positives with client.IgnoreNotFound(err)

enabled-tags:
- diagnostic
Expand Down

0 comments on commit 9cd1879

Please sign in to comment.