summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert J <chew-z@users.noreply.github.com>2017-05-01 23:06:04 +0800
committerw0rp <w0rp@users.noreply.github.com>2017-05-01 16:06:04 +0100
commitd5c135cfaff0568717ec9e4e0dab5d37e8a12921 (patch)
tree645abc93ad9f83cf73ca208a6451d2ae65fc60aa
parent5dcc77e8c80f39ebc095a16fe11846f53d508a3a (diff)
downloadale-d5c135cfaff0568717ec9e4e0dab5d37e8a12921.zip
Glue for Vale (#522)
Add Vale linter definitions
-rw-r--r--README.md4
-rw-r--r--ale_linters/markdown/vale.vim9
-rw-r--r--ale_linters/text/vale.vim9
-rw-r--r--doc/ale.txt4
4 files changed, 22 insertions, 4 deletions
diff --git a/README.md b/README.md
index e5f5a579..55b716a6 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 00000000..43b3d34a
--- /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 00000000..60bd799f
--- /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 0e9ad35b..d8573ef1 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'