CLion Offline Inspections Supported?

已回答

I'm trying to set up a CI process to run CLion inspections across my entire project and am running into some odd behavior, so I wanted to inquire if this is officially supported in CLion or if I may be missing something.

I'm using the standard inspect.sh workflow as outlined here

What I'm finding is that most of the beefier inspections (namely the clang-tidy based ones) only seem to function offline after the project has been opened in the GUI.  If I run offline inspections for a freshly pulled project (or blow away CLion's cache dir), offline inspection will speed through all files without running most inspections.  If I first open the project in the GUI, wait a moment, and then close it, subsequent offline inspections take much longer and seem to run the full set of inspections.

Is this a known issue or limitation, or is there a way I could get this to work without having to cycle the GUI like that?  I've currently got my CI task doing just that before running its inspections but that feels hacky & fragile.  I realize I could also just run clang-tidy directly myself, but it would be nice to be able to just have CLion handle it for consistency.

0

Hi Eric!

Running inspection via CLI is platform feature (IDEA) and doesn't fit up to CLion inspection well. Could you please submit ticket to CLion tracker with clarifying CLion version, your OS version and command line you are trying to execute.

We'll take a look at the problem closer.

 

0

请先登录再写评论。