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
command_callback Add rails_best_practices handler (resolves #655) (#751) 2017-07-12 10:43:47 +01:00
csslint-test-files
eslint-test-files
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
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
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
util
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.vader Fix #730 - Lint files on save even when nothing was fixed 2017-07-10 13:40:22 +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_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
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
test_alelint_autocmd.vader Fix a test 2017-06-06 09:54:17 +01:00
test_backwards_compatibility.vader
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
test_command_chain.vader
test_completion.vader Get automatic completion with tsserver to work 2017-07-02 10:58:18 +01:00
test_conflicting_plugin_warnings.vader
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
test_disabling_ale.vader
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
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
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
test_format_temporary_file_creation.vader
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
test_getmatches.vader
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
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
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
test_loclist_binary_search.vader
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
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
test_setting_loclist_from_another_buffer.vader
test_statusline.vader
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
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
test_windows_escaping.vader
vimrc