Break shared handlers up into their own files, and fix stylelint error handling

This commit is contained in:
w0rp committed 2017-04-24 22:27:18 +01:00
1 parent b4c0335ebc
commit a03121f5b0
44 files changed
+263 -272

No files matched your search

+21
View 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',
\ ])