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.
2 runtime ale_linters/php/php.vim
5 call ale#linter#Reset()
7 Given (Some invalid lines of PHP):
14 Execute(The php handler should calculate column numbers):
21 \ 'text': "syntax error, unexpected ';', expecting ']'",
27 \ 'text': "syntax error, unexpected '/', expecting function (T_FUNCTION) or const (T_CONST)",
33 \ 'text': "syntax error, unexpected ')'",
39 \ 'text': "syntax error, unexpected ''bar'' (T_CONSTANT_ENCAPSED_STRING), expecting ']'",
42 \ ale_linters#php#php#Handle(347, [
43 \ "This line should be ignored completely",
44 \ "Parse error: syntax error, unexpected ';', expecting ']' in - on line 1",
45 \ "Parse error: syntax error, unexpected '/', expecting function (T_FUNCTION) or const (T_CONST) in - on line 2",
46 \ "Parse error: syntax error, unexpected ')' in - on line 3",
47 \ "Parse error: syntax error, unexpected ''bar'' (T_CONSTANT_ENCAPSED_STRING), expecting ']' in - on line 4",
50 Execute (The php handler should ignore lines starting with 'PHP Parse error'):
53 \ ale_linters#php#php#Handle(347, [
54 \ "PHP Parse error: syntax error, This line should be ignored completely in - on line 1",
57 Execute (The php handler should handle lines containing 'Standard input code'):
63 \ 'text': "Invalid numeric literal",
66 \ ale_linters#php#php#Handle(347, [
67 \ "Parse error: Invalid numeric literal in Standard input code on line 47",
69 Execute (The php handler should parse lines without column indication):
75 \ 'text': "Cannot redeclare count()",
80 \ 'text': "syntax error, unexpected end of file",
85 \ 'text': "Invalid numeric literal",
88 \ ale_linters#php#php#Handle(347, [
89 \ "This line should be ignored completely",
90 \ "Fatal error: Cannot redeclare count() in - on line 5",
91 \ "Parse error: syntax error, unexpected end of file in - on line 21",
92 \ "Parse error: Invalid numeric literal in - on line 47",