My project uses third party library (let's call it X) with a lot of deprecated code. Sonarqube reports a lot of issues every time I call depracated method or use deprecated type from library X. I found that rule squid:CallToDeprecatedMethod
is responsible for that.
What I want to achieve is to have rule squid:CallToDeprecatedMethod
enabled for all types and method references excluding library X (or particular package from library X). What's more I want to do it externally without any sonar specific exclusion marks in the codebase (i.e. @SuppressWarnings("squid:xxx")
)
I tried Sonarqube's administration->analysis scope options but didn't find anything. Also checked StackOverflow, for example here but found nothing.
My SonarQube version is 5.6.6.