ale/test
Eddie Lebow dcbb0ffee5 Rubocop: handle empty 'files' array in output
The handler previously assumed there would be at least one entry in the
'files' array in the output JSON. It looks like this in the normal case:

  "files":[{"path":"app/models/image.rb","offenses":[]}]

But if RuboCop's config excludes the specified input files, causing no
files to be linted, the output is emptier:

  "files":[]

This change causes the handler to treat that case correctly, and also
exit early if the reported offense_count is zero.
2017-07-12 19:53:58 -04:00
..
.config/nvim Run all tests in NeoVim, improve the test script, and make all tests pass for NeoVim 2017-05-12 20:38:52 +01:00
command_callback Add rails_best_practices handler (resolves #655) (#751) 2017-07-12 10:43:47 +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 Automatically use eslint_d for eslint, when available 2017-05-25 22:34:59 +01:00
fixers Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +01:00
flow Fix #246 Don't run flow if there's no .flowconfig 2017-02-10 22:47:56 +00:00
gradle-test-files Kotlin and general Gradle support. (#745) 2017-07-10 23:03:36 +01:00
handler Rubocop: handle empty 'files' array in output 2017-07-12 19:53:58 -04:00
lsp Get automatic completion with tsserver to work 2017-07-02 10:58:18 +01:00
phpcs-test-files Fix some escaping and make some tests set filenames consistently 2017-06-21 22:33:34 +01:00
ruby_fixtures [RFC] Add Brakeman for Ruby on Rails (references #385) (#509) 2017-05-05 10:05:53 +01:00
sign Experimental code for showing results as soon as each linter completes 2017-06-08 17:30:21 +01:00
test_c_projects Detect .git directories for finding the project root for C projects 2017-06-25 21:33:15 +01:00
top Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
util #540 Fix shell escaping pretty much everywhere 2017-05-08 22:59:25 +01:00
smoke_test.vader Experimental code for showing results as soon as each linter completes 2017-06-08 17:30:21 +01:00
test_ale_fix_suggest.vader Use a new window for the ALEFixSuggest command, and document it better 2017-06-28 16:20:05 +01:00
test_ale_fix.vader Fix #730 - Lint files on save even when nothing was fixed 2017-07-10 13:40:22 +01:00
test_ale_info.vader Add ale_fix_on_save and ale_fixers to debug output (#731) 2017-07-06 09:27:09 +01:00
test_ale_init_au_groups.vader Fix #747 - Lint and fix files after they have been been written to disk, not during writing them 2017-07-11 22:19:26 +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 #697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed 2017-07-07 23:47:41 +01:00
test_ale_var.vader #591 Store buffer variables when fixing filess, and read them back in ale#Var 2017-05-30 22:15:24 +01:00
test_alelint_autocmd.vader Fix a test 2017-06-06 09:54:17 +01:00
test_backwards_compatibility.vader Rename g:ale_linters_sh_* to g:ale_sh_* 2017-04-30 22:38:28 +02:00
test_balloon_messages.vader Fix #537 - Add support for balloons 2017-05-31 22:04:33 +01:00
test_c_import_paths.vader Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +01:00
test_cleanup.vader Add support for managing temporary files/directories 2017-02-11 15:16:08 +00:00
test_command_chain.vader Refactor jobs into a Vim version agnostic API which can be used for other purposes 2017-05-12 21:16:15 +01:00
test_completion.vader Get automatic completion with tsserver to work 2017-07-02 10:58:18 +01:00
test_conflicting_plugin_warnings.vader Run all tests in NeoVim, improve the test script, and make all tests pass for NeoVim 2017-05-12 20:38:52 +01:00
test_csslint_config_detection.vader Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +01:00
test_cursor_warnings.vader #318 Do not capitalize the first character for cursor messages 2017-05-21 19:51:34 +01:00
test_disabling_ale.vader Fix #577 Add an option preventing linting of large files 2017-05-26 21:21:15 +01:00
test_dockerfile_hadolint_linter.vader Allow hadolint linter to run via docker image (#720) 2017-07-03 15:37:32 +01:00
test_engine_invocation.vader Fix #315 Implement the read_buffer option 2017-02-09 23:32:57 +00:00
test_errors_removed_after_filetype_changed.vader #697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed 2017-07-07 23:47:41 +01:00
test_eslint_executable_detection.vader Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +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 Fix issues with running individual tests, and get the Vim tests to run on certain machines again 2017-07-09 14:58:21 +01:00
test_flow_command.vader Fix the flow command tests so they will run on my machine 2017-07-10 21:44:51 +01:00
test_foodcritic_command_callback.vader Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +01:00
test_format_command.vader Refactor special command parsing into its own file 2017-05-17 11:17:49 +01:00
test_format_temporary_file_creation.vader Sleep to fix Travis builds 2017-05-06 23:33:38 +01:00
test_function_arg_count.vader Move all functions for fixing things to autoload/ale/fixers, and only accept the lines of input where needed. 2017-06-07 14:02:29 +01:00
test_get_loclist.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_getmatches.vader Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
test_gradle_build_classpath_command.vader Kotlin and general Gradle support. (#745) 2017-07-10 23:03:36 +01:00
test_gradle_find_executable.vader Kotlin and general Gradle support. (#745) 2017-07-10 23:03:36 +01:00
test_gradle_find_project_root.vader Kotlin and general Gradle support. (#745) 2017-07-10 23:03:36 +01:00
test_highlight_clearing.vader Fix #171 - Implement basic error highlighting 2017-02-13 00:24:25 +00:00
test_highlight_placement.vader Fix #746 - Keep highlights from other plugins when buffers are hidden 2017-07-10 00:02:49 +01:00
test_highlight_position_chunking.vader Fix #604 - Support highlights spanning many lines 2017-05-31 13:14:39 +01:00
test_history_saving.vader Make the test for the history more reliable 2017-06-06 19:54:10 +01:00
test_line_join.vader Fix #649 - Support tsserver linting for NeoVim 2017-06-14 17:08:39 +01:00
test_lint_file_linters.vader #697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed 2017-07-07 23:47:41 +01:00
test_lint_on_enter_when_file_changed.vader #697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed 2017-07-07 23:47:41 +01:00
test_linter_defintion_processing.vader Remove the need for pointless callbacks for LSP linters 2017-07-02 13:25:36 +01:00
test_linter_retrieval.vader Fix #735 - Support old versions of Flow by only adding --respect-pragma for supported versions 2017-07-07 10:47:09 +01:00
test_linter_type_mapping.vader Fix #536 - Implement linter problem type re-mapping 2017-06-14 17:59:13 +01:00
test_linting_blacklist.vader Fix ALEInfo and some test issues 2017-05-27 23:51:27 +01:00
test_linting_updates_loclist.vader #697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed 2017-07-07 23:47:41 +01:00
test_list_opening.vader Experimental code for showing results as soon as each linter completes 2017-06-08 17:30:21 +01:00
test_list_titles.vader Set qflist/loclist window title properly ... (#588) 2017-05-31 22:55:23 +01:00
test_load_all_linters.vader #427 Implement buffer variable overrides for all linter options 2017-04-16 01:24:08 +01: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 Handle LSP responses for different files more consistently 2017-06-13 17:53:47 +01:00
test_loclist_jumping.vader Add :ALEFirst and :ALELast commands (#616) 2017-06-03 12:45:52 +01: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 Fix issues with running individual tests, and get the Vim tests to run on certain machines again 2017-07-09 14:58:21 +01:00
test_path_equality.vader Fix #690 - Filter out errors from other files for Haskell 2017-06-25 17:08:57 +01:00
test_path_upwards.vader #729 - Use a wrapper for simplify to fix // problems on Windows 2017-07-05 15:51:31 +01:00
test_pattern_options.vader Support setting settings with g:ale_pattern_options 2017-07-09 00:10:28 +01:00
test_perlcritic_linter.vader Add profile, other options to the perlcritic linter (#675) 2017-06-29 13:08:51 +01:00
test_phpcs_executable_detection.vader Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +01:00
test_prepare_command.vader Fix #749 - Use /bin/sh when the shell is fish 2017-07-10 21:35:35 +01:00
test_regex_escaping.vader #756 Escape the paths used for the --include parameter for gometalinter, which uses RE2 2017-07-11 23:47:21 +01:00
test_resolve_local_path.vader Fix issues with running individual tests, and get the Vim tests to run on certain machines again 2017-07-09 14:58:21 +01:00
test_sandbox_execution.vader Fix issues with running individual tests, and get the Vim tests to run on certain machines again 2017-07-09 14:58:21 +01: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.vader Fix counting of warnings and style warnings 2017-05-21 18:58:26 +01:00
test_temporary_file_management.vader #697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed 2017-07-07 23:47:41 +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_verilog_verilator_options.vader Adds an option to pass additional arguments to the verilog/verilator … (#698) 2017-06-29 09:15:52 +01:00
test_vim8_processid_parsing.vader Refactor jobs into a Vim version agnostic API which can be used for other purposes 2017-05-12 21:16:15 +01:00
test_windows_escaping.vader Fix #549 - escape strings more appropriately for use with cmd /c 2017-05-26 00:06:16 +01:00
vimrc Cover basic GCC functionality with tests 2017-04-03 22:24:30 +01:00