Code Inspections and Compilation

I was doing some tests with the @NotNull and @Nullable annotation code inspection of Intellij IDEA
http://www.jetbrains.com/idea/documentation/howto.html

I liked it, and to make it really useful I wanted to increase the severity to error and let it fail or display the errors on compile.
I searched a lot, but I could not find any way to do this.
Sure... the file display red lines when open, and a standalone code analysis will display this, but this hardly forces me to
deal with the issue when working in other files and I have forgotten that there still was a problem in another file or did not notice the inspection
error when I made some change.

I would like these code inspection errors to let the compilation fail, or at least display these errors at this moment.

2 comments
Comment actions Permalink

Hello Robert,

I'm afraid this is not currently possible. IntelliJ IDEA doesn't allow running
arbitrary inspections as part of compilation process.

You're welcome to file a feature request in YouTrack at http://youtrack.jetbrains.net/

I was doing some tests with the @NotNull and @Nullable annotation code
inspection of Intellij IDEA
http://www.jetbrains.com/idea/documentation/howto.html

I liked it, and to make it really useful I wanted to increase the
severity to error and let it fail or display the errors on compile.

I searched a lot, but I could not find any way to do this.

Sure... the file display red lines when open, and a standalone code
analysis will display this, but this hardly forces me to

deal with the issue when working in other files and I have forgotten
that there still was a problem in another file or did not notice the
inspection

error when I made some change.

I would like these code inspection errors to let the compilation fail,
or at least display these errors at this moment.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi, I am interested in the same feature. Is there something new about this feature?

0

Please sign in to leave a comment.