mirror of https://github.com/dense-analysis/ale
Add test for phpcs error code
This commit is contained in:
parent
aca66a54a5
commit
40f5e54198
|
@ -0,0 +1,7 @@
|
|||
Execute(errors should include code):
|
||||
AssertEqual
|
||||
\ [{'lnum': 18, 'col': 3, 'type': 'E', 'text': 'Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)'}],
|
||||
\ ale_linters#php#phpcs#Handle(bufnr(''), [
|
||||
\ '/path/to/some-filename.php:18:3: error - Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)',
|
||||
\ ])
|
||||
|
Loading…
Reference in New Issue