Make Cypher linter dynamic
This commit is contained in:
parent
c0c634c5ec
commit
b47a0c9519
4 changed files with 4 additions and 4 deletions
|
@ -118,6 +118,7 @@ formatting.
|
|||
| Crystal | [ameba](https://github.com/veelenga/ameba) !!, [crystal](https://crystal-lang.org/) !! |
|
||||
| CSS | [csslint](http://csslint.net/), [prettier](https://github.com/prettier/prettier), [stylelint](https://github.com/stylelint/stylelint) |
|
||||
| Cucumber | [cucumber](https://cucumber.io/) |
|
||||
| Cypher | [cypher-lint](https://github.com/cleishm/libcypher-parser) |
|
||||
| Cython (pyrex filetype) | [cython](http://cython.org/) |
|
||||
| D | [dls](https://github.com/d-language-server/dls), [dmd](https://dlang.org/dmd-linux.html), [uncrustify](https://github.com/uncrustify/uncrustify) |
|
||||
| Dafny | [dafny](https://rise4fun.com/Dafny) !! |
|
||||
|
@ -211,7 +212,6 @@ formatting.
|
|||
| XML | [xmllint](http://xmlsoft.org/xmllint.html) |
|
||||
| YAML | [prettier](https://github.com/prettier/prettier), [swaglint](https://github.com/byCedric/swaglint), [yamllint](https://yamllint.readthedocs.io/) |
|
||||
| YANG | [yang-lsp](https://github.com/theia-ide/yang-lsp) |
|
||||
| Cypher | [cypher-lint](https://github.com/cleishm/libcypher-parser) !! |
|
||||
|
||||
<a name="usage"></a>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ endfunction
|
|||
call ale#linter#Define('cypher', {
|
||||
\ 'name': 'cypher_lint',
|
||||
\ 'executable': 'cypher-lint',
|
||||
\ 'command': 'cypher-lint %s',
|
||||
\ 'command': 'cypher-lint',
|
||||
\ 'output_stream': 'stderr',
|
||||
\ 'callback': 'ale_linters#cypher#cypher_lint#Handle',
|
||||
\})
|
||||
|
|
|
@ -439,6 +439,7 @@ Notes:
|
|||
* Crystal: `ameba`!!, `crystal`!!
|
||||
* CSS: `csslint`, `prettier`, `stylelint`
|
||||
* Cucumber: `cucumber`
|
||||
* Cypher: `cypher-lint`
|
||||
* Cython (pyrex filetype): `cython`
|
||||
* D: `dls`, `dmd`, `uncrustify`
|
||||
* Dafny: `dafny`!!
|
||||
|
@ -532,7 +533,6 @@ Notes:
|
|||
* XML: `xmllint`
|
||||
* YAML: `prettier`, `swaglint`, `yamllint`
|
||||
* YANG: `yang-lsp`
|
||||
* Cypher: `cypher-lint`!!
|
||||
|
||||
===============================================================================
|
||||
3. Linting *ale-lint*
|
||||
|
|
|
@ -5,4 +5,4 @@ After:
|
|||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default command and executable should be correct):
|
||||
AssertLinter 'cypher-lint', 'cypher-lint %s'
|
||||
AssertLinter 'cypher-lint', 'cypher-lint'
|
||||
|
|
Reference in a new issue