mirror of https://github.com/dense-analysis/ale
Document and test solc
This commit is contained in:
parent
b8949aaac3
commit
529f57a66f
|
@ -2,6 +2,18 @@
|
||||||
ALE Solidity Integration *ale-solidity-options*
|
ALE Solidity Integration *ale-solidity-options*
|
||||||
|
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
|
solc *ale-solidity-solc*
|
||||||
|
|
||||||
|
|
||||||
|
g:ale_solidity_solc_options *g:ale_solidity_solc_options*
|
||||||
|
*b:ale_solidity_solc_options*
|
||||||
|
Type: |String|
|
||||||
|
Default: `''`
|
||||||
|
|
||||||
|
This variable can be set to pass extra options to solc.
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
solhint *ale-solidity-solhint*
|
solhint *ale-solidity-solhint*
|
||||||
|
|
||||||
|
|
|
@ -421,6 +421,7 @@ Notes:
|
||||||
* SML
|
* SML
|
||||||
* `smlnj`
|
* `smlnj`
|
||||||
* Solidity
|
* Solidity
|
||||||
|
* `solc`
|
||||||
* `solhint`
|
* `solhint`
|
||||||
* `solium`
|
* `solium`
|
||||||
* SQL
|
* SQL
|
||||||
|
|
|
@ -2371,6 +2371,7 @@ documented in additional help files.
|
||||||
sml.....................................|ale-sml-options|
|
sml.....................................|ale-sml-options|
|
||||||
smlnj.................................|ale-sml-smlnj|
|
smlnj.................................|ale-sml-smlnj|
|
||||||
solidity................................|ale-solidity-options|
|
solidity................................|ale-solidity-options|
|
||||||
|
solc..................................|ale-solidity-solc|
|
||||||
solhint...............................|ale-solidity-solhint|
|
solhint...............................|ale-solidity-solhint|
|
||||||
solium................................|ale-solidity-solium|
|
solium................................|ale-solidity-solium|
|
||||||
spec....................................|ale-spec-options|
|
spec....................................|ale-spec-options|
|
||||||
|
|
|
@ -430,6 +430,7 @@ formatting.
|
||||||
* SML
|
* SML
|
||||||
* [smlnj](http://www.smlnj.org/)
|
* [smlnj](http://www.smlnj.org/)
|
||||||
* Solidity
|
* Solidity
|
||||||
|
* [solc](https://solidity.readthedocs.io/)
|
||||||
* [solhint](https://github.com/protofire/solhint)
|
* [solhint](https://github.com/protofire/solhint)
|
||||||
* [solium](https://github.com/duaraghav8/Solium)
|
* [solium](https://github.com/duaraghav8/Solium)
|
||||||
* SQL
|
* SQL
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
Before:
|
||||||
|
call ale#assert#SetUpLinterTest('solidity', 'solc')
|
||||||
|
|
||||||
|
After:
|
||||||
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
|
Execute(The default command should be correct):
|
||||||
|
AssertLinter 'solc', 'solc %s'
|
||||||
|
|
||||||
|
Execute(The options should be configurable):
|
||||||
|
let g:ale_solidity_solc_options = '--foobar'
|
||||||
|
|
||||||
|
AssertLinter 'solc', 'solc --foobar %s'
|
Loading…
Reference in New Issue