mirror of https://github.com/dense-analysis/ale
remove `--enable-all` from golangci-lint options (#4488)
* remove --enable-all from default golangci-lint options * update golangci-lint options documentation * update tests to use empty golangci-lint options
This commit is contained in:
parent
41e12fd640
commit
b0ba31f88e
|
@ -1,7 +1,7 @@
|
|||
" Author: Sascha Grunert <mail@saschagrunert.de>
|
||||
" Description: Adds support of golangci-lint
|
||||
|
||||
call ale#Set('go_golangci_lint_options', '--enable-all')
|
||||
call ale#Set('go_golangci_lint_options', '')
|
||||
call ale#Set('go_golangci_lint_executable', 'golangci-lint')
|
||||
call ale#Set('go_golangci_lint_package', 0)
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ g:ale_go_golangci_lint_executable *g:ale_go_golangci_lint_executable*
|
|||
g:ale_go_golangci_lint_options *g:ale_go_golangci_lint_options*
|
||||
*b:ale_go_golangci_lint_options*
|
||||
Type: |String|
|
||||
Default: `'--enable-all'`
|
||||
Default: `''`
|
||||
|
||||
This variable can be changed to alter the command-line arguments to the
|
||||
golangci-lint invocation.
|
||||
|
|
|
@ -16,7 +16,7 @@ Execute(The golangci-lint defaults should be correct):
|
|||
AssertLinter 'golangci-lint',
|
||||
\ ale#Escape('golangci-lint')
|
||||
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||
\ . ' --enable-all'
|
||||
\ . ' '
|
||||
|
||||
Execute(The golangci-lint callback should use a configured executable):
|
||||
let b:ale_go_golangci_lint_executable = 'something else'
|
||||
|
@ -24,7 +24,7 @@ Execute(The golangci-lint callback should use a configured executable):
|
|||
AssertLinter 'something else',
|
||||
\ ale#Escape('something else')
|
||||
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||
\ . ' --enable-all'
|
||||
\ . ' '
|
||||
|
||||
Execute(The golangci-lint callback should use configured options):
|
||||
let b:ale_go_golangci_lint_options = '--foobar'
|
||||
|
@ -41,10 +41,10 @@ Execute(The golangci-lint callback should support environment variables):
|
|||
\ ale#Env('GO111MODULE', 'on')
|
||||
\ . ale#Escape('golangci-lint')
|
||||
\ . ' run ' . ale#Escape(expand('%' . ':t'))
|
||||
\ . ' --enable-all'
|
||||
\ . ' '
|
||||
|
||||
Execute(The golangci-lint `lint_package` option should use the correct command):
|
||||
let b:ale_go_golangci_lint_package = 1
|
||||
|
||||
AssertLinter 'golangci-lint',
|
||||
\ ale#Escape('golangci-lint') . ' run --enable-all'
|
||||
\ ale#Escape('golangci-lint') . ' run '
|
||||
|
|
Loading…
Reference in New Issue