Files
ale/test/handler/test_djlint_handler.vader
Vivian De Smedt 3611c32d60
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/) (#4909)
* 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.
2025-03-08 16:45:17 +09:00

22 lines
454 B
Plaintext

Before:
runtime ale_linters/html/djlint.vim
After:
call ale#linter#Reset()
Execute(The Djlint handler should parse output with a column correctly):
AssertEqual
\ [
\ {
\ 'lnum': 47,
\ 'vcol': 1,
\ 'col': 8,
\ 'code': 'H008',
\ 'text': 'Attributes should be double quoted.',
\ 'type': 'W'
\ }
\ ],
\ ale_linters#html#djlint#Handle(0, [
\ 'H008 47:8 Attributes should be double quoted.'
\ ])