mirror of
https://github.com/dense-analysis/ale
synced 2024-12-25 15:42:26 +00:00
20 lines
570 B
Plaintext
20 lines
570 B
Plaintext
Before:
|
|
runtime ale_linters/php/phpcs.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(phpcs errors should be handled):
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 18,
|
|
\ 'col': 3,
|
|
\ 'type': 'E',
|
|
\ 'sub_type': 'style',
|
|
\ '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)',
|
|
\ ])
|