summaryrefslogtreecommitdiff
path: root/test/handler/test_tlint_handler.vader
blob: e146346c675c50039e827ef0892489b7c2597b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Before:
  runtime ale_linters/php/tlint.vim

After:
  call ale#linter#Reset()

Execute(The tlint handler should calculate line numbers):
  AssertEqual
  \ [
  \   {
  \     'lnum': '5', 
  \     'col': 0, 
  \     'sub_type': 
  \     'style',
  \     'type': 'W',
  \     'text': ['! There should be no unused imports.', 'There should be no unused imports.', '', '', '', '', '', '', '', '']
  \   },
  \   {
  \     'lnum': '15', 
  \     'col': 0, 
  \     'sub_type': 
  \     'style',
  \     'type': 'W',
  \     'text': ['! There should be no method visibility in test methods.', 'There should be no method visibility in test methods.', '', '', '', '', '', '', '', '']
  \   },
  \ ],
  \ ale_linters#php#tlint#Handle(347, [
  \   "Lints for /Users/jose/Code/Tighten/tester/tests/Unit/ExampleTest.php",
  \   "============",
  \   "! There should be no unused imports.",
  \   "5 : `use Illuminate\Foundation\Testing\RefreshDatabase;`",
  \   "! There should be no method visibility in test methods.",
  \   "15 : `    public function testBasicTest()`",
  \ ])