Add solidity linter: solium

This commit is contained in:
Jeff Sutherland 2017-09-14 00:45:18 +07:00
parent 91df9ba2c0
commit 7302bedc5e
4 changed files with 29 additions and 0 deletions

View file

@ -131,6 +131,7 @@ formatting.
| Scala | [scalac](http://scala-lang.org), [scalastyle](http://www.scalastyle.org) |
| Slim | [slim-lint](https://github.com/sds/slim-lint)
| SML | [smlnj](http://www.smlnj.org/) |
| Solidity | [solium](https://github.com/duaraghav8/Solium) |
| Stylus | [stylelint](https://github.com/stylelint/stylelint) |
| SQL | [sqlint](https://github.com/purcell/sqlint) |
| Swift | [swiftlint](https://github.com/realm/SwiftLint), [swiftformat](https://github.com/nicklockwood/SwiftFormat) |

View file

@ -0,0 +1,9 @@
" Author: Jeff Sutherland - https://github.com/jdsutherland
" Description: Report errors in Solidity code with solium
call ale#linter#Define('solidity', {
\ 'name': 'solium',
\ 'executable': 'solium',
\ 'command': 'solium --reporter gcc --file %t',
\ 'callback': 'ale#handlers#gcc#HandleGCCFormat',
\})

16
doc/ale-solidity.txt Normal file
View file

@ -0,0 +1,16 @@
===============================================================================
ALE Solidity Integration *ale-solidity-options*
===============================================================================
solium *ale-solidity-solium*
Use of Solium linter for Solidity source code requires a .soliumrc.json
file in project root. This file can be generated by running `solium --init`.
See the corresponding solium usage for detailed instructions
(https://github.com/duaraghav8/Solium#usage).
===============================================================================
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:

View file

@ -146,6 +146,8 @@ CONTENTS *ale-contents*
shellcheck..........................|ale-sh-shellcheck|
sml...................................|ale-sml-options|
smlnj...............................|ale-sml-smlnj|
solidity..............................|ale-solidity-options|
solium..............................|ale-solidity-solium|
spec..................................|ale-spec-options|
rpmlint.............................|ale-spec-rpmlint|
stylus................................|ale-stylus-options|
@ -275,6 +277,7 @@ Notes:
* Scala: `scalac`, `scalastyle`
* Slim: `slim-lint`
* SML: `smlnj`
* Solidity: `solium`
* Stylus: `stylelint`
* SQL: `sqlint`
* Swift: `swiftlint`, `swiftformat`