1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 22:33:07 +02:00

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).
This commit is contained in:
Stefan Haller
2025-07-03 15:28:52 +02:00
parent 91d8c25183
commit 50785a2217

View File

@ -99,9 +99,7 @@ linters:
- legacy - legacy
- std-error-handling - std-error-handling
paths: paths:
- third_party$ - vendor/
- builtin$
- examples$
formatters: formatters:
enable: enable:
- gofumpt - gofumpt
@ -109,6 +107,4 @@ formatters:
exclusions: exclusions:
generated: lax generated: lax
paths: paths:
- third_party$ - vendor/
- builtin$
- examples$