Merge pull request #2278 from oblitum/improve-cypher-lint

linter/cypher: make Cypher linter dynamic
This commit is contained in:
w0rp 2019-02-07 09:24:41 +00:00 committed by GitHub
commit 0b9c0c2200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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',
\})

View file

@ -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*

View file

@ -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'