Skip to content

Commit 1606894

Browse files
authored
chore: upgrade golangci-lint to v2.2 (#310)
1 parent 68f40ca commit 1606894

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Run golangci-lint
4747
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4848
with:
49-
version: v2.1
49+
version: v2.2
5050
go-fmt:
5151
permissions:
5252
contents: read # to fetch code (actions/checkout)

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Run golangci-lint
4646
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4747
with:
48-
version: v2.1
48+
version: v2.2
4949
go-fmt:
5050
permissions:
5151
contents: read # to fetch code (actions/checkout)

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ linters:
1717
- maintidx #
1818
- mnd # not every number is magic
1919
- nestif #
20+
- noinlineerr #
2021
- nonamedreturns # they have their uses
2122
- tagliatelle # we're parsing data from external sources
2223
- varnamelen # maybe later
2324
- wsl # disagree with, for now
25+
- wsl_v5 # disagree with, for now
2426
settings:
2527
depguard:
2628
rules:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test-with-coverage:
2121
lint: lint-with-golangci-lint lint-with-go-fmt
2222

2323
lint-with-golangci-lint:
24-
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6 run ./...
24+
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.1 run ./...
2525

2626
lint-with-go-fmt:
2727
gofmt -s -d */**.go

internal/reporter/report.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type PackageDetailsWithVulnerabilities struct {
1919

2020
type Report struct {
2121
lockfile.Lockfile
22+
2223
// Packages is a map of packages and any vulnerabilities that they're affected by
2324
Packages []PackageDetailsWithVulnerabilities `json:"packages"`
2425
}

0 commit comments

Comments
 (0)