scapegoat-scala / scapegoat

Scala compiler plugin for static code analysis
Apache License 2.0
523 stars 88 forks source link

Equivalent of SonarJava's "@Deprecated code should not be used" rule #207

Open h-ngo opened 6 years ago

h-ngo commented 6 years ago

Is there an equivalent of SonarJava's "@deprecated code should not be used"? or any plan that this will be implemented soon?

It's be really helpful for developers to see all deprecation warnings in sonar, so they can fix them. However, since it looks like both Scalastyle and Scapegoat don't support this, none of sonar plugins that integrated these 2 code analyzers is able to report it as a violation in sonar.

xplosunn commented 6 years ago

Does the "-deprecation" compiler flag do what you want or is there some other intended behaviour I'm missing?

BalmungSan commented 6 years ago

Hi @xplosunn, the idea is to import those warnings to SonarQube.