ale/ale_linters
Adriaan Zonnenberg 6befe9e37c Fix PHP column matching for unexpected single quotes (#370)
* PHP: Fix column matching for unexpected single quotes

Unexpected single quotes resulted in an empty match, because PHP
surrounds the errors with quotes, and we check for the next quote to be
the ending delimiter.

For example: an unexpected string 'foo' would be presented as
`unexpected ''foo''`, and then the match would be `''`. The inner part
of that match is an empty string.

This adds a check for the keyword "expecting". Any quote after
"expecting" won't be matched, so we can use greedy matching instead of
non-greedy.

* PHP: Use "very magic"

The pattern started to get unreadable

Also replaced non-greedy matching (`\{-}`) by greedy matching, because
we don't need to match non-greedily anymore and it reads a little nicer.

* PHP: Add tests for column matches

And with that, also a test for unexpected single quotes.
2017-03-01 23:26:03 +00:00
..
ansible Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
c Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
chef Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
cmake Add cmakelint support for cmake filetype 2017-02-25 17:27:03 +00:00
coffee Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
cpp Use latest C++ standard 2017-03-01 02:42:35 +09:00
cs Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
css Add stylelint option to pass in more options 2017-02-12 09:25:40 +03:00
d Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
dockerfile Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
elixir Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
elm Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
erlang Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
fortran Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
go Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
haskell Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
html Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
java Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
javascript Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
json Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
lua Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
markdown Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
matlab Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
ocaml Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues. 2017-01-22 14:54:57 +00:00
perl Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
php Fix PHP column matching for unexpected single quotes (#370) 2017-03-01 23:26:03 +00:00
pug Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
puppet Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
pyrex Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
python Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
ruby Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
rust Cover the Rust handler with some tests 2017-02-07 21:17:10 +00:00
sass Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
scala Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
scss Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
sh Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
sml Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
swift Fix SwiftLint 2017-01-17 19:59:45 +01:00
testft Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
tex Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
text Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
typescript Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
verilog Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
vim Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
yaml Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00