Skip to content

Commit 03142cc

Browse files
committed
chore: update linter
1 parent ae24b32 commit 03142cc

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
GO_VERSION: stable
18-
GOLANGCI_LINT_VERSION: v1.62.2
18+
GOLANGCI_LINT_VERSION: v2.4.0
1919
CGO_ENABLED: 0
2020

2121
steps:

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ linters:
3131
- tparallel
3232
- varnamelen
3333
- wrapcheck
34+
- wsl # Deprecated
3435

3536
settings:
3637
depguard:

tagliatelle.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ import (
2222
// Config the tagliatelle configuration.
2323
type Config struct {
2424
Base
25+
2526
Overrides []Overrides
2627
}
2728

2829
// Overrides applies configuration overrides by package.
2930
type Overrides struct {
3031
Base
32+
3133
Package string
3234
}
3335

tagliatelle_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package tagliatelle_test
22

33
import (
4+
"context"
45
"os"
56
"os/exec"
67
"path/filepath"
@@ -246,7 +247,7 @@ func runWithSuggestedFixes(t *testing.T, a *analysis.Analyzer, dir string, patte
246247
t.Fatal(err)
247248
}
248249

249-
output, err := exec.Command("go", "mod", "vendor").CombinedOutput()
250+
output, err := exec.CommandContext(context.TODO(), "go", "mod", "vendor").CombinedOutput()
250251
if err != nil {
251252
t.Log(string(output))
252253
t.Fatal(err)

0 commit comments

Comments
 (0)