Ruining the concept of customised but inheriting rulesets

  • ALM used: GitHub
  • Languages of the repository: PHP
  • Only if the SonarCloud project is public, the URL: any!
  • Error observed: Cannot customise most rules, and cannot remove most rules, if inheriting, and must have to stop inheriting, if I want to remove/change those rules

Steps to reproduce:

As several users pointed out already (Deactivated rules in child quality profiles are not ignored, Deactivate on Extended Profiles, etc)

  1. Create a quality profile, inheriting from a Sonar Way
  2. Try to deactivate some rules (for example the outdated and a11y unfriendly “replace all tabs with spaces”), and find that you can NOT disable NOR customise it

Suggested solution by SC:

  • stop inheriting and create your own standalone Quality Profile

==> The entire point of inheriting and then customizing a ruleset is that we want to have the updates and quite good (unless some) ruleset of Sonar way, while being able to customize certain rules, or disabling certain rules, that just do not fit the specific project or company definitions

Better solution

Allow users to customize an inherited rule!

Why

If we create a copy of the original, then our copy is “dead”: does not get updates anymore, for any rule.
This makes it a huge work to keep it updated. It destroys the concept of “create a custom ruleset by inheriting from a parent”
There is not much customisation in that, if we are not allowed to… customise it!

The particular rule mentioned (to use tabs over spaces) is just one example, but a good one, because apart of not being customisable, it is also not a11y friendly at all: space space space space versus tab when using accessibility tools, is just cumbersome. And while back when this PSR rule was implemented that might have been no concern, it is nowadays: there are many people coding that are visually impaired for example

1 Like

Hi Beda

Thanks for sharing your frustration with this limitation, it’s not the first time I’ve heard it. I’ll raise it with some of the other Product Managers to see if we can find a way forward.

I’ll update this thread with any updates.

Tom

2 Likes

Hello again Beda (and anybody else with this issue)

If you would like to see the ability to deactivate rules in an extended Quality Profile, please can you provide your feedback here.

Thanks

Tom

Done so, but where can I check my feedback actually was received? After having to confirm the email in the last step, it did let me resend the feedback again… which is weird

Thanks.

UPDATE:
ignore. I saw the feedback is logged. Thanks
I do hope that everyone who reported this and/or voiced it will vote too!!!

1 Like

Hi Beda

As things progress, we’ll update the card that you added your feedback to and you should get notified.

Thanks

Tom

1 Like