Skip to content

Commit c3d324f

Browse files
committed
chore(lint): bump golangci-lint to v2.5.0
* disable noinlineerr Not really useful IMO and just adds noise. * disable wsl wsl is deprecated
1 parent abf0617 commit c3d324f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
- uses: actions/checkout@v5
88
- uses: actions/setup-go@v6
99
with:
10-
go-version: '1.24'
10+
go-version: "1.25"
1111
- uses: golangci/golangci-lint-action@v8
1212
with:
13-
version: v2.1.6
13+
version: v2.5.0
1414
args: --timeout 3m --verbose

.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ linters:
2828
# https://github.com/italia/developers-italia-api/issues/190)
2929
# Don't feel about chasing this one down
3030
- musttag
31+
# Meh
32+
- noinlineerr
33+
# Deprecated
34+
- wsl
3135

3236
# More false positive than actual issues
3337
- mnd

errors.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
)
88

9-
// A generic parse error.
9+
// ParseError is generic parse error.
1010
type ParseError struct {
1111
Reason string
1212
}
@@ -36,6 +36,7 @@ func (e ValidationError) MarshalJSON() ([]byte, error) {
3636

3737
return json.Marshal(&struct {
3838
*Ve
39+
3940
Type string `json:"type"`
4041
}{
4142
Ve: (*Ve)(&e),
@@ -63,6 +64,7 @@ func (e ValidationWarning) MarshalJSON() ([]byte, error) {
6364

6465
return json.Marshal(&struct {
6566
*Ve
67+
6668
Type string `json:"type"`
6769
}{
6870
Ve: (*Ve)(&e),

internal/netutil.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func downloadFile(filepath string, url *url.URL, headers map[string]string) erro
3838
return err
3939
}
4040

41+
// DownloadTmpFile downloads the passed URL to a temporary directory.
4142
// Caller is responsible for removing the temporary directory.
4243
func DownloadTmpFile(url *url.URL, headers map[string]string) (string, error) {
4344
// Create a temp dir

0 commit comments

Comments
 (0)