Glue for Vale (#522)

Add Vale linter definitions
This commit is contained in:
Robert J 2017-05-01 23:06:04 +08:00 committed by w0rp
parent 5dcc77e8c8
commit d5c135cfaf
4 changed files with 22 additions and 4 deletions

View File

@ -83,7 +83,7 @@ name. That seems to be the fairest way to arrange this table.
| JSON | [jsonlint](http://zaa.ch/jsonlint/) | | JSON | [jsonlint](http://zaa.ch/jsonlint/) |
| LaTeX | [chktex](http://www.nongnu.org/chktex/), [lacheck](https://www.ctan.org/pkg/lacheck) | | LaTeX | [chktex](http://www.nongnu.org/chktex/), [lacheck](https://www.ctan.org/pkg/lacheck) |
| Lua | [luacheck](https://github.com/mpeterv/luacheck) | | Lua | [luacheck](https://github.com/mpeterv/luacheck) |
| Markdown | [mdl](https://github.com/mivok/markdownlint), [proselint](http://proselint.com/)| | Markdown | [mdl](https://github.com/mivok/markdownlint), [proselint](http://proselint.com/), [vale](https://github.com/ValeLint/vale) |
| MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) | | MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) |
| Nim | [nim](https://nim-lang.org/docs/nimc.html) | | Nim | [nim](https://nim-lang.org/docs/nimc.html) |
| nix | [nix-instantiate](http://nixos.org/nix/manual/#sec-nix-instantiate) | | nix | [nix-instantiate](http://nixos.org/nix/manual/#sec-nix-instantiate) |
@ -109,7 +109,7 @@ name. That seems to be the fairest way to arrange this table.
| Swift | [swiftlint](https://swift.org/) | | Swift | [swiftlint](https://swift.org/) |
| Tex | [proselint](http://proselint.com/) | | Tex | [proselint](http://proselint.com/) |
| Texinfo | [proselint](http://proselint.com/)| | Texinfo | [proselint](http://proselint.com/)|
| Text^ | [proselint](http://proselint.com/) | | Text^ | [proselint](http://proselint.com/), [vale](https://github.com/ValeLint/vale) |
| TypeScript | [tslint](https://github.com/palantir/tslint), typecheck | | TypeScript | [tslint](https://github.com/palantir/tslint), typecheck |
| Verilog | [iverilog](https://github.com/steveicarus/iverilog), [verilator](http://www.veripool.org/projects/verilator/wiki/Intro) | | Verilog | [iverilog](https://github.com/steveicarus/iverilog), [verilator](http://www.veripool.org/projects/verilator/wiki/Intro) |
| Vim | [vint](https://github.com/Kuniwak/vint) | | Vim | [vint](https://github.com/Kuniwak/vint) |

View File

@ -0,0 +1,9 @@
" Author: chew-z https://github.com/chew-z
" Description: vale for Markdown files
call ale#linter#Define('markdown', {
\ 'name': 'vale',
\ 'executable': 'vale',
\ 'command': 'vale --output=line %t',
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\})

View File

@ -0,0 +1,9 @@
" Author: chew-z https://github.com/chew-z
" Description: vale for text files
call ale#linter#Define('text', {
\ 'name': 'vale',
\ 'executable': 'vale',
\ 'command': 'vale --output=line %t',
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\})

View File

@ -141,7 +141,7 @@ The following languages and tools are supported.
* JSON: 'jsonlint' * JSON: 'jsonlint'
* LaTeX: 'chktex', 'lacheck' * LaTeX: 'chktex', 'lacheck'
* Lua: 'luacheck' * Lua: 'luacheck'
* Markdown: 'mdl', 'proselint' * Markdown: 'mdl', 'proselint', 'vale'
* MATLAB: 'mlint' * MATLAB: 'mlint'
* nim: 'nim check' * nim: 'nim check'
* nix: 'nix-instantiate' * nix: 'nix-instantiate'
@ -167,7 +167,7 @@ The following languages and tools are supported.
* Swift: 'swiftlint' * Swift: 'swiftlint'
* Tex: 'proselint' * Tex: 'proselint'
* Texinfo: 'proselint' * Texinfo: 'proselint'
* Text: 'proselint' * Text: 'proselint', 'vale'
* TypeScript: 'tslint', 'typecheck' * TypeScript: 'tslint', 'typecheck'
* Verilog: 'iverilog', 'verilator' * Verilog: 'iverilog', 'verilator'
* Vim: 'vint' * Vim: 'vint'