Issue (targeting former rule ids) migration mechanism

I’m looking for a mechanism to manage migration of issues from our rules which them IDs (and repository names) have change since last plugin release.

This mechanism must be able to migrate the old problems (attached to the old ids) so that they can use the new ids.

Hey there.

There is a method, addDeprecatedRuleKey you can use.

I suggest looking at the migration done for sonar-java in v6.0 for inspiration. Specifically these three commits:

1 Like

Thanks a lot for your informations.
Usage of @DeprecatedRuleKey works perfectly well.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.