Cannot make sbt compile fail #7
-
Hi community Thank you for maintaining this plugin. We have a Java based playframework website. We would like to use checkstyle and make the compilation fail, as soon as we detect violations of the defined rules. We have managed to run checkstyle on compilations. The violations are reported to the console I have tried on two computers / environments with the same result
Thank you, Matthias |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi community The checkstyle task on its own behaves as expected. It is also reacts on the checkstyleSeverityLevel setting. Not sure if my expectation was wrong or if this is a bug. Anyway, the desired behaviour can be done with two separate tasks:
|
Beta Was this translation helpful? Give feedback.
Hi community
The checkstyle task on its own behaves as expected. It is also reacts on the checkstyleSeverityLevel setting.
But when invoked through the compile task
(Compile / checkstyle) := (Compile / checkstyle).triggeredBy(Compile / compile).value
, it does not fail the compile task.Not sure if my expectation was wrong or if this is a bug. Anyway, the desired behaviour can be done with two separate tasks: