dequelabs / axe-linter-action

A GitHub Action to lint for any accessibility issues in your pull requests.
Mozilla Public License 2.0
8 stars 6 forks source link

False-Positive: Lodash/Underscore Templates #50

Open sergei-startsev opened 1 week ago

sergei-startsev commented 1 week ago

Axe-linter does not recognize lodash/underscore HTML template files, resulting in false positive issues.

Example 1

The lodash template below causes a false-positive aria-valid-attr-value - Ensures all ARIA attributes have valid values error:

<li role="tab" aria-selected="<%-param1 %>" aria-controls="<%- param2 %>">Tab Name</li>

Example 2

The lodash template below causes a false-positive list - Ensures that lists are structured correctly error:

<ul>
    <% for (let i = 0; i < array.length; i++){%>
         <!--some code goes here-->
    <% } %>
</ul>
ballendq commented 3 days ago

Please see comment in different ticket.

To replay the comment:

Hi @sergei-startsev the linter does not support template files, this is why you are seeing problems.

To reduce noise in results, we recommend you exclude files using the exclude option within your configuration file.