Skip to content

How to run linting on group or multiple html or tpl.html files #9

@Shaks

Description

@Shaks

How to run the linting on multiple or group of .html or tpl.html files?

By default the linting is only being applied to the first .html or tpl.html file in that path ./src/*/.html and the report looks like this:

{
"datetime": "2016-06-29T08:57:54.204Z",
"allpassed": false,
"fileschecked": 1,
"filessucceeded": 0,
"filesfailed": 1,
"failed": [{
"filepath": "/project/src/app/cart/shopping-cart.html",
"numerrs": 7,
"errors": [{
"msg": "Start tag seen without seeing a doctype first. Expected e.g. “”.",
"line": 1,
"col": 11
}, {
"msg": "Element “head” is missing a required instance of child element “title”.",
"line": 1,
"col": 11
}, {
"msg": "Element “back-link” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.)",
"line": 1,
"col": 11
}, {
"msg": "Element “error-summary” not allowed as child of element “div” in this context. (Suppressing further errors from this subtree.)",
"line": 60,
"col": 9
}, {
"msg": "The “details” element is not supported in all browsers. Please be sure to test, and consider using a polyfill.",
"line": 80,
"col": 41
}, {
"msg": "Attribute “aria-required” not allowed on element “input” at this point.",
"line": 114,
"col": 41
}, {
"msg": "Attribute “aria-required” not allowed on element “input” at this point.",
"line": 122,
"col": 41
}]
}]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions