diff --git a/.golangci.yaml b/.golangci.yaml index 43262f2..7feb9db 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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 @@ -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: @@ -93,7 +95,7 @@ linters: - gocyclo - gofmt - goimports - - gomnd + - mnd - goprintffuncname - gosec - gosimple @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3fc5805..4dbab09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,3 @@ -default_stages: [pre-push] repos: - repo: local hooks: @@ -27,4 +26,3 @@ repos: rev: v8.18.2 hooks: - id: gitleaks - stages: [pre-commit]