View Source mix vnu.validate.html (Vnu v1.1.1)
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:infoand subtype:warningwill be treated as if they were validation errors. Their presence will mean the document is invalid. Defaults tofalse.--filter- A module implementing theVnu.MessageFilterbehavior that will be used to exclude messages matching the filter from the result. Defaults tonil(no excluded messages).--http-client- A module implementing theVnu.HTTPClientbehaviour that will be used to make the HTTP request to the server. Defaults toVnu.HTTPClient.Hackney.
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 http://localhost:8888 priv/static/**/*.html
mix vnu.validate.html --filter MyApp.VnuMessageFilter priv/static/**/*.html