Reputation: 22065
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.
Upvotes: 5
Views: 2224
Reputation: 121
There is a request for such a feature: http://youtrack.jetbrains.com/issue/IDEA-78625 Please vote for it.
Upvotes: 5
Reputation: 309028
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.
Upvotes: 4