Disabling code inspection for a particular file or directory

I love IntelliJ's code inspection. But some files shouldn't be inspected, how can I disable inspection, or at least certain kinds of inspection, for those files? For example, our selenium testcases are saved in html format. But the html includes many ]]> among other things IntelliJ's inspector warns about. I just want to leave all that alone, but I do need it in our project directory and synchronized with our subversion repository.

2 comments
Comment actions Permalink

Scott Mueller wrote:

I love IntelliJ's code inspection. But some files shouldn't be
inspected, how can I disable inspection, or at least certain kinds of
inspection, for those files? For example, our selenium testcases are
saved in html format. But the html includes many <td></td> among
other things IntelliJ's inspector warns about. I just want to leave
all that alone, but I do need it in our project directory and
synchronized with our subversion repository.


You can set up inspection scopes via the Project Profiles node in the
Project Settings|Errors section of the File|Settings dialog.

N.

0
Comment actions Permalink

Thank you Nathan! This almost worked. I setup a new inspection profile called "No Warnings" which has everything unchecked. Then I setup a new scope which is just my selenium directory (recursive). Now every warning disappeared except for 1. How do I get rid of this?
for the line:
]]>

the http://localhost:8080/ is highlighted with the warning "Cannot resolve symbol http://localhost:8080/"

I want the green square already!!! Why is intellij still inspecting this file?

0

Please sign in to leave a comment.