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

* 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:
Vivian De Smedt
2025-03-08 08:45:17 +01:00
committed by GitHub
parent a6db6c95a6
commit 3611c32d60
7 changed files with 105 additions and 0 deletions

View 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'