From 7b62a157390b6abb8a41efe2c5ddbf75b1888843 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 6 Sep 2018 21:31:12 +0200 Subject: Add golangci-lint (#1890) --- doc/ale-go.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'doc/ale-go.txt') diff --git a/doc/ale-go.txt b/doc/ale-go.txt index c97f599e..1d55763e 100644 --- a/doc/ale-go.txt +++ b/doc/ale-go.txt @@ -134,5 +134,38 @@ g:ale_go_langserver_options *g:ale_go_langserver_options* by the |g:ale_completion_enabled| variable. +=============================================================================== +golangci-lint *ale-go-golangci-lint* + +`golangci-lint` is a `lint_file` linter, which only lints files that are +written to disk. This differs from the default behavior of linting the buffer. +See: |ale-lint-file| + +g:ale_go_golangci_lint_executable *g:ale_go_golangci_lint_executable* + *b:ale_go_golangci_lint_executable* + Type: |String| + Default: `'golangci-lint'` + + The executable that will be run for golangci-lint. + + +g:ale_go_golangci_lint_options *g:ale_go_golangci_lint_options* + *b:ale_go_golangci_lint_options* + Type: |String| + Default: `'--enable-all'` + + This variable can be changed to alter the command-line arguments to the + golangci-lint invocation. + + +g:ale_go_golangci_lint_package *g:ale_go_golangci_lint_package* + *b:ale_go_golangci_lint_package* + Type: |Number| + Default: `0` + + When set to `1`, the whole Go package will be checked instead of only the + current file. + + =============================================================================== vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: -- cgit v1.2.3