Skip to content

Commit

Permalink
Adds example output.
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsdeBlaauw committed Oct 8, 2020
1 parent 98fcdd9 commit 07532b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ Want to learn more about creating accessible websites? Check out [The A11Y Colle
## Use
`vendor/bin/twigcs --ruleset \\NdB\\TwigCSA11Y\\Ruleset`


**Example Output**
```
./tests/test.twig
l.2 c.0 : ERROR [A11Y.TabIndex] Invalid 'tabindex'. Tabindex must be 0 or -1. Found `tabindex=1>.`
l.12 c.20 : ERROR [A11Y.TabIndex] Invalid 'tabindex'. Tabindex must be 0 or -1. Found `tabindex=test.`
l.12 c.53 : ERROR [A11Y.TabIndex] Invalid 'tabindex'. Tabindex must be 0 or -1. Found `tabindex='test'.`
l.16 c.0 : ERROR [A11Y.BannedHTMLTags] Tag 'marquee' is dissallowed. Found `<marquee>`.
l.18 c.0 : ERROR [A11Y.BannedHTMLTags] Tag 'blink' is dissallowed. Found `<blink>`.
5 violation(s) found
```

For additional options read the [TwigCS documentation](https://github.com/friendsoftwig/twigcs).

## Rules
Expand Down

0 comments on commit 07532b8

Please sign in to comment.