Code Inspection from the command line...
"Code Inspection can also be launched in command-line mode using script files, inspect.bat (for Windows) or inspect.sh (for Unix), located in the bin directory of IDEA's installation. The script has the following parameters: ??? "
Above is the help documentation for Code Inspection in IDEA build 780.
As you can see, the details on running inspection from the command line is "???"
Can anyone point me to some information regarding running code inspection from the command line?
In particular, I want to be able to integrate it with our ant/maven build so we generate reports from our nightly build.
Regards,
Nick
Please sign in to leave a comment.
That's what inspect.bat is printing out when is run without any parameters?
Expected parameters: [] Avaliable options are: -d -- directory to be inspected. Optional. Whole project is inspected by default. -v[0|1|2] -- verbose level. 0 - silent, 1 - verbose, 2 - most verbose. So an example could be: inspect.bat c:\project\project.ipr c:\idea\config\inspection\offline_profile.xml c:\project\result.xml -v2 offline_profile.xml is worth mentioning. One can be created by choosing Inspect Code in IDEA, configuring necessary options then clicking Save As... button at the top of the dialog. -- Best regards, Maxim Shafirov JetBrains, Inc / IntelliJ Software http://www.intellij.com "Develop with pleasure!" "Nick Minutello" ]]> wrote in message
news:6561603.1037543097607.JavaMail.jrun@is.intellij.net...
files, inspect.bat (for Windows) or inspect.sh (for Unix), located in the
bin directory of IDEA's installation. The script has the following
parameters: ??? "+
>
"???"
>
from the command line?
>
so we generate reports from our nightly build.
>
>
Any thoughts on creating an Ant task?
Or a maven plugin?
Ta.
-Nick
Hi, I'm trying offline code inspection with IDEA 5.0,
but I'm getting an error:
The JDK is not configured properly for this project. Inspection cannot run.
and a popup showup to turnoff IntelliJ.
it works from the IDE but not off line. Any Help is appreciated !
Open IDEA normally (GUI interface) for this project. Check that JDK settings are correct.