ale/test
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
..
flow Fix #246 Don't run flow if there's no .flowconfig 2017-02-10 22:47:56 +00:00
top Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
smoke_test.vader Fix #283 Add an option for using ch_sendraw(), which can be better for some users 2017-02-10 19:34:44 +00:00
test_ale_info.vader #254 Add an option for logging the output of commands 2017-02-16 23:18:57 +00:00
test_ale_lint_command.vader Fix #288 - Add a command for running ALE 2017-02-28 09:10:58 +00:00
test_ale_toggle.vader Cover ALEToggle with Vader tests 2017-02-15 21:36:16 +00:00
test_alelint_autocmd.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_cleanup.vader Add support for managing temporary files/directories 2017-02-11 15:16:08 +00:00
test_command_chain.vader Fix #124 Finish implementing command chaining, and make it work for DMD 2017-02-04 18:30:30 +00:00
test_common_handlers.vader Fix Pug linting 2017-02-11 18:49:12 +00:00
test_credo_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_cursor_warnings.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_engine_invocation.vader Fix #315 Implement the read_buffer option 2017-02-09 23:32:57 +00:00
test_eslint_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_filetype_mapping.vader #283 Fix linting buffers with no filename, by creating a filename with a guess for the file extension 2017-02-13 10:36:38 +00:00
test_find_nearest_directory.vader Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
test_flow_command.vader Fix #246 Don't run flow if there's no .flowconfig 2017-02-10 22:47:56 +00:00
test_flow_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_format_command.vader Add support for temporary filename substitution, for replacing stdin_wrapper 2017-02-11 18:14:18 +00:00
test_format_temporary_file_creation.vader Add support for temporary filename substitution, for replacing stdin_wrapper 2017-02-11 18:14:18 +00:00
test_fortran_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_get_loclist.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_ghc_handler.vader Add hdevtools linter for haskell 2017-02-17 17:18:38 +00:00
test_highlight_clearing.vader Fix #171 - Implement basic error highlighting 2017-02-13 00:24:25 +00:00
test_highlight_placement.vader Fix #171 - Implement basic error highlighting 2017-02-13 00:24:25 +00:00
test_history_saving.vader #254 Add an option for logging the output of commands 2017-02-16 23:18:57 +00:00
test_line_join.vader Join the lines Neovim passes to ale (#263) 2017-01-19 20:01:51 +00:00
test_linter_defintion_processing.vader Fix #315 Implement the read_buffer option 2017-02-09 23:32:57 +00:00
test_linter_retrieval.vader Fix #315 Implement the read_buffer option 2017-02-09 23:32:57 +00:00
test_linting_blacklist.vader Improve file blacklisting to make Unite.vim not fuck up. 2016-10-31 14:47:08 +00:00
test_linting_sets_signs.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_linting_updates_loclist.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_list_opening.vader Clean up the list opening tests 2017-01-22 13:33:16 +00:00
test_loclist_binary_search.vader Correct the order of arguments for AssertEqual in some places. 2016-10-14 20:34:21 +01:00
test_loclist_corrections.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_loclist_jumping_loading.vader Fix #314 - quickfix should take precedence over loclist for jumping 2017-02-21 12:51:49 +00:00
test_loclist_sorting.vader Correct the order of arguments for AssertEqual in some places. 2016-10-14 20:34:21 +01:00
test_mypy_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_nearest_file_search.vader Make the nearest file search result absolute paths, and add tests to cover it. 2016-10-17 21:14:34 +01:00
test_php_handler.vader Fix PHP column matching for unexpected single quotes (#370) 2017-03-01 23:26:03 +00:00
test_resolve_local_path.vader Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
test_rust_handler.vader Cover the Rust handler with some tests 2017-02-07 21:17:10 +00:00
test_sandbox_execution.vader #338 Try and stop ALE from throwing ALEs when run from a sandbox 2017-02-14 21:02:49 +00:00
test_semver_utils.vader #289 Only use the --stdin-display-name flag if the flake8 version supports it 2017-02-06 11:12:27 +00:00
test_sign_parsing.vader Fix parsing of currently shown signs with Spanish locale (#268) 2017-01-22 13:40:23 +00:00
test_sign_placement.vader Add a test to cover sign placement after linting 2017-02-07 22:55:23 +00:00
test_standard_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_statusline.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_statusline_api_without_globals.vader #274 - Fix airline integration when ALE is not loaded fully 2017-02-13 23:31:29 +00:00
test_temporary_file_management.vader Add support for managing temporary files/directories 2017-02-11 15:16:08 +00:00
test_tmpdir_init.vader Fix #269 Set $TMPDIR to a default value, if not set 2017-02-10 09:45:42 +00:00
test_typecheck_handler.vader Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
test_vim8_processid_parsing.vader Use a more reliable method for getting an ID for a job 2017-02-17 10:19:44 +00:00
vimrc Fix #269 Set $TMPDIR to a default value, if not set 2017-02-10 09:45:42 +00:00