You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ npm i -g node-w3c-validator
21
21
Usage
22
22
23
23
```shell
24
-
node-w3c-validator -i ./dist/ -f html -o ./reports/result.html -s
24
+
node-w3c-validator -i ./dist/*.html -f html -o ./reports/result.html -s
25
25
```
26
26
27
27
### Options
@@ -52,6 +52,18 @@ Specifies the output format for reporting the results
52
52
default: `unset`
53
53
possible values: `gnu | xml | json | text | html`
54
54
55
+
#### `--filterfile <filename>`
56
+
57
+
Specifies a filename. Each line of the file contains either a regular expression or starts with "#" to indicate the line is a comment. Any error message or warning message that matches a regular expression in the file is filtered out (dropped/suppressed)
58
+
59
+
default: `unset`, _checker does no message filtering_
60
+
61
+
#### `--filterpattern <pattern>`
62
+
63
+
Specifies a regular-expression pattern. Any error message or warning message that matches the pattern is filtered out (dropped/suppressed)
64
+
65
+
default: `unset`, _checker does no message filtering_
66
+
55
67
#### `-s, --skip-non-html`
56
68
57
69
Skip documents that don’t have `*.html`, `*.htm`, `*.xhtml`, or `*.xht` extensions.
@@ -155,19 +167,19 @@ Name | Data type | Argument | Description
Copy file name to clipboardExpand all lines: bin/cmd.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@ program
21
21
.option('-a, --asciiquotes','Specifies whether ASCII quotation marks are substituted for Unicode smart quotation marks in messages.')
22
22
.option('-e, --errors-only','Specifies that only error-level messages and non-document-error messages are reported (so that warnings and info messages are not reported)')
23
23
// .option('-q, --exit-zero-always', 'Makes the checker exit zero even if errors are reported for any documents')
24
-
// .option('--filterfile [filename]', 'Specifies a filename. Each line of the file contains either a regular expression or starts with "#" to indicate the line is a comment. Any error message or warning message that matches a regular expression in the file is filtered out (dropped/suppressed)')
25
-
// .option('--filterpattern [pattern]', 'Specifies a regular-expression pattern. Any error message or warning message that matches the pattern is filtered out (dropped/suppressed)')
24
+
.option('--filterfile [filename]','Specifies a filename. Each line of the file contains either a regular expression or starts with "#" to indicate the line is a comment. Any error message or warning message that matches a regular expression in the file is filtered out (dropped/suppressed)')
25
+
.option('--filterpattern [pattern]','Specifies a regular-expression pattern. Any error message or warning message that matches the pattern is filtered out (dropped/suppressed)')
26
26
.option('-f, --format [gnu|xml|json|text|html]','Specifies the output format for reporting the results')
27
27
.option('-s, --skip-non-html','Skip documents that don’t have *.html, *.htm, *.xhtml, or *.xht extensions.')
28
28
.option('-H, --html','Forces any *.xhtml or *.xht documents to be parsed using the HTML parser')
0 commit comments