# Rosyln rules categorization not filterable

**URL:** <https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube-cloud\
**Created:** [December 6, 2021, 11:00am UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377 "2021-12-06T11:00:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcassidyav](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jcassidyav/32/40860_2.png) [@jcassidyav](https://community.sonarsource.com/u/jcassidyav)\
**Post date:** [December 6, 2021, 11:00am UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377/1 "2021-12-06T11:00:19Z")

</div>

I have configured certain Rosyln analyzer rules to fit in the Bug category in sonar cube.

What I am seeing is that this changes the Description of the rule to Bug but it does not change it’s Type for filtering purposes.

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/9/8/98b241c409473679155dd8297b0a6513097c7ee9.png)

Am I doing something incorrect here?

This is what is set in settings:

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/b/c/bcb254652feed9884e5363d8b011676ae82d57b4.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 7, 2021, 1:39pm UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377/2 "2021-12-07T13:39:25Z")

</div>

Hey there.

Thanks for reaching out to us about this. I tried to reproduce it and what I found (and what is expected) is that existing issues will not have their type updated – new issues will. Does that match the behavior you’re experiencing?

Along the way I also found that rule descriptions are a _disaster_ because it will simply show the rule type associated with the most recent analysis in the organization. It’s not really related here, but if we manage to fix it, it’s thank to you 😉

---

<div class="post-metadata">

**Author:** ![jcassidyav](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jcassidyav/32/40860_2.png) [@jcassidyav](https://community.sonarsource.com/u/jcassidyav)\
**Post date:** [December 8, 2021, 5:09pm UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377/3 "2021-12-08T17:09:48Z")

</div>

Yes for brand new issues I see the type reflected, however Is there any way to change the existing issues?

I disabled the rosyln analysis and published that to sonarcloud, and the issues are not shown on the main branch. however when I re-enable the rosyln analysis and re-publish to sonarcloud the issues show up but are still of type code smell. Is there any solution to this other than deleting the project and restarting ?

---

<div class="post-metadata">

**Author:** ![jcassidyav](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jcassidyav/32/40860_2.png) [@jcassidyav](https://community.sonarsource.com/u/jcassidyav)\
**Post date:** [December 10, 2021, 11:00am UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377/4 "2021-12-10T11:00:38Z")

</div>

I see I can write something against the API to do it if there is no other way, with the advantage that I can set severity. I guess I will have to look at that.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 10, 2021, 11:07am UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377/5 "2021-12-10T11:07:55Z")

</div>

I think you’ll find the **Bulk Change** feature useful. If you filter down to those issues, you can change them all at once (or more accurately, in batches of 500) to have a different rule type!

 ![Screenshot 2021-12-10 at 12.07.07](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/a/b/ab153e051f84531fadc9e46b56195000d85e4ead.png)

---

<div class="post-metadata">

**Author:** ![jcassidyav](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jcassidyav/32/40860_2.png) [@jcassidyav](https://community.sonarsource.com/u/jcassidyav)\
**Post date:** [December 10, 2021, 11:19am UTC](https://community.sonarsource.com/t/rosyln-rules-categorization-not-filterable/54377/6 "2021-12-10T11:19:45Z")

</div>

Ah, I had not spotted that, yes that will be very useful, thanks.
