Kyle
Kyle

Reputation: 22065

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.

Upvotes: 5

Views: 2224

Answers (2)

Dmitry Avdeev
Dmitry Avdeev

Reputation: 121

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

Upvotes: 5

duffymo
duffymo

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

Related Questions