Rule Deactivation Button is Greyed Out

I am using SonarSource in the rules section. I got to the rules section by the following:

  1. Select organization
  2. Quality Profiles
  3. Click Sonar Way under C#
  4. Select Code smells
  5. Select show more
  6. search for “Types should be named in PascalCase”

The deactivate button is grey out. I want to deactivate the rule. How do I do that?

Am I on the wrong screen?

Hi,

As a built-in profile, Sonar way isn’t editable. It sounds like you want a custom Quality Profile. The docs should help.

 
Ann

@ganncamp Thank you for the links to the documents. After following these docs I still have the same issue. I extended Sonar Way. Then doing the following results in the same greyed out buttons

  1. Select organization
  2. Quality Profiles
  3. Click P97 Sonar Way C# Extend under C#
  4. Select Active Code smells
  5. Select show more
  6. search for “Types should be named in PascalCase”

Hi,

If you click through to the detail of that rule, do you see that it’s active in the profile?

Also, do you have permissions to edit Quality Profiles in your organization?

And are there any errors in your browser console?

 
Ann

@ganncamp There are no errors in chrome in developer mode. I also tried other browsers. When I look at the detail of the rule it shows that I can deactivate quality profiles that I created without extending and cannot deactivate the extended quality profiles. I am able to deactivate rules from quality profiles that I create without extending from sonar way, but not from those extended from sonar way.

This is sufficient for my purposes.

1 Like

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