Update linters

This commit is contained in:
IamTheFij 2022-12-19 15:34:47 -08:00
parent 88e94642d9
commit 958446050f
2 changed files with 16 additions and 28 deletions

View File

@ -1,32 +1,22 @@
--- ---
linters: linters:
enable: enable:
- asciicheck - errname
- bodyclose - errorlint
- dogsled
- dupl
- exhaustive - exhaustive
- gochecknoinits
- gocognit
- gocritic
- gocyclo
- goerr113
- gofumpt - gofumpt
- goimports - goimports
- gomnd - gomnd
- goprintffuncname - goprintffuncname
# - gosec
# - ifshort
- interfacer
- maligned
- misspell - misspell
- nakedret - tagliatelle
- nestif - tenv
- nlreturn - testpackage
- noctx - thelper
- unparam - tparallel
- unconvert
- wrapcheck
- wsl - wsl
# - errorlint
disable: disable:
- gochecknoglobals - gochecknoglobals
@ -34,15 +24,13 @@ linters-settings:
gosec: gosec:
excludes: excludes:
- G204 - G204
# gomnd: tagliatelle:
# settings: case:
# mnd: rules:
# ignored-functions: math.* yaml: snake
issues: issues:
exclude-rules: exclude-rules:
- path: _test\.go - path: _test\.go
linters: linters:
- errcheck
- gosec - gosec
- maligned

View File

@ -1,7 +1,7 @@
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 rev: v4.4.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-yaml - id: check-yaml
@ -11,10 +11,10 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-merge-conflict - id: check-merge-conflict
- repo: https://github.com/golangci/golangci-lint - repo: https://github.com/golangci/golangci-lint
rev: v1.46.2 rev: v1.50.1
hooks: hooks:
- id: golangci-lint - id: golangci-lint
- repo: https://github.com/hadolint/hadolint - repo: https://github.com/hadolint/hadolint
rev: v2.10.0 rev: v2.12.1-beta
hooks: hooks:
- id: hadolint - id: hadolint