Skip to content

Commit 54d779a

Browse files
committed
Fix linter issues.
1 parent eed2760 commit 54d779a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.golangci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
run:
22
concurrency: 2
3-
deadline: 5m
4-
5-
skip-dirs:
6-
- path: ./testdata/
3+
timeout: 5m
74

85
linters:
96
disable-all: true
@@ -13,6 +10,7 @@ linters:
1310
- cyclop
1411
- dogsled
1512
- durationcheck
13+
- err113
1614
- errcheck
1715
- errname
1816
- errorlint
@@ -25,7 +23,6 @@ linters:
2523
- gocritic
2624
- gocyclo
2725
- godot
28-
- goerr113
2926
- gofmt
3027
- gofumpt
3128
- goimports
@@ -64,6 +61,8 @@ issues:
6461
exclude-use-default: false
6562
exclude:
6663
- "do not define dynamic errors, use wrapped static errors instead"
64+
exclude-files:
65+
- ./testdata/
6766
exclude-rules:
6867
- path: _test\.go
6968
linters:

cmd/godot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func findFiles(root string) chan string {
192192

193193
go func() {
194194
defer close(out)
195-
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
195+
err := filepath.Walk(root, func(path string, info os.FileInfo, _ error) error {
196196
sep := string(filepath.Separator)
197197
if strings.HasPrefix(path, "vendor"+sep) || strings.Contains(path, sep+"vendor"+sep) {
198198
return nil

0 commit comments

Comments
 (0)