Merge pull request #929 from jdsutherland/solium-solidity-linter
Add solidity linter: solium
This commit is contained in:
commit
677263f115
4 changed files with 29 additions and 0 deletions
|
@ -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) |
|
||||
|
|
9
ale_linters/solidity/solium.vim
Normal file
9
ale_linters/solidity/solium.vim
Normal 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
16
doc/ale-solidity.txt
Normal 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:
|
||||
|
|
@ -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`
|
||||
|
|
Reference in a new issue