Skip to content

Commit 50785a2

Browse files
committed
Exclude vendor directory from linting
It seems to be excluded already when you run the lint.sh script, but in VS Code when setting Lint on Save to package it would still lint a file in gocui when you save it, which is annoying. (Remove the other paths that were there before; they seem to be unused, and they were added by the auto-migration.) Unfortunately, gopls will still lint gocui files with its builtin staticcheck linter, and I couldn't find a way to turn this off. This might be a reason to turn off staticcheck in gopls (not sure yet).
1 parent 91d8c25 commit 50785a2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.golangci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,12 @@ linters:
9999
- legacy
100100
- std-error-handling
101101
paths:
102-
- third_party$
103-
- builtin$
104-
- examples$
102+
- vendor/
105103
formatters:
106104
enable:
107105
- gofumpt
108106
- goimports
109107
exclusions:
110108
generated: lax
111109
paths:
112-
- third_party$
113-
- builtin$
114-
- examples$
110+
- vendor/

0 commit comments

Comments
 (0)