ale/ale_linters
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
..
ansible Fix #216 - Filter out errors for other files for ansible-lint 2017-07-03 23:16:39 +01:00
asciidoc Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
asm #549 Temporarily revert shell escaping changes, just for Windows 2017-05-12 09:20:16 +01:00
awk Support for GNU Awk linting (#638) 2017-06-08 18:26:21 +01:00
c Move ale#handlers#c functions into ale#c 2017-06-25 20:34:23 +01:00
chef Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
cmake Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
coffee Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
cpp Correctly pass options to cpplint (#728) 2017-07-05 10:14:43 +01:00
crystal Fix for Crystal support (#651) 2017-06-15 09:30:34 +01:00
cs Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
css Refactor running of local Node programs with a helper function 2017-05-27 17:11:03 +01:00
d #549 Temporarily revert shell escaping changes, just for Windows 2017-05-12 09:20:16 +01:00
dockerfile Allow `hadolint` linter to run via docker image (#720) 2017-07-03 15:37:32 +01:00
elixir Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
elm Elm linter shows full error ranges 2017-06-27 20:16:29 +02:00
erlang #549 Temporarily revert shell escaping changes, just for Windows 2017-05-12 09:20:16 +01:00
eruby Add erb linter (#497) 2017-04-25 18:38:02 +01:00
fortran #427 Implement buffer variable overrides for all linter options 2017-04-16 01:24:08 +01:00
fuse Add fusion-lint, documentation, and tests (#648) 2017-06-14 09:35:11 +01:00
go Fixup #756 2017-07-12 09:51:44 +02:00
haml Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
handlebars Ember-template-lint handler: properly handle template parsing errors. 2017-05-28 21:19:47 +02:00
haskell Prefer --fast for stack-build (#754) 2017-07-11 13:05:13 +01:00
help Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
html Refactor running of local Node programs with a helper function 2017-05-27 17:11:03 +01:00
java handle column number in javac linter (#660) 2017-06-19 11:45:09 +01:00
javascript Use different reporter to support older versions of jscs (#737) 2017-07-08 18:37:21 +01:00
json Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
kotlin Kotlin and general Gradle support. (#745) 2017-07-10 23:03:36 +01:00
lua Adjust output of `luacheck` linter to include error code (#717) 2017-07-02 00:20:59 +01:00
markdown Glue for Vale (#522) 2017-05-01 16:06:04 +01:00
matlab Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
nim #620 Check the Nim files on disk instead 2017-06-06 09:55:19 +01:00
nix Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
nroff Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
objc add clang for objc and objcpp 2017-05-20 00:58:09 +08:00
objcpp add clang for objc and objcpp 2017-05-20 00:58:09 +08:00
ocaml Make code more consistent 2017-04-15 12:52:08 +01:00
perl Add profile, other options to the perlcritic linter (#675) 2017-06-29 13:08:51 +01:00
php Support project's local phpcs installation (#666) 2017-06-21 21:35:40 +01:00
pod Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
pug Make pug-lint detect node_modules executables, and add options for pug-lint like the other linters 2017-06-29 11:40:03 +01:00
puppet Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
pyrex Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
python #729 - Support running Python programs from virtualenv for Windows 2017-07-05 13:07:55 +01:00
r Fix #182 - Add support for lintr 2017-07-03 22:34:30 +01:00
reason Create reasonml merlin linter 2017-04-26 19:29:09 +10:00
rst Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
ruby Rubocop: handle empty 'files' array in output 2017-07-12 19:53:58 -04:00
rust Move path functions to their own file 2017-04-17 23:29:02 +01:00
sass Refactor running of local Node programs with a helper function 2017-05-27 17:11:03 +01:00
scala Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
scss Refactor running of local Node programs with a helper function 2017-05-27 17:11:03 +01:00
sh shell: Don't default to fish 2017-05-01 21:24:16 +02:00
slim Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
sml Use ale#Var in linters that didn't use it yet 2017-04-28 00:01:01 +02:00
spec Add rpm spec file linter (rpmlint) (#486) 2017-04-19 23:40:58 +01:00
sql Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
stylus Fix #178 - Check Stylus files with stylelint 2017-07-03 16:57:39 +01:00
swift #392 Report errors inside of headers, in a very basic way 2017-04-11 20:32:57 +01:00
testft Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
tex #549 Temporarily revert shell escaping changes, just for Windows 2017-05-12 09:20:16 +01:00
texinfo Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
text Glue for Vale (#522) 2017-05-01 16:06:04 +01:00
typescript Remove the need for pointless callbacks for LSP linters 2017-07-02 13:25:36 +01:00
verilog Adds an option to pass additional arguments to the verilog/verilator … (#698) 2017-06-29 09:15:52 +01:00
vim Set the --no-color flag for Vint if we fail to parse the version number for some reason 2017-06-22 12:24:25 +01:00
xhtml Break shared handlers up into their own files, and fix stylelint error handling 2017-04-24 22:27:18 +01:00
xml Add xmllint linter (#559) 2017-05-18 09:31:12 +01:00
yaml Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00