Skip to content

Commit

Permalink
lint: enabled is a better word
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Sep 29, 2015
1 parent 95b7df6 commit f2f4660
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions autoload/go/lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ if !exists("g:go_metalinter_command")
let g:go_metalinter_command = ""
endif

if !exists("g:go_metalinter_allowed")
let g:go_metalinter_allowed = ['vet', 'golint', 'errcheck']
if !exists("g:go_metalinter_enabled")
let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck']
endif

if !exists("g:go_golint_bin")
Expand All @@ -27,7 +27,7 @@ function! go#lint#Gometa(...) abort
return
endif

for linter in g:go_metalinter_allowed
for linter in g:go_metalinter_enabled
let meta_command .= " --enable=".linter
endfor

Expand Down
8 changes: 4 additions & 4 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ COMMANDS *go-commands*
Calls the underlying `gometalinter` tool and displays all warnings and
errors in a quickfix window. By default the following linters are
enabled: "'vet', 'golint', 'errcheck'". This can be changed with the
|g:go_metalinter_allowed| variable. To override the command completely
|g:go_metalinter_enabled| variable. To override the command completely
use the variable |g:go_metalinter_command|


Expand Down Expand Up @@ -831,12 +831,12 @@ Adds custom text objects. By default it's enabled. >
let g:go_textobj_enabled = 1
<

*'g:go_metalinter_allowed'*
*'g:go_metalinter_enabled'*

Specifiies the currently allowed linters for the |GoMetaLinter| command. By
Specifies the currently enabled linters for the |GoMetaLinter| command. By
default it's using `vet`, `golint` and `errcheck`
>
let g:go_metalinter_allowed = ['vet', 'golint', 'errcheck']
let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck']
<
*'g:go_metalinter_command'*

Expand Down

0 comments on commit f2f4660

Please sign in to comment.