From d5c135cfaff0568717ec9e4e0dab5d37e8a12921 Mon Sep 17 00:00:00 2001 From: Robert J Date: Mon, 1 May 2017 23:06:04 +0800 Subject: [PATCH] Glue for Vale (#522) Add Vale linter definitions --- README.md | 4 ++-- ale_linters/markdown/vale.vim | 9 +++++++++ ale_linters/text/vale.vim | 9 +++++++++ doc/ale.txt | 4 ++-- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 ale_linters/markdown/vale.vim create mode 100644 ale_linters/text/vale.vim diff --git a/README.md b/README.md index e5f5a57..55b716a 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ name. That seems to be the fairest way to arrange this table. | JSON | [jsonlint](http://zaa.ch/jsonlint/) | | LaTeX | [chktex](http://www.nongnu.org/chktex/), [lacheck](https://www.ctan.org/pkg/lacheck) | | 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) | | Nim | [nim](https://nim-lang.org/docs/nimc.html) | | 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/) | | Tex | [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 | | Verilog | [iverilog](https://github.com/steveicarus/iverilog), [verilator](http://www.veripool.org/projects/verilator/wiki/Intro) | | Vim | [vint](https://github.com/Kuniwak/vint) | diff --git a/ale_linters/markdown/vale.vim b/ale_linters/markdown/vale.vim new file mode 100644 index 0000000..43b3d34 --- /dev/null +++ b/ale_linters/markdown/vale.vim @@ -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', +\}) diff --git a/ale_linters/text/vale.vim b/ale_linters/text/vale.vim new file mode 100644 index 0000000..60bd799 --- /dev/null +++ b/ale_linters/text/vale.vim @@ -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', +\}) diff --git a/doc/ale.txt b/doc/ale.txt index 0e9ad35..d8573ef 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -141,7 +141,7 @@ The following languages and tools are supported. * JSON: 'jsonlint' * LaTeX: 'chktex', 'lacheck' * Lua: 'luacheck' -* Markdown: 'mdl', 'proselint' +* Markdown: 'mdl', 'proselint', 'vale' * MATLAB: 'mlint' * nim: 'nim check' * nix: 'nix-instantiate' @@ -167,7 +167,7 @@ The following languages and tools are supported. * Swift: 'swiftlint' * Tex: 'proselint' * Texinfo: 'proselint' -* Text: 'proselint' +* Text: 'proselint', 'vale' * TypeScript: 'tslint', 'typecheck' * Verilog: 'iverilog', 'verilator' * Vim: 'vint'