Skip to content

Commit edb9faa

Browse files
authored
chore: bump golangci-lint to v1.63.4 and list argo-cd linters (#670)
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 7ac688a commit edb9faa

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Run golangci-lint
2828
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
2929
with:
30-
version: v1.58.2
31-
args: --timeout 5m
30+
version: v1.63.4
31+
args: --verbose
3232
- uses: codecov/codecov-action@a2f73fb6db51fcd2e0aa085dfb36dea90c5e3689 # v5.0.2
3333
with:
3434
token: ${{ secrets.CODECOV_TOKEN }} #required

.golangci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,42 @@ issues:
77
max-same-issues: 0
88
linters:
99
enable:
10+
- errcheck
11+
# - errorlint
12+
- gocritic
1013
- gofumpt
14+
# - goimports
15+
- gomodguard
1116
- gosimple
17+
- govet
18+
- importas
19+
- ineffassign
20+
# - misspell
21+
# Disabled because of https://github.com/argoproj/argo-cd/issues/21705
22+
# - nolintlint
23+
# - perfsprint
1224
- revive
25+
- staticcheck
1326
- testifylint
27+
# - thelper
28+
# - unparam
29+
- unused
30+
- usestdlibvars
1431
- whitespace
1532
linters-settings:
33+
gocritic:
34+
disabled-checks:
35+
- appendAssign
36+
- assignOp # Keep it disabled for readability
37+
- commentFormatting #FIXME
38+
- exitAfterDefer
39+
- elseif #FIXME
40+
- ifElseChain #FIXME
41+
- mapKey
42+
- singleCaseSwitch #FIXME
43+
- typeSwitchVar
44+
- unlambda #FIXME
45+
- wrapperFunc #FIXME
1646
revive:
1747
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md
1848
rules:

0 commit comments

Comments
 (0)