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:
21
test/handler/test_djlint_handler.vader
Normal file
21
test/handler/test_djlint_handler.vader
Normal file
@@ -0,0 +1,21 @@
|
||||
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.'
|
||||
\ ])
|
||||
Reference in New Issue
Block a user