summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/lint.whitelist
blob: 9b358b0db15207f577c0bcdeeafbf11f23461a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File containing whiteslist for lint errors
# Format is:
# ERROR TYPE:file/name/pattern[:line number]
# e.g.
# TRAILING WHITESPACE:example/file.html:128
# to allow trailing whitespace on example/file.html line 128

## Whitespace rules that we can't enforce yet ##

CR AT EOL: svg/import/*

INDENT TABS: .gitmodules
INDENT TABS: app-uri/*
INDENT TABS: conformance-checkers/*
INDENT TABS: content-security-policy/*
INDENT TABS: custom-elements/*
INDENT TABS: html/editing/dnd/*
INDENT TABS: old-tests/*
INDENT TABS: pointerlock/*
INDENT TABS: shadow-dom/*
INDENT TABS: svg/import/*
INDENT TABS: tools/*
INDENT TABS: touch-events/*
INDENT TABS: web-animations/*
INDENT TABS: webaudio/*
INDENT TABS: webvtt/*
INDENT TABS: XMLHttpRequest/*
INDENT TABS: encoding/legacy*/*
INDENT TABS: encrypted-media/polyfill/Makefile

TRAILING WHITESPACE: app-uri/*
TRAILING WHITESPACE: battery-status/*
TRAILING WHITESPACE: conformance-checkers/*
TRAILING WHITESPACE: content-security-policy/*
TRAILING WHITESPACE: custom-elements/*
TRAILING WHITESPACE: html-longdesc/*
TRAILING WHITESPACE: microdata/*
TRAILING WHITESPACE: old-tests/*
TRAILING WHITESPACE: pointerevents/*
TRAILING WHITESPACE: progress-events/*
TRAILING WHITESPACE: shadow-dom/*
TRAILING WHITESPACE: svg/import/*
TRAILING WHITESPACE: tools/*
TRAILING WHITESPACE: webaudio/*
TRAILING WHITESPACE: WebIDL/*
TRAILING WHITESPACE: webvtt/*
TRAILING WHITESPACE: XMLHttpRequest/*
TRAILING WHITESPACE: encoding/legacy*/*

## File types that should never be checked ##

*:*.pdf
*:*.jpg
*:*.png
*:*.gif
*:*.pdf
*:*.wav
*:*.mp3
*:*.m4a
*:*.oga
*:*.ogv
*:*.webm
*:*.mp4
*:*.m4v
*:*.ttf
*:*.woff
*:*.eot
*:*.sfd
*:*.swf

## Documentation ##

W3C-TEST.ORG:README.md
W3C-TEST.ORG:*/README.md
W3C-TEST.ORG:docs/*

## Helper scripts ##

W3C-TEST.ORG:tools/*
PRINT STATEMENT:tools/*
W3C-TEST.ORG:*/tools/*
PRINT STATEMENT:*/tools/*

### Test exclusions ##

CR AT EOL:WebIDL/valid/idl/documentation-dos.widl
CR AT EOL:cors/resources/cors-headers.asis
CR AT EOL:html/semantics/embedded-content/the-canvas-element/size.attributes.parse.whitespace.html
INDENT TABS:html/semantics/embedded-content/the-canvas-element/size.attributes.parse.whitespace.html
CR AT EOL:webvtt/webvtt-file-format-parsing/webvtt-file-parsing/support/newlines.vtt
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/empty.svg
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/empty.xhtml
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/minimal_html.svg
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/minimal_html.xhtml

# These have undefined entities; should probably find a way to define them
PARSE-FAILED:ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.xhtml
PARSE-FAILED:ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-2.xhtml
PARSE-FAILED:ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-3.xhtml

# Test generation files containing print statements
PRINT STATEMENT:dom/nodes/Document-createElement-namespace-tests/generate.py
PRINT STATEMENT:encrypted-media/polyfill/make-polyfill-tests.py

# Should probably be fixed.
W3C-TEST.ORG:subresource-integrity/refresh-header.js.headers

# semi-legitimate use of console.*
CONSOLE:streams/resources/test-utils.js
CONSOLE:service-workers/service-worker/resources/navigation-redirect-other-origin.html
CONSOLE:service-workers/service-worker/navigation-redirect.https.html
CONSOLE:service-workers/service-worker/resources/clients-get-other-origin.html

# use of console in a public library - annotation-model ensures
# it is not actually used
CONSOLE:annotation-model/scripts/ajv.min.js
CONSOLE:annotation-model/scripts/showdown.min.js
CR AT EOL: annotation-model/scripts/showdown.min.js

# use of console in a public library - annotation-protocol ensures
# it is not actually used
CONSOLE:annotation-protocol/scripts/uuid.js

# Lint doesn't know about sub.svg I guess
PARSE-FAILED:content-security-policy/svg/including.sub.svg

#Helper files that aren't valid XML
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/empty.xml
PARSE-FAILED:dom/nodes/Document-createElement-namespace-tests/minimal_html.xml

# The patches may have trailing whitespace
TRAILING WHITESPACE:webgl/tools/*.patch
# The tests under this directory are not done by us
*:webgl/conformance-1.0.3/*


# Git submodules are not currently scanned
*:tools/*
*:resources/*