mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add support for the [djlinter](https://www.djlint.com/) (#4909)
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
* Add support for the [djlinter](https://www.djlint.com/) * Add documentation and tests. * Fix the name of the variable for the executable name. * Correct the name of the handler in the test. * Correct the test adding the value of vcol. * Format djlint.vim according to formatting rules.
This commit is contained in:
14
test/linter/test_djlint.vader
Normal file
14
test/linter/test_djlint.vader
Normal file
@@ -0,0 +1,14 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('html', 'djlint')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default djlint command should be correct):
|
||||
AssertLinter 'djlint', ale#Escape('djlint') . ' %s'
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
let g:ale_html_djlint_executable = 'foo bar'
|
||||
let g:ale_html_djlint_options = '--option'
|
||||
|
||||
AssertLinter 'foo bar', ale#Escape('foo bar') . ' --option %s'
|
||||
Reference in New Issue
Block a user