mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Break shared handlers up into their own files, and fix stylelint error handling
This commit is contained in:
21
test/handler/test_stylelint_handler.vader
Normal file
21
test/handler/test_stylelint_handler.vader
Normal file
@@ -0,0 +1,21 @@
|
||||
Execute (stylelint errors should be handled correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 108,
|
||||
\ 'col': 10,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'Unexpected leading zero [number-leading-zero]',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 116,
|
||||
\ 'col': 20,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'Expected a trailing semicolon [declaration-block-trailing-semicolon]',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#css#HandleStyleLintFormat(42, [
|
||||
\ 'src/main.css',
|
||||
\ ' 108:10 ✖ Unexpected leading zero number-leading-zero',
|
||||
\ ' 116:20 ✖ Expected a trailing semicolon declaration-block-trailing-semicolon',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user