ale/test
José Júnior 4caf273d53 Adds options to foodcritic linter (#437)
* Adds options to foodcritic linter

Adds a way to pass command line options to the foodcritic command and
documentation about it.

* Creates a simple test for foodcritic command callback

This test simply runs the GetCommand function for the foodcritic linter
and feeds it with some test variables to assert the command line is
being created/escaped correctly.

* Makes foodcritic linter use a command callback

Following review comments, changes the foodcritic linter to use a
`GetCommand` callback for the `command_callback` linter option.

Makes sure that `~` are escaped: flags on foodcritic command line are
negated by adding a `~` in front of the specific cop name:

```
foodcritic -t ~FC011
```

But the way the commands are executed cause foodcritic to fail (since
tilde is recognized as home directory).

* Fixes the doc to include new variables
2017-04-05 18:21:47 +01:00
..
c_tests Cover basic GCC functionality with tests 2017-04-03 22:24:30 +01:00
command_callback Fix #438 Create Java .class files for javac in a temporary directory 2017-03-31 20:14:53 +01:00
csslint-test-files Fix #260 automatically set .csslintrc files from ancestor directories 2017-03-29 00:56:39 +01:00
eslint-test-files Fix #421 Automatically detect create-react-app paths 2017-03-29 00:21:27 +01:00
flow Fix #246 Don't run flow if there's no .flowconfig 2017-02-10 22:47:56 +00:00
handler Cover handling of swiftlint errors with tests 2017-04-03 23:43:31 +01:00
sign #333 Update line numbers for loclist items when current sign_id values are set 2017-03-14 23:04:25 +00:00
top Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
util Add some utility functions for changing directories for commands 2017-03-21 13:09:02 +00:00
smoke_test.vader Remove a test for experimental functionality which was removed 2017-03-21 13:58:08 +00:00
test_ale_info.vader Add options to facilitate linting only in normal mode (#425) 2017-03-30 23:21:37 +01:00
test_ale_init_au_groups.vader #446 Fix g:ale_lint_on_text_changed compatibility issues 2017-04-03 19:04:02 +01: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 Fix #130 - Run linters when the filetype is changed 2017-03-27 22:40:25 +01: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 Add a pause for the command chain test 2017-03-27 13:46:48 +01:00
test_conflicting_plugin_warnings.vader Complain loudly when other conflicting plugins are installed 2017-03-06 23:15:34 +00:00
test_csslint_config_detection.vader Fix #260 automatically set .csslintrc files from ancestor directories 2017-03-29 00:56:39 +01:00
test_cursor_warnings.vader Fix detailed messages with newline characters 2017-03-04 23:55:12 +00:00
test_engine_invocation.vader Fix #315 Implement the read_buffer option 2017-02-09 23:32:57 +00:00
test_eslint_executable_detection.vader Fix #421 Automatically detect create-react-app paths 2017-03-29 00:21:27 +01: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_foodcritic_command_callback.vader Adds options to foodcritic linter (#437) 2017-04-05 18:21:47 +01: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_get_loclist.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_highlight_clearing.vader Fix #171 - Implement basic error highlighting 2017-02-13 00:24:25 +00:00
test_highlight_placement.vader #333 Keep any loclist items which have match_id values set on them 2017-03-14 20:26:44 +00:00
test_history_saving.vader Update the test suite so it uses the latest Docker image, and use Bourne shell for most tests, so weird shell issues are easier to catch. 2017-04-02 22:57:29 +01:00
test_line_join.vader Join the lines Neovim passes to ale (#263) 2017-01-19 20:01:51 +00:00
test_lint_file_linters.vader #333 Finish implementing the lint_file option 2017-03-21 14:52:02 +00:00
test_linter_defintion_processing.vader #333 Add the List needed for the lint_file option, and option itself. Neither do anything meaningful yet 2017-03-08 00:23:14 +00:00
test_linter_retrieval.vader #333 Add the List needed for the lint_file option, and option itself. Neither do anything meaningful yet 2017-03-08 00:23:14 +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_updates_loclist.vader #333 Remember the IDs for highlights 2017-03-12 22:46:33 +00:00
test_list_opening.vader Fix #272 by checking if quickfix is open before reopening to avoid triggering a BufEnter event that causes quickly repeating linting runs when g:ale_lint_on_enter = 1. 2017-03-24 10:39:37 -07: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 Make the navigation commands only work with ALE's pre-sorted list 2017-03-07 23:31:25 +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_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_resolve_local_path.vader Improve mypy handling a little bit more 2017-01-20 17:30:34 +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_setting_loclist_from_another_buffer.vader #376 Use the window ID for a given buffer for setting the loclist 2017-03-09 00:43:53 +00: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_statusline.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_temporary_file_management.vader Fix #438 Create Java .class files for javac in a temporary directory 2017-03-31 20:14:53 +01: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_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 Cover basic GCC functionality with tests 2017-04-03 22:24:30 +01:00