Skip to content

Commit 12c67ad

Browse files
committed
enable only default linters
1 parent 96aada3 commit 12c67ad

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
with:
1919
go-version: '1.23'
2020

21+
- name: Run linter
22+
uses: golangci/golangci-lint-action@v6
23+
with:
24+
version: v1.60
25+
2126
- name: Run tests
2227
run: make test
2328

.golangci.yml

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
linters:
2-
enable-all: true
3-
disable:
4-
- maligned
5-
- lll
6-
- gochecknoglobals
7-
- gocyclo
8-
- nakedret
9-
- funlen
10-
- wsl
11-
- gocognit
12-
- gomnd
13-
- godox
14-
- goerr113
15-
- nlreturn
16-
- testpackage
17-
- gofumpt
18-
- godot
19-
- noctx
20-
- nestif
21-
- gochecknoinits
222
issues:
233
exclude-rules:
244
- path: _test\.go
255
linters:
266
- goconst
277
- errcheck
8+
- noctx

0 commit comments

Comments
 (0)