codeclimate / codeclimate-pmd

13 stars 7 forks source link

Capture stdout not in json format and raise error #9

Closed filipesperandio closed 7 years ago

filipesperandio commented 7 years ago

Errors like this:

$ codeclimate analyze
Starting analysis
Running pmd: Done!
error: (JSON::ParserError) 743: unexpected token at 'Removed misconfigured rule: LoosePackageCoupling  cause: No packages or classes specified '

Become:

$ codeclimate analyze
Starting analysis
Running pmd: Done!
error: (CC::Analyzer::Engine::EngineFailure) engine pmd:beta failed with status 255 and stderr
Removed misconfigured rule: LoosePackageCoupling  cause: No packages or classes specified