diff options
author | butlerx <butlerx@notthe.cloud> | 2018-01-27 11:40:40 +0000 |
---|---|---|
committer | butlerx <butlerx@notthe.cloud> | 2018-01-27 12:17:15 +0000 |
commit | 9dad25778fa3c848d9ce010979323e91d00a3819 (patch) | |
tree | e7ecf746d777a0bce4ebb09f5ee76594444ed454 /ale_linters/po | |
parent | dffc162dd66bfa0a2b2591d03df6895c378d8fce (diff) | |
download | ale-9dad25778fa3c848d9ce010979323e91d00a3819.zip |
add po support with proselint, writegood, msgfmt and alex
Diffstat (limited to 'ale_linters/po')
-rw-r--r-- | ale_linters/po/alex.vim | 11 | ||||
-rw-r--r-- | ale_linters/po/msgfmt.vim | 10 | ||||
-rw-r--r-- | ale_linters/po/proselint.vim | 9 | ||||
-rw-r--r-- | ale_linters/po/write-good.vim | 9 |
4 files changed, 39 insertions, 0 deletions
diff --git a/ale_linters/po/alex.vim b/ale_linters/po/alex.vim new file mode 100644 index 00000000..411d835b --- /dev/null +++ b/ale_linters/po/alex.vim @@ -0,0 +1,11 @@ +" Author: Cian Butler https://github.com/butlerx +" Description: alex for PO files + +call ale#linter#Define('po', { +\ 'name': 'alex', +\ 'executable': 'alex', +\ 'command': 'alex %s -t', +\ 'output_stream': 'stderr', +\ 'callback': 'ale#handlers#alex#Handle', +\ 'lint_file': 1, +\}) diff --git a/ale_linters/po/msgfmt.vim b/ale_linters/po/msgfmt.vim new file mode 100644 index 00000000..60c25d30 --- /dev/null +++ b/ale_linters/po/msgfmt.vim @@ -0,0 +1,10 @@ +" Author: Cian Butler https://github.com/butlerx +" Description: msgfmt for PO files + +call ale#linter#Define('po', { +\ 'name': 'msgfmt', +\ 'executable': 'msgfmt', +\ 'output_stream': 'stderr', +\ 'command': 'msgfmt --statistics %t', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', +\}) diff --git a/ale_linters/po/proselint.vim b/ale_linters/po/proselint.vim new file mode 100644 index 00000000..ce132508 --- /dev/null +++ b/ale_linters/po/proselint.vim @@ -0,0 +1,9 @@ +" Author: Cian Butler https://github.com/butlerx +" Description: proselint for PO files + +call ale#linter#Define('po', { +\ 'name': 'proselint', +\ 'executable': 'proselint', +\ 'command': 'proselint %t', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', +\}) diff --git a/ale_linters/po/write-good.vim b/ale_linters/po/write-good.vim new file mode 100644 index 00000000..5a01cb66 --- /dev/null +++ b/ale_linters/po/write-good.vim @@ -0,0 +1,9 @@ +" Author: Cian Butler https://github.com/butlerx +" Description: write-good for PO files + +call ale#linter#Define('po', { +\ 'name': 'write-good', +\ 'executable_callback': 'ale#handlers#writegood#GetExecutable', +\ 'command_callback': 'ale#handlers#writegood#GetCommand', +\ 'callback': 'ale#handlers#writegood#Handle', +\}) |