Commit 6845fac2 authored by David Sveningsson's avatar David Sveningsson
Browse files

feat(rules): add rule url to `Message`

parent ce0b1377
Pipeline #288014101 passed with stages
in 10 minutes and 29 seconds
......@@ -13,6 +13,7 @@ Array [
"message": "<img> is missing required \\"alt\\" attribute",
"offset": 1,
"ruleId": "wcag/h37",
"ruleUrl": "https://html-validate.org/rules/wcag/h37.html",
"selector": "img",
"severity": 2,
"size": 3,
......@@ -27,6 +28,7 @@ Array [
"message": "<button> is missing required \\"type\\" attribute",
"offset": 22,
"ruleId": "element-required-attributes",
"ruleUrl": "https://html-validate.org/rules/element-required-attributes.html",
"selector": "button",
"severity": 2,
"size": 6,
......@@ -38,6 +40,7 @@ Array [
"message": "<input> element does not have a <label>",
"offset": 130,
"ruleId": "input-missing-label",
"ruleUrl": "https://html-validate.org/rules/input-missing-label.html",
"selector": "div > input",
"severity": 2,
"size": 5,
......@@ -68,6 +71,7 @@ Array [
"message": "Element <my-block> is not permitted as content in <my-inline>",
"offset": 15,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "my-inline > my-block",
"severity": 2,
"size": 8,
......@@ -81,6 +85,7 @@ Array [
"message": "<my-deprecated> is deprecated: replaced with <my-other>",
"offset": 39,
"ruleId": "deprecated",
"ruleUrl": "https://html-validate.org/rules/deprecated.html",
"selector": "my-inline > my-deprecated",
"severity": 2,
"size": 13,
......@@ -108,6 +113,7 @@ Array [
"message": "Element <legend> must be used before <p> in this context",
"offset": 65,
"ruleId": "element-permitted-order",
"ruleUrl": "https://html-validate.org/rules/element-permitted-order.html",
"selector": "footer > fieldset > legend",
"severity": 2,
"size": 6,
......@@ -119,6 +125,7 @@ Array [
"message": "Element <main> is not permitted as descendant of <footer>",
"offset": 127,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "footer > main",
"severity": 2,
"size": 4,
......@@ -134,6 +141,7 @@ Array [
"message": "<blink> is deprecated",
"offset": 138,
"ruleId": "deprecated",
"ruleUrl": "https://html-validate.org/rules/deprecated.html",
"selector": "footer > main > blink",
"severity": 2,
"size": 5,
......
......@@ -13,6 +13,7 @@ Array [
"message": "Element <div> is not permitted as content in <my-component>",
"offset": 76,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "my-component:nth-child(2) > div",
"severity": 2,
"size": 3,
......
......@@ -13,6 +13,7 @@ Array [
"message": "Attribute \\"quacks\\" should omit value",
"offset": 54,
"ruleId": "attribute-boolean-style",
"ruleUrl": "https://html-validate.org/rules/attribute-boolean-style.html",
"selector": "my-component:nth-child(2)",
"severity": 2,
"size": 6,
......@@ -29,6 +30,7 @@ Array [
"message": "Attribute \\"quacks\\" has invalid value \\"duck\\"",
"offset": 62,
"ruleId": "attribute-allowed-values",
"ruleUrl": "https://html-validate.org/rules/attribute-allowed-values.html",
"selector": "my-component:nth-child(2)",
"severity": 2,
"size": 4,
......@@ -54,6 +56,7 @@ Array [
"message": "Attribute \\"duck\\" is deprecated on <my-component> element",
"offset": 14,
"ruleId": "no-deprecated-attr",
"ruleUrl": "https://html-validate.org/rules/no-deprecated-attr.html",
"selector": "my-component",
"severity": 2,
"size": 4,
......@@ -88,6 +91,7 @@ Array [
"message": "Attribute \\"duck\\" has invalid value \\"flintheart\\"",
"offset": 66,
"ruleId": "attribute-allowed-values",
"ruleUrl": "https://html-validate.org/rules/attribute-allowed-values.html",
"selector": "my-component:nth-child(2)",
"severity": 2,
"size": 10,
......@@ -120,6 +124,7 @@ Array [
"message": "Attribute \\"ducks\\" has invalid value \\"huey\\"",
"offset": 64,
"ruleId": "attribute-allowed-values",
"ruleUrl": "https://html-validate.org/rules/attribute-allowed-values.html",
"selector": "my-component:nth-child(2)",
"severity": 2,
"size": 4,
......@@ -148,6 +153,7 @@ Array [
"message": "<my-component> is missing required \\"duck\\" attribute",
"offset": 47,
"ruleId": "element-required-attributes",
"ruleUrl": "https://html-validate.org/rules/element-required-attributes.html",
"selector": "my-component:nth-child(2)",
"severity": 2,
"size": 12,
......
......@@ -13,6 +13,7 @@ Array [
"message": "Element <footer> is not permitted as descendant of <my-component>",
"offset": 63,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "my-component > div > footer",
"severity": 2,
"size": 6,
......@@ -24,6 +25,7 @@ Array [
"message": "Element <my-component> is not permitted as descendant of <my-component>",
"offset": 137,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "my-component > div > my-component",
"severity": 2,
"size": 12,
......@@ -60,6 +62,7 @@ Array [
"message": "Element <h1> is not permitted as content in <my-component>",
"offset": 67,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "my-component > h1",
"severity": 2,
"size": 2,
......@@ -88,6 +91,7 @@ Array [
"message": "Element <button> is not permitted as content in <my-component>",
"offset": 18,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "my-component > button",
"severity": 2,
"size": 6,
......
......@@ -13,6 +13,7 @@ Array [
"message": "Element <my-component> is not permitted as content in <div>",
"offset": 9,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "div > my-component",
"severity": 2,
"size": 12,
......@@ -39,6 +40,7 @@ Array [
"message": "Element <my-component> is not permitted as content in <span>",
"offset": 10,
"ruleId": "element-permitted-content",
"ruleUrl": "https://html-validate.org/rules/element-permitted-content.html",
"selector": "span > my-component",
"severity": 2,
"size": 12,
......
......@@ -13,6 +13,7 @@ Array [
"message": "Link destination must not be absolute url",
"offset": 9,
"ruleId": "allowed-links",
"ruleUrl": "https://html-validate.org/rules/allowed-links.html",
"selector": "a",
"severity": 2,
"size": 4,
......@@ -39,6 +40,7 @@ Array [
"message": "Relative links must be relative to current folder",
"offset": 9,
"ruleId": "allowed-links",
"ruleUrl": "https://html-validate.org/rules/allowed-links.html",
"selector": "a",
"severity": 2,
"size": 3,
......@@ -65,6 +67,7 @@ Array [
"message": "Link destination must not be external url",
"offset": 9,
"ruleId": "allowed-links",
"ruleUrl": "https://html-validate.org/rules/allowed-links.html",
"selector": "a",
"severity": 2,
"size": 22,
......@@ -91,6 +94,7 @@ Array [
"message": "Link destination must not be relative url",
"offset": 9,
"ruleId": "allowed-links",
"ruleUrl": "https://html-validate.org/rules/allowed-links.html",
"selector": "a",
"severity": 2,
"size": 6,
......
......@@ -15,6 +15,7 @@ Array [
"message": "\\"aria-label\\" cannot be used on this element",
"offset": 21,
"ruleId": "aria-label-misuse",
"ruleUrl": "https://html-validate.org/rules/aria-label-misuse.html",
"selector": "input",
"severity": 2,
"size": 10,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Attribute \\"ID\\" should be lowercase",
"offset": 3,
"ruleId": "attr-case",
"ruleUrl": "https://html-validate.org/rules/attr-case.html",
"selector": "p",
"severity": 2,
"size": 2,
......@@ -39,6 +40,7 @@ Array [
"message": "Attribute \\"fooBar\\" should be lowercase or uppercase",
"offset": 33,
"ruleId": "attr-case",
"ruleUrl": "https://html-validate.org/rules/attr-case.html",
"selector": "p:nth-child(3)",
"severity": 2,
"size": 6,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Attribute \\"class\\" used ' instead of expected \\"",
"offset": 3,
"ruleId": "attr-quotes",
"ruleUrl": "https://html-validate.org/rules/attr-quotes.html",
"selector": "p",
"severity": 2,
"size": 5,
......
......@@ -15,6 +15,7 @@ Array [
"message": "No space between attributes",
"offset": 20,
"ruleId": "attr-spacing",
"ruleUrl": "https://html-validate.org/rules/attr-spacing.html",
"selector": null,
"severity": 2,
"size": 5,
......
......@@ -22,6 +22,7 @@ Array [
"message": "Attribute \\"href\\" is missing value",
"offset": 3,
"ruleId": "attribute-allowed-values",
"ruleUrl": "https://html-validate.org/rules/attribute-allowed-values.html",
"selector": "a",
"severity": 2,
"size": 4,
......@@ -61,6 +62,7 @@ Array [
"message": "Attribute \\"type\\" has invalid value \\"foobar\\"",
"offset": 29,
"ruleId": "attribute-allowed-values",
"ruleUrl": "https://html-validate.org/rules/attribute-allowed-values.html",
"selector": "input",
"severity": 2,
"size": 6,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Attribute \\"required\\" should omit value",
"offset": 7,
"ruleId": "attribute-boolean-style",
"ruleUrl": "https://html-validate.org/rules/attribute-boolean-style.html",
"selector": "input:nth-child(1)",
"severity": 2,
"size": 8,
......@@ -26,6 +27,7 @@ Array [
"message": "Attribute \\"required\\" should omit value",
"offset": 27,
"ruleId": "attribute-boolean-style",
"ruleUrl": "https://html-validate.org/rules/attribute-boolean-style.html",
"selector": "input:nth-child(2)",
"severity": 2,
"size": 8,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Attribute \\"download\\" should omit value",
"offset": 3,
"ruleId": "attribute-empty-style",
"ruleUrl": "https://html-validate.org/rules/attribute-empty-style.html",
"selector": "a",
"severity": 2,
"size": 8,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Class \\"fooBar\\" does not match required pattern \\"/^[a-z0-9-]+$/\\"",
"offset": 12,
"ruleId": "class-pattern",
"ruleUrl": "https://html-validate.org/rules/class-pattern.html",
"selector": "div",
"severity": 2,
"size": 6,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Close tags cannot have attributes",
"offset": 11,
"ruleId": "close-attr",
"ruleUrl": "https://html-validate.org/rules/close-attr.html",
"selector": null,
"severity": 2,
"size": 2,
......
......@@ -17,6 +17,7 @@ Array [
"message": "Mismatched close-tag, expected '</strong>' but found '</p>'.",
"offset": 43,
"ruleId": "close-order",
"ruleUrl": "https://html-validate.org/rules/close-order.html",
"selector": null,
"severity": 2,
"size": 2,
......@@ -28,6 +29,7 @@ Array [
"message": "Mismatched close-tag, expected '</p>' but found '</strong>'.",
"offset": 47,
"ruleId": "close-order",
"ruleUrl": "https://html-validate.org/rules/close-order.html",
"selector": null,
"severity": 2,
"size": 7,
......@@ -53,6 +55,7 @@ Array [
"message": "Missing close-tag, expected '</div>' but document ended before it was found.",
"offset": 36,
"ruleId": "close-order",
"ruleUrl": "https://html-validate.org/rules/close-order.html",
"selector": null,
"severity": 2,
"size": 0,
......@@ -78,6 +81,7 @@ Array [
"message": "Unexpected close-tag, expected opening tag.",
"offset": 32,
"ruleId": "close-order",
"ruleUrl": "https://html-validate.org/rules/close-order.html",
"selector": null,
"severity": 2,
"size": 4,
......
......@@ -17,6 +17,7 @@ Array [
"message": "<my-element> is deprecated: replaced with <other-element>",
"offset": 1,
"ruleId": "deprecated",
"ruleUrl": "https://html-validate.org/rules/deprecated.html",
"selector": "my-element",
"severity": 2,
"size": 10,
......@@ -46,6 +47,7 @@ Array [
"message": "<center> is deprecated: use CSS instead",
"offset": 1,
"ruleId": "deprecated",
"ruleUrl": "https://html-validate.org/rules/deprecated.html",
"selector": "center",
"severity": 2,
"size": 6,
......@@ -62,6 +64,7 @@ Array [
"message": "<big> is deprecated: use CSS instead",
"offset": 22,
"ruleId": "deprecated",
"ruleUrl": "https://html-validate.org/rules/deprecated.html",
"selector": "big",
"severity": 2,
"size": 3,
......
......@@ -15,6 +15,7 @@ Array [
"message": "doctype should be \\"html\\"",
"offset": 10,
"ruleId": "doctype-html",
"ruleUrl": "https://html-validate.org/rules/doctype-html.html",
"selector": null,
"severity": 2,
"size": 79,
......@@ -39,6 +40,7 @@ Array [
"message": "doctype should be \\"html\\"",
"offset": 10,
"ruleId": "doctype-html",
"ruleUrl": "https://html-validate.org/rules/doctype-html.html",
"selector": null,
"severity": 2,
"size": 33,
......
......@@ -17,6 +17,7 @@ Array [
"message": "DOCTYPE should be uppercase",
"offset": 0,
"ruleId": "doctype-style",
"ruleUrl": "https://html-validate.org/rules/doctype-style.html",
"selector": null,
"severity": 2,
"size": 10,
......
......@@ -15,6 +15,7 @@ Array [
"message": "Element \\"DIV\\" should be lowercase",
"offset": 1,
"ruleId": "element-case",
"ruleUrl": "https://html-validate.org/rules/element-case.html",
"selector": "div",
"severity": 2,
"size": 3,
......@@ -39,6 +40,7 @@ Array [
"message": "Start and end tag must not differ in casing",
"offset": 12,
"ruleId": "element-case",
"ruleUrl": "https://html-validate.org/rules/element-case.html",
"selector": "foobar",
"severity": 2,
"size": 7,
......@@ -63,6 +65,7 @@ Array [
"message": "Element \\"fooBar\\" should be lowercase or PascalCase",
"offset": 39,
"ruleId": "element-case",
"ruleUrl": "https://html-validate.org/rules/element-case.html",
"selector": "foobar:nth-child(3)",
"severity": 2,
"size": 6,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment