Skip to content

Commit

Permalink
chore: bump golangci-lint to v1.63.4 and list argo-cd linters (argopr…
Browse files Browse the repository at this point in the history
…oj#670)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Signed-off-by: Aaron Hoffman <31711338+Aaron-9900@users.noreply.github.com>
  • Loading branch information
mmorel-35 authored and Aaron-9900 committed Feb 12, 2025
1 parent 31a201b commit 52bef2c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.58.2
args: --timeout 5m
version: v1.63.4
args: --verbose
- uses: codecov/codecov-action@a2f73fb6db51fcd2e0aa085dfb36dea90c5e3689 # v5.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
Expand Down
30 changes: 30 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,42 @@ issues:
max-same-issues: 0
linters:
enable:
- errcheck
# - errorlint
- gocritic
- gofumpt
# - goimports
- gomodguard
- gosimple
- govet
- importas
- ineffassign
# - misspell
# Disabled because of https://github.com/argoproj/argo-cd/issues/21705
# - nolintlint
# - perfsprint
- revive
- staticcheck
- testifylint
# - thelper
# - unparam
- unused
- usestdlibvars
- whitespace
linters-settings:
gocritic:
disabled-checks:
- appendAssign
- assignOp # Keep it disabled for readability
- commentFormatting #FIXME
- exitAfterDefer
- elseif #FIXME
- ifElseChain #FIXME
- mapKey
- singleCaseSwitch #FIXME
- typeSwitchVar
- unlambda #FIXME
- wrapperFunc #FIXME
revive:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md
rules:
Expand Down

0 comments on commit 52bef2c

Please sign in to comment.