Skip to content

Commit

Permalink
Fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tetafro committed Sep 7, 2024
1 parent eed2760 commit 54d779a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
run:
concurrency: 2
deadline: 5m

skip-dirs:
- path: ./testdata/
timeout: 5m

linters:
disable-all: true
Expand All @@ -13,6 +10,7 @@ linters:
- cyclop
- dogsled
- durationcheck
- err113
- errcheck
- errname
- errorlint
Expand All @@ -25,7 +23,6 @@ linters:
- gocritic
- gocyclo
- godot
- goerr113
- gofmt
- gofumpt
- goimports
Expand Down Expand Up @@ -64,6 +61,8 @@ issues:
exclude-use-default: false
exclude:
- "do not define dynamic errors, use wrapped static errors instead"
exclude-files:
- ./testdata/
exclude-rules:
- path: _test\.go
linters:
Expand Down
2 changes: 1 addition & 1 deletion cmd/godot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func findFiles(root string) chan string {

go func() {
defer close(out)
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
err := filepath.Walk(root, func(path string, info os.FileInfo, _ error) error {
sep := string(filepath.Separator)
if strings.HasPrefix(path, "vendor"+sep) || strings.Contains(path, sep+"vendor"+sep) {
return nil
Expand Down

0 comments on commit 54d779a

Please sign in to comment.