dequelabs / dequelabs/axe-core
axe Linter not respecting tags
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 17
Description
Product: axe Linter
Expectation:
when applying the following `axe-linter.yml` config, I would expect that the [html-has-lang](https://dequeuniversity.com/rules/axe/4.4/html-has-lang?application=axe-linter) has been disabled.
```yml
rules:
tags:
- wcag2a
```
adding all other tags (`wcag2aa`, `wcag21a`, `wcag21aa`), doesn't change anything either.
Disabling the rule with
```yml
rules:
html-has-lang: false
tags:
```
works.
Actual:
When having the following `axe-linter.yml` config, the [html-has-lang](https://dequeuniversity.com/rules/axe/4.4/html-has-lang?application=axe-linter) rule should be disabled, since the rule is tagged with `WCAG 2.1`. But it's not :(
```yml
rules:
tags:
- wcag2a
```
Motivation:
I would like to understand how the tags in the config work, or if it is indeed a bug or description issue.
axe Linter version: 4.4.1
VSCode version: 1.69.2
For Tooling issues:
- Node version: 16.16.0
- Platform: Linux
Contributor guide
Assessment
This issue has not been assessed yet.