]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_php_phpmd_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:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / test / handler / test_php_phpmd_handler.vader
1 Before:
2   runtime ale_linters/php/phpmd.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The php static analyzer handler should parse errors from phpmd):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 22,
12   \     'type': 'W',
13   \     'text': "Avoid unused local variables such as '$response'.",
14   \   },
15   \   {
16   \     'lnum': 14,
17   \     'type': 'W',
18   \     'text': "The method test uses an else expression. Else is never necessary and you can simplify the code to work without else.",
19   \   },
20   \ ],
21   \ ale_linters#php#phpmd#Handle(347, [
22   \ "example.php:22     Avoid unused local variables such as '$response'.",
23   \ "example.php:14    The method test uses an else expression. Else is never necessary and you can simplify the code to work without else.",
24   \ ])