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

Identifying new violations introduced with changes #11

Closed Macarse closed 8 years ago

Macarse commented 8 years ago

I the README it says:

IDEA allows you to check for new violations introduced with your changes while you are trying to commit them

How? Is there a way to configure this tool to generate build failures when new warnings/errors are introduced?

bentolor commented 8 years ago

This sentence refers to the Before Submit / Before Commit section > Perform code analysis of IDEA.

I suggest to use the various options in IntelliJ to a warning/error project:

The script could be easily extended to compare an inspection result set with a given set of violations (i.e. by copying & adding the set of "accepted" violations to a separated dir) but given all the better options this sounds a bit like golden faucets for me.

Macarse commented 8 years ago

oh ok, but there is no way of analyzing only the commit diff, right?

bentolor commented 8 years ago

Not on the server-side. But I think it can be achieved easily (see my previous answert).

might be that TeamCity might offers a similar sort of functionality you are looking for.

Macarse commented 8 years ago

@bentolor cool. thanks for your help.