Standalone IDEA code validation

Hi!

Is it possible to run IDEA somehow from the command line to validate project?

6 comments

Hello Jay,

Is it possible to run IDEA somehow from the command line to validate
project?


You can use inspect.bat (available in the bin directory) to run inspections
on an IDEA project from the command line. Note that this doesn't perform
other types of validation (for example, checking for syntax errors in the
code).

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


0

Thanks for the prompt reply!

Do i get it right that i can add an inspection which reports any PsiErrorElement and then i'll get the syntax errors also?

0

Hello Jay,

Thanks for the prompt reply!

Do i get it right that i can add an inspection which reports any
PsiErrorElement and then i'll get the syntax errors also?


Yes, I thinik this could work.

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


0

Additionally, it should be noted that TeamCity has offline inspection runs as one of it's (many) build types. Inspection runs can be triggered, scheduled, compared over time, imported back into IDEA, and probably a bunch more stuff I've forgotten about.

--Dave Griffith

0

Thanks!

And how are those inspection-run results stored?

0

Hello Jay,

They are stored in TeamCity database ;) Though TeamCity provides inspection
results browser as well as integartion with IDEA editor/inspection toolwindow

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Thanks!

And how are those inspection-run results stored?



0

Please sign in to leave a comment.