ale/ale_linters/ruby
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
..
brakeman.vim Add rails_best_practices handler (resolves #655) (#751) 2017-07-12 10:43:47 +01:00
rails_best_practices.vim Add rails_best_practices handler (resolves #655) (#751) 2017-07-12 10:43:47 +01:00
reek.vim Add the Reek checker for Ruby. (#490) 2017-04-20 07:37:08 +01:00
rubocop.vim Rubocop: handle empty 'files' array in output 2017-07-12 19:53:58 -04:00
ruby.vim Add erb linter (#497) 2017-04-25 18:38:02 +01:00