running intellij code analysis from ant/command line.

Must I use TeamCity in order to run a intellij code analysis from ant or command line?
if the answer is "no", how can I do it?

thanks, Nimrod.

4 comments
Comment actions Permalink

Hello Nimrod,

Must I use TeamCity in order to run a intellij code analysis from ant
or command line? if the answer is "no", how can I do it?


Use bin\inspect.bat.

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


0
Comment actions Permalink

how should I use the file?
Is there any document describing the procedure?

0
Comment actions Permalink

I just did a quick check, but didn't find any. Anyway usage of the tool:
1) run the tool and 2) import the results in IDEA.

- 1) -
Output from inspect.bat without parameters is:

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.

where
- project_file_path should be a path to an ipr file
- inspection_profile_file_path should be a path to an inspection config file (look for those in your /config/inspection path).

- 2) -
After you've run it you can import the files from the output_path into IDEA by : Analyze | View Offline Inspection Results...

HTH,
Ruben

0

Please sign in to leave a comment.