Sonar imports less rules than exported

75 views
Skip to first unread message

derek...@gmail.com

unread,
May 4, 2016, 7:59:01 AM5/4/16
to SonarQube
Hello All,

I have a Sonar profile that has 606 rules, when I export the rules and then import only 597 rules get imported, any ideas why this is?

Thanks.

Derek.

Michel Pawlak

unread,
May 4, 2016, 8:11:31 AM5/4/16
to SonarQube, derek...@gmail.com
Hi,

It can be related to the version of the plugins you're using. If you're using a plugin in version N on your source SQ instance export then import profiles to a target SQ instance running the same plugin in version N+M and if N+M does not handle anymore some rules that were handled in version N (sometimes rules are removed), you'll have such a result.

Michel

CSchulz

unread,
May 4, 2016, 9:29:33 AM5/4/16
to SonarQube, derek...@gmail.com

derek...@gmail.com

unread,
May 4, 2016, 12:39:23 PM5/4/16
to SonarQube, derek...@gmail.com
Thanks for the responses, I checked the versions, all looked okay.

I rekcon it's the custom rule problem as described by CSchulz, I will just recreate them by hand.

Thanks again.
Reply all
Reply to author
Forward
0 new messages