'Sonarlint and Intelij: possible to run analysis only for files in a changelist?

I am currently running sonarlint plugin locally in Intelij which works well.

I would like to run the plugin only for files that I have in my Changelist - before I push them and create a Pull request.

Is there a way to do this?



Solution 1:[1]

Yes you can do this

Select Analyze list and then choose Analyze VCS changed files with SonarLint

enter image description here

Solution 2:[2]

Select the changelist in the Git window. Then click ctrl-shift-S

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user3341564
Solution 2 Gep