From 1c56bebd7ca44d43badc9a63dd7dc4d88fd1b8b9 Mon Sep 17 00:00:00 2001 From: Christopher Swingley Date: Tue, 24 Oct 2017 13:34:38 -0800 Subject: [PATCH] proselint for mail files (#1037) Add proselint for mail files --- README.md | 1 + ale_linters/mail/proselint.vim | 9 +++++++++ doc/ale.txt | 1 + 3 files changed, 11 insertions(+) create mode 100644 ale_linters/mail/proselint.vim 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`!!