Webperf-se / webperf_core

webperf-core is an open-source testing suite tailored to help you improve your digital presence in areas like web performance, security and accessibility to email best practice using many small improvements.
https://webperf.se/articles/webperf-core/
MIT License
19 stars 31 forks source link

Test HTML Validation - Make it possible to use local #96

Closed 7h3Rabbit closed 2 years ago

7h3Rabbit commented 2 years ago

HTML

--skip-non-html

Skip documents that don’t have .html, .htm, .xhtml, or .xht extensions.

default: [unset; all documents found are checked, regardless of extension]

--html

Forces any .xhtml or .xht documents to be parsed using the HTML parser.

default: [unset; XML parser is used for .xhtml and .xht documents]

--exit-zero-always

Makes the checker exit zero even if errors are reported for any documents.

default: [unset; checker exits 1 if errors are reported for any documents]

--user-agent USER_AGENT

Specifies the value of the User-Agent request header to send when checking HTTPS/HTTP URLs.

default: "Validator.nu/LV"

--filterpattern REGEXP

Specifies a regular expression. Any error message or warning message that matches the regular expression is filtered out (dropped/suppressed).

As with all other checker options, this option may only be specified once. So to filter multiple error messages or warning messages, you must provide a single regular expression that will match all the messages. The typical way to do that for regular expressions is to OR multiple patterns together using the "|" character.

default: [unset; checker does no message filtering]

--errors-only

Specifies that only error-level messages and non-document-error messages are reported (so that warnings and info messages are not reported).

default: [unset; all messages reported, including warnings & info messages]

7h3Rabbit commented 2 years ago

Solved and closed