Replace this <i> tag by <em>

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)

GitHub

  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI

Travis

  • Scanner command used when applicable (private details masked)

  • Languages of the repository

Angular 11.x

We use a lot of icons and we have 100s of “bugs” saying Replace this tag by its not possible because they are icons, how can we make sure this check is excluded

Thank you

1 Like

Hi Dinesh,

Welcome to the community support!

Sorry for the late answer.

Are those icons part of a public framework we could use to reproduce your issue?

Thanks.

Best.

We have the same problem (on-premise with 8.9.2) using Font Awesome. See Basic Use | Font Awesome for documentation. Maybe you could suppress the finding, if the tag is empty (<i class="..."></i>).

I know this has been some time, but I’ve been having the same issue. Now, I’ve come here to suggest a change to how this issue is reported

You see, the <i> for italics would need something inside the tag for being italicised. Which means, if there is nothing inside the tag, almost certainly it’s being used for an icon.

The suggestion is simple: do not report the issue if there is nothing between <i> and </i>

Hey y’all!

I think the best thing to happen is for a new post to be created in:

Reporting the issue based on the details in this thread:

I will close this thread for now.