summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-10-25 00:40:59 +0100
committerGitHub <noreply@github.com>2017-10-25 00:40:59 +0100
commit94bdabb8c3c6445249c0e3bac5b7bcf159fd49f3 (patch)
tree181402d63f0fec863f9c5875075a9822998403c6
parenteec529ad9d703aae12cba6f6423d04c08ae26d0d (diff)
parent780844ad73d2181db81371c360185a1e0ba0cc70 (diff)
downloadale-94bdabb8c3c6445249c0e3bac5b7bcf159fd49f3.zip
Merge pull request #1044 from sumnerevans/mail-linters
#955 Add vale linter for mail files
-rw-r--r--README.md2
-rw-r--r--ale_linters/mail/vale.vim9
-rw-r--r--doc/ale.txt2
3 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index b49afe47..a8901785 100644
--- a/README.md
+++ b/README.md
@@ -109,7 +109,7 @@ formatting.
| LaTeX | [chktex](http://www.nongnu.org/chktex/), [lacheck](https://www.ctan.org/pkg/lacheck), [proselint](http://proselint.com/), [write-good](https://github.com/btford/write-good) |
| LLVM | [llc](https://llvm.org/docs/CommandGuide/llc.html) |
| Lua | [luacheck](https://github.com/mpeterv/luacheck) |
-| Mail | [proselint](http://proselint.com/) |
+| Mail | [proselint](http://proselint.com/), [vale](https://github.com/ValeLint/vale) |
| Make | [checkmake](https://github.com/mrtazz/checkmake) |
| Markdown | [mdl](https://github.com/mivok/markdownlint), [proselint](http://proselint.com/), [vale](https://github.com/ValeLint/vale), [remark-lint](https://github.com/wooorm/remark-lint) !!, [write-good](https://github.com/btford/write-good) |
| MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) |
diff --git a/ale_linters/mail/vale.vim b/ale_linters/mail/vale.vim
new file mode 100644
index 00000000..9b30bf65
--- /dev/null
+++ b/ale_linters/mail/vale.vim
@@ -0,0 +1,9 @@
+" Author: chew-z https://github.com/chew-z
+" Description: vale for Markdown files
+
+call ale#linter#Define('mail', {
+\ '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 cac1397c..4480ce97 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -288,7 +288,7 @@ Notes:
* LaTeX (tex): `chktex`, `lacheck`, `proselint`, `write-good`
* LLVM: `llc`
* Lua: `luacheck`
-* Mail: `proselint`
+* Mail: `proselint`, `vale`
* Make: `checkmake`
* Markdown: `mdl`, `proselint`, `vale`, `remark-lint`, `write-good`
* MATLAB: `mlint`