Skip to content

Commit d19c9a4

Browse files
author
Moritz Clasmeier
committed
Bump golangci-lint for Go 1.26
1 parent 1e2e40f commit d19c9a4

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121
go-version-file: 'go.mod'
2222
cache: true
2323

24-
- name: Install golangci-lint
25-
run: |
26-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
24+
- name: golangci-lint
25+
uses: golangci/golangci-lint-action@v9
26+
with:
27+
version: v2.12.2
2728

2829
- name: Check formatting
2930
run: |

.golangci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# golangci-lint configuration for roxie
22

3-
version: 2
3+
version: "2"
44

55
run:
66
timeout: 5m
@@ -15,23 +15,23 @@ linters:
1515
- ineffassign # Detect ineffectual assignments
1616
- misspell # Find commonly misspelled words
1717

18+
settings:
19+
staticcheck:
20+
checks: ["all", "-SA4009", "-ST1000", "-ST1003", "-ST1020"]
21+
1822
# Disable noisy linters
1923
disable:
2024
- errcheck # Too many false positives for cleanup code
2125
- gosec # Security linter is too strict for dev tooling
2226
- revive # Style linter is too opinionated
2327
- unparam # Often flags valid parameter flexibility
2428

25-
linters-settings:
26-
staticcheck:
27-
checks: ["all", "-SA4009"] # Disable "argument is overwritten" check
28-
2929
issues:
3030
# Don't limit the number of issues
3131
max-issues-per-linter: 0
3232
max-same-issues: 0
3333

3434
output:
35-
print-issued-lines: true
36-
print-linter-name: true
37-
sort-results: true
35+
formats:
36+
text:
37+
path: stdout

0 commit comments

Comments
 (0)