Excluding generated sources from manually triggered analysis in SonarLint for InteliJ

265 views
Skip to first unread message

ejgre...@gmail.com

unread,
Feb 1, 2018, 10:09:44 AM2/1/18
to SonarLint
I want to scan all project files but exclude generated-sources. When I trigger a complete project scan the generated sources get scanned too. Is there any way to exclude them? 

(I'm using the latest SonarLint on the latest version of InteliJ)

Thanks!
Elisha

Duarte Meneses

unread,
Feb 1, 2018, 10:42:12 AM2/1/18
to ejgre...@gmail.com, SonarLint
Hi Elisha,

For user-triggered analyses, all sources are scanned. This is a known limitation that SonarLint currently has.
We plan to improve this soon by using many of the exclusions that are already being applied in the analyses that are automatically triggered.





--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/10374518-2cc8-4b8f-a4b3-1dc62c1a3a28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Duarte Meneses | SonarSource
Software Engineer

Are you using SonarLint in your IDE?

doka...@gmail.com

unread,
Mar 9, 2018, 8:56:19 AM3/9/18
to SonarLint
Hi Duarte,

Does that imply that even if I set exclusion patterns like **/*_.java (to exclude generate files like SomeClass_.java) will not be applied for user-triggered analyses in Intellj IDEA?
In fact, that is what I observe... whatever patterns I specify for the exclusions (via File > Settings > Other Settings > Sonar Lint General/Project Settings), they seem to be ignored when doing a manually-triggered full project analysis.

Regards,
Dominik


On Thursday, February 1, 2018 at 4:42:12 PM UTC+1, duarte.meneses wrote:
Hi Elisha,

For user-triggered analyses, all sources are scanned. This is a known limitation that SonarLint currently has.
We plan to improve this soon by using many of the exclusions that are already being applied in the analyses that are automatically triggered.




On 1 February 2018 at 16:09, <ejgre...@gmail.com> wrote:
I want to scan all project files but exclude generated-sources. When I trigger a complete project scan the generated sources get scanned too. Is there any way to exclude them? 

(I'm using the latest SonarLint on the latest version of InteliJ)

Thanks!
Elisha

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.

Julien HENRY

unread,
Mar 9, 2018, 9:35:40 AM3/9/18
to Dominik Kaspar, SonarLint
Hi Dominik,

This will be fixed during the next sprint: https://jira.sonarsource.com/browse/SLI-257

++

Julien Henry | SonarSource

Developer

https://sonarsource.com


To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/fa55ff74-a016-4cbf-ad19-759161a04786%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages