IntelliJ command line compiler

I'm looking for an automatic way to collect all IntelliJ static code analysis warnings (compiler and validation) without having to launch the UI and click on buttons. Ideally, I would like to run the IntelliJ compiler from the command line and log all warnings into a file. Is it possible?

+3


source to share


1 answer


Taken from Working with IntelliJ IDEA Features from the Command Line :



To run code review from the command line, specify the following command line arguments:

  • Launcher Path: Provide the full path to one of the following launchers (which are in the bin directory of your IntelliJ IDEA):
    • For Windows: inspect.bat

    • For UNIX: inspect.sh

  • The path to the project file is the full path to the * .ipr or .idea file of the project being checked.
  • The validation profile path is the full path to the profile against which the project should be validated. Control profiles are stored inUSER_HOME\.IntelliJ IDEAXX\config\inspection

  • The output path is the full path to the existing directory where the report will be stored.
  • Parameters. You can specify: directory to check -d Output verbosity level -vX, where X is 0 for quiet, 1 for noisy, and 2 for extra noise.

Please note that you need to specify full paths, relative paths are not accepted.

+2


source







All Articles