diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-24 10:05:44 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-24 10:05:44 +0100 |
commit | d368f090aeeca3545dd03b1bfe4bff5e6a95d7e2 (patch) | |
tree | 01cb50e7de53bd94f162a59bdefb0a21c08699e6 /ale_linters/markdown | |
parent | 95be2bf1ff9221eb74dc028ca616412305b2bc85 (diff) | |
download | ale-d368f090aeeca3545dd03b1bfe4bff5e6a95d7e2.zip |
#1754 Require snake_case names for linters in the codebase
Diffstat (limited to 'ale_linters/markdown')
-rw-r--r-- | ale_linters/markdown/remark_lint.vim | 4 | ||||
-rw-r--r-- | ale_linters/markdown/writegood.vim | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/ale_linters/markdown/remark_lint.vim b/ale_linters/markdown/remark_lint.vim index 195b0f5a..d9c2efb6 100644 --- a/ale_linters/markdown/remark_lint.vim +++ b/ale_linters/markdown/remark_lint.vim @@ -1,3 +1,4 @@ +scriptencoding utf-8 " Author rhysd https://rhysd.github.io/, Dirk Roorda (dirkroorda), Adrián González Rus (@adrigzr) " Description: remark-lint for Markdown files call ale#Set('markdown_remark_lint_executable', 'remark') @@ -43,7 +44,8 @@ function! ale_linters#markdown#remark_lint#Handle(buffer, lines) abort endfunction call ale#linter#Define('markdown', { -\ 'name': 'remark-lint', +\ 'name': 'remark_lint', +\ 'aliases': ['remark-lint'], \ 'executable_callback': 'ale_linters#markdown#remark_lint#GetExecutable', \ 'command_callback': 'ale_linters#markdown#remark_lint#GetCommand', \ 'callback': 'ale_linters#markdown#remark_lint#Handle', diff --git a/ale_linters/markdown/writegood.vim b/ale_linters/markdown/writegood.vim index 21dbff1a..7108e7ac 100644 --- a/ale_linters/markdown/writegood.vim +++ b/ale_linters/markdown/writegood.vim @@ -1,9 +1,4 @@ " Author: Sumner Evans <sumner.evans98@gmail.com> " Description: write-good for Markdown files -call ale#linter#Define('markdown', { -\ 'name': 'write-good', -\ 'executable_callback': 'ale#handlers#writegood#GetExecutable', -\ 'command_callback': 'ale#handlers#writegood#GetCommand', -\ 'callback': 'ale#handlers#writegood#Handle', -\}) +call ale#handlers#writegood#DefineLinter('markdown') |