2017-04-24 21:27:18 +00:00
|
|
|
Execute (stylelint errors should be handled correctly):
|
2017-06-07 08:29:53 +00:00
|
|
|
" Stylelint includes trailing spaces for output. This needs to be taken into
|
|
|
|
" account for parsing errors.
|
2017-04-24 21:27:18 +00:00
|
|
|
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',
|
2017-06-07 08:29:53 +00:00
|
|
|
\ ' 108:10 ✖ Unexpected leading zero number-leading-zero ',
|
2017-04-24 21:27:18 +00:00
|
|
|
\ ' 116:20 ✖ Expected a trailing semicolon declaration-block-trailing-semicolon',
|
|
|
|
\ ])
|