How do I match inspection profiles between IntelliJ Qodana local plugin and Qodana run by my Github action ? #306
Replies: 1 comment 1 reply
-
|
Hello, Do you use a self-hosted agent?
I am not familiar with the framework, but if IntelliJ provides results different from Qodana and they are more accurate, I'd first start with comparing your IDE and Qodana configuration. You see, when running Qodana from a IntelliJ IDE, it reuses your project configuration that was generated/set up by you when you opened the project in IDEA. All of the project configuration files are stored under Besides, in your current config you're mounting paths to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Java project with CI/CD controlled by Github workflow actions.
When I've finished a set of source changes in IntelliJ, I know how to run my locally installed Qodana plugin. The scan results it gives me are clearly based on the qodana.yaml file that I was asked to use in the root of my project and, rightly or wrongly, this is what it contains:
It gives me a set of 17 warnings.
Okay - I now push the project to Github, including the same qodana.yaml file. I then run a Github workflow action on my branch to do a Qodana scan. As a result, I get 66 warnings - not the 17 I got locally from the IntelliJ plugin. Once I resolve the 17 errors that the local plugin shows me, the Github Qodana report reduces from 66 errors to 49, almost all of which are "Unresolved reference" to classes in the third-party Java framework which the project relies on (Tridium Niagara).
I totally admit I'm new to Qodana and have valiantly tried to research why this is happening, but I don't understand why the local scan is now showing no warnings whereas the Github Qodana action is showing the unresolved references.
I am presuming this is a configuration issue on my part, but I don't understand how to fix it. Can anyone help ?
Here is my Github action workflow file, in case it helps:
Beta Was this translation helpful? Give feedback.
All reactions