Checker solium: cleanup.
This commit is contained in:
parent
08ca849db2
commit
e0d044fa7e
@ -5970,7 +5970,7 @@ SYNTAX CHECKERS FOR SOLIDITY *syntastic-checkers-solidity*
|
|||||||
The following checkers are available for Solidity (filetype "solidity"):
|
The following checkers are available for Solidity (filetype "solidity"):
|
||||||
|
|
||||||
1. solc.....................|syntastic-solidity-solc|
|
1. solc.....................|syntastic-solidity-solc|
|
||||||
1. solium...................|syntastic-solidity-solium|
|
2. Solium...................|syntastic-solidity-solium|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
1. solc *syntastic-solidity-solc*
|
1. solc *syntastic-solidity-solc*
|
||||||
@ -5996,27 +5996,19 @@ You probably also need a plugin to set |filetype| for Solidity files, such as
|
|||||||
https://github.com/tomlion/vim-solidity
|
https://github.com/tomlion/vim-solidity
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
1. solium *syntastic-solidity-solium*
|
2. Solium *syntastic-solidity-solium*
|
||||||
|
|
||||||
Name: solium
|
Name: solium
|
||||||
Maintainer: Matthijs van den Bos <matthijs@vandenbos.org>
|
Maintainer: Matthijs van den Bos <matthijs@vandenbos.org>
|
||||||
|
|
||||||
Solium is a linter for Solidity which uses Abstract Syntax Trees and allows
|
"Solium" is a linter for "Solidity" files. See the project's page for details:
|
||||||
the user to enable/disable existing rules and add their own ones. See the
|
|
||||||
project's page for details:
|
|
||||||
|
|
||||||
https://github.com/duaraghav8/Solium
|
https://github.com/duaraghav8/Solium
|
||||||
|
|
||||||
Checker options~
|
Checker options~
|
||||||
|
|
||||||
This checker is configured by the .soliumrc.json file.
|
This checker is initialised using the "makeprgBuild()" function and thus it
|
||||||
|
accepts the standard options described at |syntastic-config-makeprg|.
|
||||||
Note
|
|
||||||
|
|
||||||
Solium doesn't run without a .soliumrc.json in the directory where it is run
|
|
||||||
from. In the case of this checker, that is the directory where the file being
|
|
||||||
checked is located. If there is no .soliumrc.json there, the checker won't
|
|
||||||
work.
|
|
||||||
|
|
||||||
Note~
|
Note~
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.8.0-30'
|
let g:_SYNTASTIC_VERSION = '3.8.0-33'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -86,7 +86,7 @@ let s:_DEFAULT_CHECKERS = {
|
|||||||
\ 'slim': ['slimrb'],
|
\ 'slim': ['slimrb'],
|
||||||
\ 'sml': ['smlnj'],
|
\ 'sml': ['smlnj'],
|
||||||
\ 'spec': ['rpmlint'],
|
\ 'spec': ['rpmlint'],
|
||||||
\ 'solidity': ['solc', 'solium'],
|
\ 'solidity': ['solc'],
|
||||||
\ 'sql': ['sqlint'],
|
\ 'sql': ['sqlint'],
|
||||||
\ 'stylus': ['stylint'],
|
\ 'stylus': ['stylint'],
|
||||||
\ 'tcl': ['nagelfar'],
|
\ 'tcl': ['nagelfar'],
|
||||||
|
@ -20,15 +20,17 @@ set cpo&vim
|
|||||||
|
|
||||||
function! SyntaxCheckers_solidity_solium_GetLocList() dict
|
function! SyntaxCheckers_solidity_solium_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ 'exe': 'solium',
|
\ 'args_after': '-R gcc',
|
||||||
\ 'fname': expand('%:p',1),
|
\ 'fname_before': '--file'})
|
||||||
\ 'args': '-R gcc --file'})
|
|
||||||
|
|
||||||
let errorformat = '%f:%l:%c: %trror: %m'
|
let errorformat =
|
||||||
|
\ '%f:%l:%c: %trror: %m,' .
|
||||||
|
\ '%f:%l:%c: %tarning: %m'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat })
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'returns': [0, 1] })
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
Reference in New Issue
Block a user