Revision control

Other Tools

1
# Please DO NOT add more third party files to this file.
2
# They should be added to tools/rewriting/ThirdPartyPaths.txt instead.
3
4
# This file should only be used for exclusions where we have:
5
# - preprocessed files
6
# - generated files that are for some reason checked into source
7
# - intentionally invalid files
8
# - build directories and other items that we need to ignore
9
10
# Always ignore node_modules.
11
**/node_modules/
12
13
# Always ignore crashtests - specially crafted files that originally caused a
14
# crash.
15
**/crashtests/
16
# Also ignore reftest - specially crafted to produce expected output.
17
**/reftest/
18
**/reftests/
19
20
# Exclude expected objdirs.
21
obj*/
22
23
# build/ third-party code
24
build/pgo/js-input/
25
26
# browser/ exclusions
27
browser/app/
28
browser/branding/**/firefox-branding.js
29
# Gzipped test file.
30
browser/base/content/test/general/gZipOfflineChild.html
31
browser/base/content/test/urlbar/file_blank_but_not_blank.html
32
# Test files that are really json not js, and don't need to be linted.
33
browser/components/sessionstore/test/unit/data/sessionstore_valid.js
34
browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
35
# This file is split into two in order to keep it as a valid json file
36
# for documentation purposes (policies.json) but to be accessed by the
37
# code as a .jsm (schema.jsm)
38
browser/components/enterprisepolicies/schemas/schema.jsm
39
# generated & special files in cld2
40
browser/components/translation/cld2/
41
# Screenshots is imported as a system add-on and has
42
# their own lint rules currently.
43
browser/extensions/screenshots/
44
browser/extensions/pdfjs/content/build
45
browser/extensions/pdfjs/content/web
46
# generated or library files in pocket
47
browser/components/pocket/content/panels/js/tmpl.js
48
49
# Ignore newtab files
50
browser/components/newtab/data/
51
browser/components/newtab/logs/
52
53
# The only file in browser/locales/ is pre-processed.
54
browser/locales/
55
# Generated data files
56
browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
57
58
# Ignore devtools debugger files which aren't intended for linting, and also
59
# aren't included in any .eslintignore or .prettierignore file.
61
devtools/client/debugger/configs/
62
devtools/client/debugger/dist/
63
devtools/client/debugger/flow-typed/
64
devtools/client/debugger/images/
65
devtools/client/debugger/test/
66
devtools/client/debugger/index.html
67
68
# Ignore devtools imported repositories
69
devtools/client/shared/components/reps/
70
71
# Ignore devtools preferences files
72
devtools/client/preferences/
73
74
# Ignore devtools generated code
75
devtools/shared/css/generated/properties-db.js
76
devtools/client/webconsole/test/node/fixtures/stubs/*.js
77
!devtools/client/webconsole/test/node/fixtures/stubs/index.js
78
79
# Ignore devtools files testing sourcemaps / code style
80
devtools/client/framework/test/code_*
81
devtools/client/inspector/markup/test/events_bundle.js
82
devtools/client/netmonitor/test/xhr_bundle.js
83
devtools/client/webconsole/test/browser/code_bundle_nosource.js
84
devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
85
devtools/server/tests/xpcshell/setBreakpoint*
86
devtools/server/tests/xpcshell/sourcemapped.js
87
88
# Testing syntax error
89
devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
90
91
# devtools specific format test file
92
devtools/server/tests/xpcshell/xpcshell_debugging_script.js
93
94
# Generated
95
dom/canvas/test/webgl-conf/generated/
96
97
# Intentionally invalid/not parsable
98
dom/html/test/test_bug677658.html
99
dom/svg/test/test_nonAnimStrings.xhtml
100
dom/svg/test/test_SVG_namespace_ids.html
101
102
# Strange encodings
103
dom/base/test/file_bug687859-16.js
104
dom/encoding/test/test_utf16_files.html
105
dom/encoding/test/file_utf16_be_bom.js
106
dom/encoding/test/file_utf16_le_bom.js
107
108
# Service workers fixtures which require specific resource caching.
109
dom/base/test/file_js_cache.js
110
dom/serviceworkers/test/file_js_cache.js
111
112
# Intentional broken files
113
dom/base/test/file_js_cache_syntax_error.js
114
dom/base/test/jsmodules/test_syntaxError.html
115
dom/base/test/jsmodules/test_syntaxErrorAsync.html
116
dom/base/test/jsmodules/module_badSyntax.js
117
dom/base/test/jsmodules/test_syntaxErrorInline.html
118
dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
119
dom/base/test/test_bug687859.html
120
dom/media/tests/mochitest/identity/idp-bad.js
121
dom/serviceworkers/test/file_js_cache_syntax_error.js
122
dom/serviceworkers/test/parse_error_worker.js
123
dom/tests/mochitest/bugs/test_bug531176.html
124
dom/webauthn/tests/cbor.js
125
dom/workers/test/importScripts_worker_imported3.js
126
dom/workers/test/invalid.js
127
dom/workers/test/threadErrors_worker1.js
128
129
# Bug 1527075: This directory is linted in github repository
130
intl/l10n/
131
132
# Exclude everything but self-hosted JS
133
js/ductwork/
134
js/examples/
135
js/ipc/
136
js/public/
137
js/xpconnect/
138
js/src/devtools/
139
js/src/jit-test/
140
js/src/jsapi-tests/binast/
141
js/src/tests/
142
js/src/Y.js
143
144
# Uses `#filter substitution`
145
mobile/android/app/mobile.js
146
mobile/android/app/geckoview-prefs.js
147
148
# Not much JS to lint and non-standard at that
149
mobile/android/installer/
150
mobile/android/locales/
151
152
# Pre-processed/pref files
153
modules/libpref/greprefs.js
154
modules/libpref/init/all.js
155
modules/libpref/test/unit/*data/
156
157
# Only contains non-standard test files.
158
python/
159
160
# These are (mainly) imported code that we don't want to lint to make imports easier.
161
remote/Protocol.jsm
162
remote/test/browser/chrome-remote-interface.js
163
164
# services/ exclusions
165
166
# Third party services
167
services/common/kinto-http-client.js
168
services/common/kinto-offline-client.js
169
170
# Webpack-bundled library
171
services/fxaccounts/FxAccountsPairingChannel.js
172
173
# Servo is imported.
174
servo/
175
176
# Test files that we don't want to lint (preprocessed, minified etc)
177
testing/marionette/atom.js
178
testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
179
testing/talos/talos/scripts/jszip.min.js
180
testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
181
testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
182
testing/talos/talos/tests/devtools/addon/content/pages/
183
# Runing Talos may extract data here, see bug 1435677.
184
testing/talos/talos/tests/tp5n/
185
testing/talos/talos/fis/tp5n/
186
187
# Mainly third-party related code, that shouldn't be linted.
188
testing/web-platform/
189
190
# toolkit/ exclusions
191
192
# Ignore generated code from wasm-bindgen
193
toolkit/components/extensions/profiler_get_symbols.js
194
195
# Intentionally invalid JS
196
toolkit/components/workerloader/tests/moduleF-syntax-error.js
197
198
# External code:
199
toolkit/components/reader/Readability.js
200
toolkit/components/reader/JSDOMParser.js
201
202
# Uses preprocessing
203
toolkit/components/reader/Readerable.jsm
204
205
# Uses preprocessing
206
toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
207
toolkit/modules/AppConstants.jsm
208
209
# Tests old non-star function generators
210
toolkit/modules/tests/xpcshell/test_task.js
211
212
# Uses special template formatting.
213
tools/tryselect/selectors/chooser/templates/chooser.html
214
215
# Ignore preprocessed *(P)refs.js files in update-packaging.
216
tools/update-packaging/**/*refs.js