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/) !! |
|
| 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) |
|
| CSS | [csslint](http://csslint.net/), [prettier](https://github.com/prettier/prettier), [stylelint](https://github.com/stylelint/stylelint) |
|
||||||
| Cucumber | [cucumber](https://cucumber.io/) |
|
| Cucumber | [cucumber](https://cucumber.io/) |
|
||||||
|
| Cypher | [cypher-lint](https://github.com/cleishm/libcypher-parser) |
|
||||||
| Cython (pyrex filetype) | [cython](http://cython.org/) |
|
| 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) |
|
| 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) !! |
|
| Dafny | [dafny](https://rise4fun.com/Dafny) !! |
|
||||||
|
@ -211,7 +212,6 @@ formatting.
|
||||||
| XML | [xmllint](http://xmlsoft.org/xmllint.html) |
|
| 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/) |
|
| 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) |
|
| YANG | [yang-lsp](https://github.com/theia-ide/yang-lsp) |
|
||||||
| Cypher | [cypher-lint](https://github.com/cleishm/libcypher-parser) !! |
|
|
||||||
|
|
||||||
<a name="usage"></a>
|
<a name="usage"></a>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ endfunction
|
||||||
call ale#linter#Define('cypher', {
|
call ale#linter#Define('cypher', {
|
||||||
\ 'name': 'cypher_lint',
|
\ 'name': 'cypher_lint',
|
||||||
\ 'executable': 'cypher-lint',
|
\ 'executable': 'cypher-lint',
|
||||||
\ 'command': 'cypher-lint %s',
|
\ 'command': 'cypher-lint',
|
||||||
\ 'output_stream': 'stderr',
|
\ 'output_stream': 'stderr',
|
||||||
\ 'callback': 'ale_linters#cypher#cypher_lint#Handle',
|
\ 'callback': 'ale_linters#cypher#cypher_lint#Handle',
|
||||||
\})
|
\})
|
||||||
|
|
|
@ -439,6 +439,7 @@ Notes:
|
||||||
* Crystal: `ameba`!!, `crystal`!!
|
* Crystal: `ameba`!!, `crystal`!!
|
||||||
* CSS: `csslint`, `prettier`, `stylelint`
|
* CSS: `csslint`, `prettier`, `stylelint`
|
||||||
* Cucumber: `cucumber`
|
* Cucumber: `cucumber`
|
||||||
|
* Cypher: `cypher-lint`
|
||||||
* Cython (pyrex filetype): `cython`
|
* Cython (pyrex filetype): `cython`
|
||||||
* D: `dls`, `dmd`, `uncrustify`
|
* D: `dls`, `dmd`, `uncrustify`
|
||||||
* Dafny: `dafny`!!
|
* Dafny: `dafny`!!
|
||||||
|
@ -532,7 +533,6 @@ Notes:
|
||||||
* XML: `xmllint`
|
* XML: `xmllint`
|
||||||
* YAML: `prettier`, `swaglint`, `yamllint`
|
* YAML: `prettier`, `swaglint`, `yamllint`
|
||||||
* YANG: `yang-lsp`
|
* YANG: `yang-lsp`
|
||||||
* Cypher: `cypher-lint`!!
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
3. Linting *ale-lint*
|
3. Linting *ale-lint*
|
||||||
|
|
|
@ -5,4 +5,4 @@ After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The default command and executable should be correct):
|
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