mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-28 06:46:52 +08:00
Fix #555 - Handle csslint errors without groups
This commit is contained in:
@@ -11,12 +11,33 @@ Execute(HandleCSSLintFormat should handle CSS errors):
|
||||
\ 'lnum': 2,
|
||||
\ 'col': 5,
|
||||
\ 'type': 'W',
|
||||
\ 'text': "(known-properties) Expected ... but found 'wat'.",
|
||||
\ 'text': '(known-properties) Expected ... but found ''wat''.',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#css#HandleCSSLintFormat(42, [
|
||||
\ 'something.css: line 2, col 1, Error - Expected RBRACE at line 2, col 1. (errors)',
|
||||
\ "something.css: line 2, col 5, Warning - Expected ... but found 'wat'. (known-properties)",
|
||||
\ 'something.css: line 2, col 5, Warning - Expected ... but found ''wat''. (known-properties)',
|
||||
\ ])
|
||||
|
||||
Execute(HandleCSSLintFormat should handle CSS errors without groups):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 7,
|
||||
\ 'col': 3,
|
||||
\ 'type': 'W',
|
||||
\ 'text': 'Unknown property ''fill''.',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 8,
|
||||
\ 'col': 3,
|
||||
\ 'type': 'W',
|
||||
\ 'text': 'Unknown property ''fill-opacity''.',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#css#HandleCSSLintFormat(42, [
|
||||
\ 'something.css: line 7, col 3, Warning - Unknown property ''fill''.',
|
||||
\ 'something.css: line 8, col 3, Warning - Unknown property ''fill-opacity''.',
|
||||
\ ])
|
||||
|
||||
Execute (HandlePEP8Format should handle the correct lines of output):
|
||||
|
||||
Reference in New Issue
Block a user