Vnu v1.0.0 mix vnu.validate.html View Source
Validates HTML files.
It expects a file or a list of files as an argument.
mix vnu.validate.html [OPTIONS] FILE [FILE2 FILE3...]
Options
--server-url
- The URL of the Checker server. Defaults tohttp://localhost:8888
.--fail-on-warnings
- Messages of type:info
and subtype:warning
will be treated as if they were validation errors. Their presence will mean the document is invalid. Defaults tofalse
.--filter
- A module implementing theVnu.MessageFilter
behavior that will be used to exclude messages matching the filter from the result. Defaults tonil
(no excluded messages).
Exit code
If validation of all files finished and no errors were found, the task will exit with code 0
.
If the validation of at least one file did not finish for any reason, or resulted in validation errors, the task will exit with code 1
.
Examples
mix vnu.validate.html index.html about.html
mix vnu.validate.html --server-url localhost:8888 priv/static/**/*.html
mix vnu.validate.html --filter MyApp.VnuMessageFilter priv/static/**/*.html