Fix 4586 - Make golangci-lint lint package on by default. (#4730)

Checking whole packages instead of individual files is more sensible
default for golang projects. Without this we get many cryptic
`typecheck` errors in ALE that do not show when running in terminal or
CI.
This commit is contained in:
Horacio Sanson
2024-02-28 10:07:22 +09:00
committed by GitHub
parent 8d199d8c10
commit 24a937e04f
2 changed files with 10 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
call ale#Set('go_golangci_lint_options', '')
call ale#Set('go_golangci_lint_executable', 'golangci-lint')
call ale#Set('go_golangci_lint_package', 0)
call ale#Set('go_golangci_lint_package', 1)
function! ale_linters#go#golangci_lint#GetCommand(buffer) abort
let l:filename = expand('#' . a:buffer . ':t')