From 83f4296cfa34a829a9e86dba0ffcb2b46fc4d8d9 Mon Sep 17 00:00:00 2001 From: Kevin Gillette Date: Mon, 4 Sep 2023 10:38:46 -0600 Subject: [PATCH] go/golangci_lint.vim: set package linting to 1 The present default of 0 causes excessive and unnecessary typecheck errors in all but the most trivial (single-file) packages. The standard Go unit of code is a directory, not a file, and optimizing for processing a single file provides negligible savings in processing time for a typical project, yet creates a lot of noise for the user. --- ale_linters/go/golangci_lint.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/go/golangci_lint.vim b/ale_linters/go/golangci_lint.vim index 78087b5e14..a3643370bf 100644 --- a/ale_linters/go/golangci_lint.vim +++ b/ale_linters/go/golangci_lint.vim @@ -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')