summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoohzrn <poohzrn@users.noreply.github.com>2016-11-28 10:36:11 +0100
committerw0rp <w0rp@users.noreply.github.com>2016-11-28 09:36:11 +0000
commit900b4cdff39440f008c91c7896d176928554894b (patch)
tree748067d889207eeb7e398b62aa0afc1c3a1c6b85
parente03df80a09a3e70b43b9c6908f32b0a838764d03 (diff)
downloadale-900b4cdff39440f008c91c7896d176928554894b.zip
Add Proselint (#185)
* Add Proselint - Markdown - Tex - Text * Use ale#handler#HandleUnixFormatAsWarning * Indentation
-rw-r--r--README.md4
-rw-r--r--ale_linters/markdown/proselint.vim9
-rw-r--r--ale_linters/tex/proselint.vim9
-rw-r--r--ale_linters/text/proselint.vim8
4 files changed, 29 insertions, 1 deletions
diff --git a/README.md b/README.md
index 436d9c0c..61518121 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ name. That seems to be the fairest way to arrange this table.
| JavaScript | [eslint](http://eslint.org/), [jscs](http://jscs.info/), [jshint](http://jshint.com/), [FlowType](https://flowtype.org/) |
| JSON | [jsonlint](http://zaa.ch/jsonlint/) |
| Lua | [luacheck](https://github.com/mpeterv/luacheck) |
-| Markdown | [mdl](https://github.com/mivok/markdownlint) |
+| Markdown | [mdl](https://github.com/mivok/markdownlint), [proselint](http://proselint.com/)|
| MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) |
| OCaml | [merlin](https://github.com/the-lambda-church/merlin) see `:help ale-integration-ocaml-merlin` for configuration instructions
| Perl | [perl -c](https://perl.org/), [perl-critic](https://metacpan.org/pod/Perl::Critic) |
@@ -77,6 +77,8 @@ name. That seems to be the fairest way to arrange this table.
| SASS | [sass-lint](https://www.npmjs.com/package/sass-lint) |
| SCSS | [sass-lint](https://www.npmjs.com/package/sass-lint), [scss-lint](https://github.com/brigade/scss-lint) |
| Scala | [scalac](http://scala-lang.org) |
+| Tex | [proselint](http://proselint.com/) |
+| Text | [proselint](http://proselint.com/) |
| 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/proselint.vim b/ale_linters/markdown/proselint.vim
new file mode 100644
index 00000000..fd2155f7
--- /dev/null
+++ b/ale_linters/markdown/proselint.vim
@@ -0,0 +1,9 @@
+" Author: poohzrn https://github.com/poohzrn
+" Description: proselint for markdown files
+
+call ale#linter#Define('markdown', {
+\ 'name': 'proselint',
+\ 'executable': 'proselint',
+\ 'command': g:ale#util#stdin_wrapper . ' .md proselint',
+\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
+\})
diff --git a/ale_linters/tex/proselint.vim b/ale_linters/tex/proselint.vim
new file mode 100644
index 00000000..d175c88c
--- /dev/null
+++ b/ale_linters/tex/proselint.vim
@@ -0,0 +1,9 @@
+" Author: poohzrn https://github.com/poohzrn
+" Description: proselint for tex files
+
+call ale#linter#Define('tex', {
+\ 'name': 'proselint',
+\ 'executable': 'proselint',
+\ 'command': g:ale#util#stdin_wrapper . ' .tex proselint',
+\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
+\})
diff --git a/ale_linters/text/proselint.vim b/ale_linters/text/proselint.vim
new file mode 100644
index 00000000..4a55dec4
--- /dev/null
+++ b/ale_linters/text/proselint.vim
@@ -0,0 +1,8 @@
+" Author: poohzrn https://github.com/poohzrn
+" Description: proselint for text files
+
+call ale#linter#Define('text', {
+\ 'name': 'proselint',
+\ 'executable': 'proselint',
+\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
+\})