Skip to content

Commit

Permalink
fix: deprecated golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Jul 29, 2024
1 parent a544882 commit 1416c97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ linters-settings:
replacement: "any"
goimports:
local-prefixes: github.com/golangci/golangci-lint
gomnd:
mnd:
# don't include the "operation" and "assign"
checks:
- argument
Expand All @@ -53,7 +53,9 @@ linters-settings:
- strings.SplitN

govet:
shadow: true # This is an allowed field of govet, so ignore the error here
enable-all: true
disable:
- fieldalignment # disabled because it's too strict, it checks if struct fields are sorted by size
settings:
printf:
funcs:
Expand Down Expand Up @@ -93,7 +95,7 @@ linters:
- gocyclo
- gofmt
- goimports
- gomnd
- mnd
- goprintffuncname
- gosec
- gosimple
Expand Down Expand Up @@ -138,7 +140,7 @@ issues:
exclude-rules:
- path: _test\.go
linters:
- gomnd # test files can have magic numbers
- mnd # test files can have magic numbers
- revive # test files can have unused parameters

- path: pkg/golinters/errcheck.go
Expand Down
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
default_stages: [pre-push]
repos:
- repo: local
hooks:
Expand Down Expand Up @@ -27,4 +26,3 @@ repos:
rev: v8.18.2
hooks:
- id: gitleaks
stages: [pre-commit]

0 comments on commit 1416c97

Please sign in to comment.