summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Swingley <cswingle@gmail.com>2017-10-24 13:34:38 -0800
committerw0rp <w0rp@users.noreply.github.com>2017-10-24 22:34:38 +0100
commit1c56bebd7ca44d43badc9a63dd7dc4d88fd1b8b9 (patch)
tree60c73e51697bc2a84c463e1e8d514ffcca931c67
parentfe729dab583d69853c20d373a0eb217a971f14a0 (diff)
downloadale-1c56bebd7ca44d43badc9a63dd7dc4d88fd1b8b9.zip
proselint for mail files (#1037)
Add proselint for mail files
-rw-r--r--README.md1
-rw-r--r--ale_linters/mail/proselint.vim9
-rw-r--r--doc/ale.txt1
3 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index e803b907..16dc22fb 100644
--- a/README.md
+++ b/README.md
@@ -109,6 +109,7 @@ formatting.
| LaTeX | [chktex](http://www.nongnu.org/chktex/), [lacheck](https://www.ctan.org/pkg/lacheck), [proselint](http://proselint.com/) |
| LLVM | [llc](https://llvm.org/docs/CommandGuide/llc.html) |
| Lua | [luacheck](https://github.com/mpeterv/luacheck) |
+| Mail | [proselint](http://proselint.com/) |
| 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) !! |
| MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) |
| Nim | [nim check](https://nim-lang.org/docs/nimc.html) !! |
diff --git a/ale_linters/mail/proselint.vim b/ale_linters/mail/proselint.vim
new file mode 100644
index 00000000..82c8d1f8
--- /dev/null
+++ b/ale_linters/mail/proselint.vim
@@ -0,0 +1,9 @@
+" Author: Daniel M. Capella https://github.com/polyzen
+" Description: proselint for mail files
+
+call ale#linter#Define('mail', {
+\ 'name': 'proselint',
+\ 'executable': 'proselint',
+\ 'command': 'proselint %t',
+\ 'callback': 'ale#handlers#unix#HandleAsWarning',
+\})
diff --git a/doc/ale.txt b/doc/ale.txt
index e0e85df8..68e71a66 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -266,6 +266,7 @@ Notes:
* LaTeX (tex): `chktex`, `lacheck`, `proselint`
* LLVM: `llc`
* Lua: `luacheck`
+* Mail: `proselint`
* Markdown: `mdl`, `proselint`, `vale`, `remark-lint`
* MATLAB: `mlint`
* Nim: `nim check`!!