ale/test/handler
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
..
test_ansible_lint_handler.vader Fix #216 - Filter out errors for other files for ansible-lint 2017-07-03 23:16:39 +01:00
test_asm_handler.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_brakeman_handler.vader Brakeman: Remove unused cache var from tests 2017-07-11 01:30:06 -04:00
test_checkstyle_handler.vader Clean up linters after running the checkstyle handlers 2017-05-15 20:59:50 +01:00
test_clang_handler.vader #392 Handle clang header errors too 2017-04-11 21:05:41 +01:00
test_coffeelint_handler.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_common_handlers.vader Fix #677 - Ignore errors from other files for cppcheck 2017-06-22 14:08:58 +01:00
test_cppcheck_handler.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_cpplint_handler.vader Add cpplint linter 2017-05-16 19:09:59 +02:00
test_credo_handler.vader Group handler test cases in a directory 2017-03-06 23:32:48 +00:00
test_crystal_handler.vader add crystal lint 2017-04-13 21:33:36 -04:00
test_dogma_handler.vader Use the same formatting as other files for the dogma linter file, and cover the Handler function with tests 2017-03-27 12:56:54 +01:00
test_elmmake_handler.vader Elm linter shows full error ranges 2017-06-27 20:16:29 +02:00
test_embertemplatelint_handler.vader Ember-template-lint handler: properly handle template parsing errors. 2017-05-28 21:19:47 +02:00
test_eslint_handler.vader Print messages about imports used when modules are turned off 2017-06-20 17:38:21 +01:00
test_flake8_handler.vader Remove style classification from E999 (#696) 2017-06-27 15:07:26 +01:00
test_flow_handler.vader #482 - Fix Flow handling with relative paths 2017-06-06 20:08:19 +01:00
test_fortran_handler.vader Group handler test cases in a directory 2017-03-06 23:32:48 +00:00
test_gcc_handler.vader Revert "Fix #556 Remove duplicate error messages from clang++" 2017-05-20 12:57:41 +01:00
test_ghc_handler.vader #710 - Show warnings as warnings for ghc 2017-07-07 00:28:22 +01:00
test_ghc_mod_handler.vader #710 - Fix a parsing bug caused by the last fix 2017-07-07 10:59:00 +01:00
test_gobuild_handler.vader Make the gobuild tests work better when running them directly 2017-05-06 10:10:24 +01:00
test_gometalinter_handler.vader Improve performance when using gometalinter (#566) 2017-05-20 11:43:28 +01:00
test_javac_handler.vader handle column number in javac linter (#660) 2017-06-19 11:45:09 +01:00
test_jscs_handler.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_lua_handler.vader Adjust output of luacheck linter to include error code (#717) 2017-07-02 00:20:59 +01:00
test_mypy_handler.vader Fix #363 - Detect virtualenv executables and fix import paths for mypy. Use lint_file for mypy 2017-05-06 23:19:54 +01:00
test_nim_handler.vader Make the nimcheck tests more reliable 2017-05-06 23:06:51 +01:00
test_nix_handler.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_perl_handler.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_php_handler.vader Add end columns on php linter #538 2017-05-17 21:28:29 +02:00
test_pylint_handler.vader Change regex to better handle messages with multiple groups of parentheses. 2017-06-25 20:19:39 -04:00
test_rails_best_practices_handler.vader Add rails_best_practices handler (resolves #655) (#751) 2017-07-12 10:43:47 +01:00
test_reek_handler.vader Add the Reek checker for Ruby. (#490) 2017-04-20 07:37:08 +01:00
test_rpmlint_handler.vader Add rpm spec file linter (rpmlint) (#486) 2017-04-19 23:40:58 +01:00
test_rubocop_handler.vader Rubocop: handle empty 'files' array in output 2017-07-12 19:53:58 -04:00
test_ruby_handler.vader Add erb linter (#497) 2017-04-25 18:38:02 +01:00
test_rust_handler.vader Fix windows path check on rust linter (#736) 2017-07-07 17:03:17 +01:00
test_shell_handler.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_slim_handler.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_sml_handler.vader improved the sml linter (#445) 2017-04-08 11:23:11 +01:00
test_sqlint_handler.vader Add SQL linter sqlint, closes #395 (#472) 2017-04-15 11:24:05 +01:00
test_standard_handler.vader Fix the standard and xo handlers so they call the eslint function 2017-06-21 11:15:05 +01:00
test_stylelint_handler.vader Report exceptions thrown for stylelint 2017-07-03 16:13:10 +01:00
test_swiftlint_handler.vader #392 Report errors inside of headers, in a very basic way 2017-04-11 20:32:57 +01:00
test_tslint_handler.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_typecheck_handler.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_vint_handler.vader Fix #469 - Remove Unicode quotes from GCC errors, which cause issues 2017-04-24 23:00:43 +01:00
test_xmllint_handler.vader Add xmllint linter (#559) 2017-05-18 09:31:12 +01:00