]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_tlint_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / handler / test_tlint_handler.vader
1 Before:
2   runtime ale_linters/php/tlint.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The tlint handler should calculate line numbers):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': '5', 
12   \     'col': 0, 
13   \     'sub_type': 
14   \     'style',
15   \     'type': 'W',
16   \     'text': ['! There should be no unused imports.', 'There should be no unused imports.', '', '', '', '', '', '', '', '']
17   \   },
18   \   {
19   \     'lnum': '15', 
20   \     'col': 0, 
21   \     'sub_type': 
22   \     'style',
23   \     'type': 'W',
24   \     'text': ['! There should be no method visibility in test methods.', 'There should be no method visibility in test methods.', '', '', '', '', '', '', '', '']
25   \   },
26   \ ],
27   \ ale_linters#php#tlint#Handle(347, [
28   \   "Lints for /Users/jose/Code/Tighten/tester/tests/Unit/ExampleTest.php",
29   \   "============",
30   \   "! There should be no unused imports.",
31   \   "5 : `use Illuminate\Foundation\Testing\RefreshDatabase;`",
32   \   "! There should be no method visibility in test methods.",
33   \   "15 : `    public function testBasicTest()`",
34   \ ])