Disable accessibility rules per html tag?

Our developers write something like this:

<my-button (click)=“myClickHandler()”>

In the other project where my-button is defined it has all the proper accessibility attributes and such. It passes the accessibility checks. I’m guessing that Sonar see’s (click) and thinks the my-button needs the accessibility attributes.

This is for Angular projects by the way.

Is there a way to skip checkin on tags that match a pattern. For example those starting with “my-”

Thanks.

Hi,

Welcome to the community!

This is not available. Probably the best you could do is to turn off the rule for specific files.

 
HTH,
Ann