bentolor / idea-cli-inspector

A little command-line tool to integrate the awesome IntelliJ IDEA code inspections in your continuous integration (CI) process using Jenkins, Bamboo, et. al.
Apache License 2.0
139 stars 13 forks source link

return non-zero exit value when inspection errors are found #12

Closed MrException closed 8 years ago

MrException commented 8 years ago

Would be great if the script returned a non-zero exit value when Inspection results are found. This way I can easily configure our Jenkins job to fail if anything is found.

bentolor commented 8 years ago

Thanks @MrException for coming back on this.

This is absolutely clearly a bug and I'm just puzzled how the analysis is still working here in Bamboo. Obviously I introduced this bug as a side effect of https://github.com/bentolor/idea-cli-inspector/commit/d69d75d849d91b8f05dcd5f91c22385d1c925f02#diff-48512710ce6b777950e750280884e982L300

I reworked you pull request in favor to 7d6b96895d0df24b3a2d57d9cb330ec22cd32865 to revert my mistakes on other places, too.

Thank you very much for pointing this bug out and providing the fix!