summaryrefslogtreecommitdiff
path: root/test/handler/test_phpcs_handler.vader
blob: 18accece16af9a2b6ee8ba91dd56cab275c8b0dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)',
  \ ])