mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add test for phpcs error code
This commit is contained in:
7
test/test_phpcs_include_code.vader
Normal file
7
test/test_phpcs_include_code.vader
Normal file
@@ -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)',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user