File: test_tlint_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (34 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download | duplicates (2)
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()`",
  \ ])