Skip to content

Commit

Permalink
fix warning 'WARN The linter '$name' is deprecated'
Browse files Browse the repository at this point in the history
```
WARN The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd.
WARN The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner.
WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
```
  • Loading branch information
nitram509 committed Oct 1, 2024
1 parent b2211c2 commit 212aa55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ linters:
- makezero
- varnamelen
- exhaustruct
- gomnd # because WARN The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd.
- exportloopref # because WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
- execinquery # because WARN The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner.

linters-settings:
cyclop:
Expand Down

0 comments on commit 212aa55

Please sign in to comment.