sebastianbergmann/phpcpd

Add option to fail on duplicate lines percentage

JanPietrzyk opened this issue · 0 comments

While - of course - C&P detection should not be the major indicator of bad code in general, it might be beneficial to set upper bounds in CI environments.

The usefulness of the tool would be greatly enhanced if it were able to fail a CI pipeline.

The easiest and most common way I imagine is to just add an upper limit option to the command like --max-percentage=8.9.