Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij - How do I treat warnings as errors that will prevent compilation?

How do I treat warnings as errors that will prevent compilation in Intellij? I figured out how to change the inspection severity to error, and that will underline the problem in red, but compilation still succeeds. And also it doesn't show any red underlines in the project view like a normal error does.

like image 263
Kyle Avatar asked Feb 26 '23 07:02

Kyle


2 Answers

There is a request for such a feature: http://youtrack.jetbrains.com/issue/IDEA-78625 Please vote for it.

like image 108
Dmitry Avdeev Avatar answered Mar 10 '23 10:03

Dmitry Avdeev


IntelliJ can't change the rules that govern the compiler; the red-yellow-green is intended to influence your behavior.

Only proceed if IntelliJ shows green; ask your teammates to do so as well.

like image 42
duffymo Avatar answered Mar 10 '23 12:03

duffymo