on main help sign in
chore: fix `golangci-lint` locally (#815)
5a99685Andrey Nering
Taskfile.yaml+11
@@ -7,15 +7,26 @@ env:
7 GOEXPERIMENT: greenteagc
7 GOEXPERIMENT: greenteagc
8
8
9tasks:
9tasks:
10+ lint:install:
11+ desc: Install golangci-lint
12+ cmds:
13+ - go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
14+ env:
15+ GOTOOLCHAIN: go1.25.0
16+
10 lint:
17 lint:
11 desc: Run base linters
18 desc: Run base linters
12 cmds:
19 cmds:
13 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
20 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
21+ env:
22+ GOEXPERIMENT: null
14
23
15 lint-fix:
24 lint-fix:
16 desc: Run base linters and fix issues
25 desc: Run base linters and fix issues
17 cmds:
26 cmds:
18 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
27 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
28+ env:
29+ GOEXPERIMENT: null
19
30
20 test:
31 test:
21 desc: Run tests
32 desc: Run tests