All rules are deprecated in the Sonar Way (java) profile

52 views
Skip to first unread message

s.phil...@gmail.com

unread,
Jun 29, 2017, 8:36:38 AM6/29/17
to SonarQube
Hi,

After upgrade our java plugin (4.06 -> 4.10) all rules in the Sonar Way profile are DEPRECATED and the new rules from the Java Analyzer are not used.
Is it normal ?

The version of sonarqube : 5.6.1.



Regards,

Stéphane

G. Ann Campbell

unread,
Jun 29, 2017, 8:50:05 AM6/29/17
to SonarQube, s.phil...@gmail.com
Hi,

It appears that at some point you (or your predecessors) edited the Sonar Way profile to include rules from PMD, Checkstyle, and/or FindBugs. (Check the quality profile changelog to verify.)

It also appears that you upgraded more than just SonarJava. I say this because those deprecation notices are attacked to the rules in the plugins that supply them. They were deprecated because replacements are available in SonarJava.

You don't ask what you should do at this point, but I'll offer a suggestion anyway.

I would copy your existing Sonar Way to a new profile, then reset Sonar Way using Restore Built-in Profiles.  You can then compare the two to see the differences.


Ann

s.phil...@gmail.com

unread,
Jun 29, 2017, 8:57:10 AM6/29/17
to SonarQube, s.phil...@gmail.com
Thanks it works perfectly !
As you say I don't remember why ou who edited the sonar way ;).

Mike Barry

unread,
Jun 30, 2017, 7:12:07 AM6/30/17
to SonarQube
Hi Ann,

We made this rookie mistake a long time ago as well. While it's long been resolved have you thought about making the default rulesets read only? I'm sure we are not the only two that have been bit by this.

Cheers,
Mike

G. Ann Campbell

unread,
Jun 30, 2017, 7:18:47 AM6/30/17
to Mike Barry, SonarQube
Hi Mike,

Funny you should ask that will be part of 6.5.


:-)
Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell


--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/qyWw698pits/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/23dec830-577f-4efd-8552-c9f0a37ee726%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages