Skip to content

Commit 568a3ad

Browse files
committed
ci: bump golangci-lint to v2
The configuration file format has changed. Initially created via golangci-lint migrate, then edited to simplify. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 5835d78 commit 568a3ad

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
run: |
2020
sudo apt -q update
2121
sudo apt -q install libseccomp-dev
22-
- uses: golangci/golangci-lint-action@v6
22+
- uses: golangci/golangci-lint-action@v7
2323
with:
24-
version: v1.64
24+
version: v2.1
2525

2626
codespell:
2727
runs-on: ubuntu-24.04

.golangci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# For documentation, see https://golangci-lint.run/usage/configuration/
2-
linters:
2+
version: "2"
3+
4+
formatters:
35
enable:
46
- gofumpt
7+
8+
linters:
9+
exclusions:
10+
generated: disable
11+
presets:
12+
- std-error-handling

0 commit comments

Comments
 (0)