summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSascha Grunert <mail@saschagrunert.de>2018-09-06 21:31:12 +0200
committerw0rp <w0rp@users.noreply.github.com>2018-09-06 20:31:12 +0100
commit7b62a157390b6abb8a41efe2c5ddbf75b1888843 (patch)
treeaddb42c4124bee3aaffde052c11f92bf112e513b /doc
parent580bd3677344aa2f3d2f0d3d6ee3405cae6abf54 (diff)
downloadale-7b62a157390b6abb8a41efe2c5ddbf75b1888843.zip
Add golangci-lint (#1890)
Diffstat (limited to 'doc')
-rw-r--r--doc/ale-go.txt33
-rw-r--r--doc/ale.txt3
2 files changed, 35 insertions, 1 deletions
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
@@ -135,4 +135,37 @@ g:ale_go_langserver_options *g:ale_go_langserver_options*
===============================================================================
+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:
diff --git a/doc/ale.txt b/doc/ale.txt
index da7abcf1..e08946e5 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -96,6 +96,7 @@ CONTENTS *ale-contents*
gometalinter........................|ale-go-gometalinter|
staticcheck.........................|ale-go-staticcheck|
golangserver........................|ale-go-golangserver|
+ golangci-lint.......................|ale-go-golangci-lint|
graphql...............................|ale-graphql-options|
eslint..............................|ale-graphql-eslint|
gqlint..............................|ale-graphql-gqlint|
@@ -385,7 +386,7 @@ Notes:
* FusionScript: `fusion-lint`
* Git Commit Messages: `gitlint`
* GLSL: glslang, `glslls`
-* Go: `gofmt`, `goimports`, `go vet`!!, `golint`, `gotype`!!, `gometalinter`!!, `go build`!!, `gosimple`!!, `staticcheck`!!, `golangserver`
+* Go: `gofmt`, `goimports`, `go vet`!!, `golint`, `gotype`!!, `gometalinter`!!, `go build`!!, `gosimple`!!, `staticcheck`!!, `golangserver`, `golangci-lint`!!
* GraphQL: `eslint`, `gqlint`, `prettier`
* Hack: `hack`, `hackfmt`, `hhast`
* Haml: `haml-lint`