mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-29 07:16:53 +08:00
Merge pull request #471 from breed808/gometalinter
Add gometalinter linter for go files
This commit is contained in:
37
doc/ale-go.txt
Normal file
37
doc/ale-go.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
===============================================================================
|
||||
ALE Go Integration *ale-go-options*
|
||||
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Integration Information
|
||||
|
||||
The `gometalinter` linter is disabled by default, and all other Go linters
|
||||
supported by ALE are enabled by default. To enable `gometalinter`, update
|
||||
|g:ale_linters| as appropriate:
|
||||
|
||||
>
|
||||
" Enable all of the linters you want for Go.
|
||||
let g:ale_linters = {'go': ['gometalinter', 'gofmt']}
|
||||
<
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
gometalinter *ale-go-gometalinter*
|
||||
|
||||
g:ale_go_gometalinter_enabled *g:ale_go_gometalinter_enabled*
|
||||
|
||||
Type: |Integer|
|
||||
Default: 0
|
||||
|
||||
This variable can be change to enable gometalinter for go files.
|
||||
|
||||
|
||||
g:ale_go_gometalinter_options *g:ale_go_gometalinter_options*
|
||||
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
This variable can be changed to alter the command-line arguments to the
|
||||
gometalinter invocation.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|
||||
@@ -31,6 +31,8 @@ CONTENTS *ale-contents*
|
||||
erlc................................|ale-erlang-erlc|
|
||||
fortran...............................|ale-fortran-options|
|
||||
gcc.................................|ale-fortran-gcc|
|
||||
go....................................|ale-go-options|
|
||||
gometalinter........................|ale-go-gometalinter|
|
||||
handlebars............................|ale-handlebars-options|
|
||||
ember-template-lint.................|ale-handlebars-embertemplatelint|
|
||||
html..................................|ale-html-options|
|
||||
@@ -124,7 +126,7 @@ The following languages and tools are supported.
|
||||
* Elm: 'elm-make'
|
||||
* Erlang: 'erlc'
|
||||
* Fortran: 'gcc'
|
||||
* Go: 'gofmt -e', 'go vet', 'golint', 'go build', 'gosimple', 'staticcheck'
|
||||
* Go: 'gofmt', 'go vet', 'golint', 'go build', 'gosimple', 'staticcheck'
|
||||
* Haml: 'hamllint'
|
||||
* Handlebars: 'ember-template-lint'
|
||||
* Haskell: 'ghc', 'hlint'
|
||||
|
||||
Reference in New Issue
Block a user