Disable a rule in our Quality profile seems not to work

Hi,

I want to disable the following the rules:

  1. Associate a valid label to this input field.
  2. Add an “id” attribute to this input field and associate it with a label.

I have created an separate quality profile and the rule S6853 is disabled in our own Quality profile.

Maybe this is the wrong rule, if so let me know.

The reason is that we are using Vue as framework and Vue adds “inputId” as “id” attribute. So there no need to check for an “id” attribute.

Below the issues found by Sonarcloud:

and below as screenshot showing the rule thats already disabled.

Again, maybe this is the wrong rule. If so let me know!

If not then I am curious what I am doing wrong to disable these checks.

Additional: The rule Web:InputWithoutLabelCheck is disabled according the information below. See rules?open=Web%3AInputWithoutLabelCheck&rule_key=Web%3AInputWithoutLabelCheck

Adrie

Hi @Adrie. Thanks for the post.

I have created an separate quality profile and the rule S6853 is disabled in our own Quality profile…Maybe this is the wrong rule, if so let me know.

S6853 is the wrong rule (it applies to <label> tags only).

The rule you’re looking for is Web:InputWithoutLabelCheck. It applies to <input>, <select>, and <textarea> tags.