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!"
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.
They are stored in TeamCity database ;) Though TeamCity provides inspection results browser as well as integartion with IDEA editor/inspection toolwindow
Hello Jay,
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!"
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?
Hello Jay,
Yes, I thinik this could work.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
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
Thanks!
And how are those inspection-run results stored?
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!"