diff --git a/.golangci.yml b/.golangci.yml index 9dafa72..286bf03 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,32 +1,22 @@ --- linters: enable: - - asciicheck - - bodyclose - - dogsled - - dupl + - errname + - errorlint - exhaustive - - gochecknoinits - - gocognit - - gocritic - - gocyclo - - goerr113 - gofumpt - goimports - gomnd - goprintffuncname - # - gosec - # - ifshort - - interfacer - - maligned - misspell - - nakedret - - nestif - - nlreturn - - noctx - - unparam + - tagliatelle + - tenv + - testpackage + - thelper + - tparallel + - unconvert + - wrapcheck - wsl - # - errorlint disable: - gochecknoglobals @@ -34,15 +24,13 @@ linters-settings: gosec: excludes: - G204 -# gomnd: -# settings: -# mnd: -# ignored-functions: math.* + tagliatelle: + case: + rules: + yaml: snake issues: exclude-rules: - path: _test\.go linters: - - errcheck - gosec - - maligned diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 038ac3b..9fddf6a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-added-large-files - id: check-yaml @@ -11,10 +11,10 @@ repos: - id: end-of-file-fixer - id: check-merge-conflict - repo: https://github.com/golangci/golangci-lint - rev: v1.46.2 + rev: v1.50.1 hooks: - id: golangci-lint - repo: https://github.com/hadolint/hadolint - rev: v2.10.0 + rev: v2.12.1-beta hooks: - id: hadolint