From 07532b8effa220975ce5a3cc2e84cd2020539d6e Mon Sep 17 00:00:00 2001 From: Niels de Blaauw Date: Thu, 8 Oct 2020 12:33:49 +0200 Subject: [PATCH] Adds example output. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 8c5d7d6..043d1bb 100644 --- a/README.md +++ b/README.md @@ -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 ``. +l.18 c.0 : ERROR [A11Y.BannedHTMLTags] Tag 'blink' is dissallowed. Found ``. +5 violation(s) found +``` + For additional options read the [TwigCS documentation](https://github.com/friendsoftwig/twigcs). ## Rules