no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / tools / lint / rejected-words.yml
blob5b5d3d696a45036273a57df1b2a07cfa5e8ae87f
1 ---
2 avoid-blacklist-and-whitelist:
3     description: "Use words like 'skip', 'select', 'allow' or 'deny' instead"
4     level: error
5     include: ['.']
6     type: regex
7     payload: (black|white)[-_]?list
8     ignore-case: true
9     # Based on codespell with idl and webidl added.
10     extensions:
11         - js
12         - jsm
13         - mjs
14         - jxs
15         - idl
16         - webidl
17         - xml
18         - html
19         - xhtml
20         - cpp
21         - c
22         - h
23         - configure
24         - py
25         - properties
26         - rst
27         - md
28         - ftl
29         - yml
30         - java
31         - kt
32     exclude:
33         - '**/.eslintrc.js'
34         - browser/app/profile/firefox.js
35         - browser/app/winlauncher/LauncherProcessWin.cpp
36         - browser/base/content/browser.js
37         - browser/base/content/contentTheme.js
38         - browser/base/content/test/general/browser_remoteTroubleshoot.js
39         - browser/base/content/test/general/browser_tab_drag_drop_perwindow.js
40         - browser/base/content/test/performance/browser_preferences_usage.js
41         - browser/base/content/test/protectionsUI/browser_protectionsUI_cryptominers.js
42         - browser/base/content/test/protectionsUI/browser_protectionsUI_fingerprinters.js
43         - browser/base/content/test/protectionsUI/browser_protectionsUI_pbmode_exceptions.js
44         - browser/base/content/test/protectionsUI/browser_protectionsUI_report_breakage.js
45         - browser/base/content/test/protectionsUI/browser_protectionsUI_socialtracking.js
46         - browser/base/content/test/protectionsUI/browser_protectionsUI_state.js
47         - browser/base/content/test/protectionsUI/browser_protectionsUI_subview_shim.js
48         - browser/base/content/test/siteIdentity/browser_no_mcb_for_loopback.js
49         - browser/base/content/test/tabMediaIndicator/browser_mute_webAudio.js
50         - browser/base/content/test/tabs/browser_new_file_whitelisted_http_tab.js
51         - browser/components/enterprisepolicies/Policies.sys.mjs
52         - browser/components/migration/ChromeMigrationUtils.sys.mjs
53         - browser/components/migration/ChromeProfileMigrator.sys.mjs
54         - browser/components/newtab/data/content/activity-stream.bundle.js
55         - browser/components/preferences/privacy.inc.xhtml
56         - browser/components/preferences/privacy.js
57         - browser/components/resistfingerprinting/test/mochitest/test_bug1354633_media_error.html
58         - browser/components/safebrowsing/content/test/browser_whitelisted.js
59         - browser/components/sessionstore/test/browser_crashedTabs.js
60         - browser/components/uitour/UITourChild.sys.mjs
61         - browser/components/urlbar/tests/browser/browser_searchSingleWordNotification.js
62         - browser/components/urlbar/tests/browser/browser_UrlbarInput_trimURLs.js
63         - browser/components/urlbar/tests/unit/test_providerHeuristicFallback.js
64         - browser/components/urlbar/tests/unit/test_search_suggestions.js
65         - browser/components/urlbar/tests/unit/test_tokenizer.js
66         - browser/extensions/screenshots/background/main.js
67         - browser/extensions/webcompat/shims/nielsen.js
68         - browser/modules/SitePermissions.sys.mjs
69         - browser/tools/mozscreenshots/mozscreenshots/extension/configurations/PermissionPrompts.sys.mjs
70         - build/clang-plugin/CustomMatchers.h
71         - build/clang-plugin/FopenUsageChecker.cpp
72         - build/clang-plugin/NaNExprChecker.cpp
73         - build/clang-plugin/NoPrincipalGetURI.cpp
74         - build/clang-plugin/tests/TestNANTestingExpr.cpp
75         - build/compare-mozconfig/compare-mozconfigs.py
76         - build/moz.configure/bindgen.configure
77         - build/moz.configure/toolchain.configure
78         - config/check_vanilla_allocations.py
79         - devtools/client/debugger/dist/parser-worker.js
80         - devtools/client/debugger/test/mochitest/examples/big-sourcemap_files/bundle.js
81         - devtools/client/debugger/test/mochitest/examples/ember/quickstart/dist/assets/vendor.js
82         - devtools/client/debugger/test/mochitest/examples/react/build/main.js
83         - devtools/client/debugger/test/mochitest/examples/react/build/service-worker.js
84         - devtools/client/inspector/markup/test/lib_babel_6.21.0_min.js
85         - devtools/client/inspector/markup/test/lib_react_dom_15.4.1.js
86         - docshell/base/nsDocShell.cpp
87         - docshell/base/URIFixup.sys.mjs
88         - docshell/test/unit/test_URIFixup_info.js
89         - dom/base/Document.cpp
90         - dom/base/MaybeCrossOriginObject.cpp
91         - dom/base/nsContentUtils.h
92         - dom/base/nsDataDocumentContentPolicy.cpp
93         - dom/base/nsGlobalWindowOuter.cpp
94         - dom/base/nsTreeSanitizer.cpp
95         - dom/base/nsTreeSanitizer.h
96         - dom/base/test/browser_multiple_popups.js
97         - dom/base/test/browser_timeout_throttling_with_audio_playback.js
98         - dom/base/test/chrome/test_permission_hasValidTransientUserActivation.xhtml
99         - dom/bindings/Codegen.py
100         - dom/bindings/parser/WebIDL.py
101         - dom/bindings/RemoteObjectProxy.cpp
102         - dom/events/EventStateManager.cpp
103         - dom/events/KeyboardEvent.cpp
104         - dom/html/MediaError.cpp
105         - dom/indexedDB/ActorsParent.cpp
106         - dom/ipc/ContentParent.cpp
107         - dom/ipc/URLClassifierParent.cpp
108         - dom/media/autoplay/AutoplayPolicy.cpp
109         - dom/media/gmp/GMPChild.cpp
110         - dom/media/MediaManager.cpp
111         - dom/media/mp4/MP4Decoder.cpp
112         - dom/media/platforms/apple/AppleVTDecoder.cpp
113         - dom/media/platforms/wmf/DXVA2Manager.cpp
114         - dom/media/platforms/wmf/WMFVideoMFTManager.cpp
115         - dom/media/autoplay/test/mochitest/file_autoplay_policy_key_blacklist.html
116         - dom/media/autoplay/test/mochitest/test_autoplay_policy_key_blacklist.html
117         - dom/media/autoplay/test/mochitest/test_autoplay_policy_permission.html
118         - dom/media/webm/WebMDecoder.cpp
119         - dom/media/webrtc/transport/stun_socket_filter.cpp
120         - dom/media/webrtc/transport/test/ice_unittest.cpp
121         - dom/tests/mochitest/dom-level0/idn_child.html
122         - dom/tests/mochitest/dom-level0/test_setting_document.domain_idn.html
123         - dom/tests/mochitest/whatwg/test_postMessage_origin.xhtml
124         - gfx/gl/GLContextProviderWGL.cpp
125         - gfx/gl/GLUploadHelpers.cpp
126         - gfx/tests/mochitest/test_font_whitelist.html
127         - gfx/thebes/gfxFT2FontList.cpp
128         - gfx/thebes/gfxPlatformFontList.cpp
129         - gfx/thebes/gfxPlatformFontList.h
130         - gfx/thebes/gfxUserFontSet.cpp
131         - gfx/thebes/gfxWindowsPlatform.cpp
132         - gfx/thebes/SharedFontList.cpp
133         - intl/strres/nsStringBundle.cpp
134         - ipc/glue/GeckoChildProcessHost.cpp
135         - js/src/debugger/DebugAPI.h
136         - js/src/devtools/rootAnalysis/analyzeHeapWrites.js
137         - js/src/jit/CodeGenerator.cpp
138         - js/src/jit-test/tests/auto-regress/bug687399.js
139         - js/src/jit-test/tests/basic/missingArgTest2.js
140         - js/src/tests/non262/regress/regress-450369.js
141         - js/xpconnect/src/Sandbox.cpp
142         - js/xpconnect/src/XPCJSRuntime.cpp
143         - js/xpconnect/src/xpcpublic.h
144         - js/xpconnect/src/XPCWrappedNativeScope.cpp
145         - js/xpconnect/tests/unit/head_watchdog.js
146         - js/xpconnect/wrappers/FilteringWrapper.cpp
147         - js/xpconnect/wrappers/XrayWrapper.cpp
148         - layout/base/PositionedEventTargeting.cpp
149         - layout/base/PresShell.cpp
150         - layout/base/PresShell.h
151         - layout/reftests/css-placeholder/css-restrictions.html
152         - layout/style/test/test_computed_style_difference.html
153         - layout/tools/reftest/mach_commands.py
154         - layout/tools/reftest/mach_test_package_commands.py
155         - layout/tools/reftest/reftestcommandline.py
156         - layout/tools/reftest/runreftest.py
157         - layout/tools/reftest/selftest/conftest.py
158         - mobile/android/app/geckoview-prefs.js
159         - mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareCodecCapabilityUtils.java
160         - mobile/android/geckoview/src/main/java/org/mozilla/geckoview/ContentBlocking.java
161         - mobile/android/geckoview/src/main/java/org/mozilla/geckoview/CrashReporter.java
162         - mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebAuthnTokenManager.java
163         - modules/libpref/Preferences.cpp
164         - modules/libpref/init/all.js
165         - netwerk/base/nsIPermissionManager.idl
166         - netwerk/base/nsIProtocolHandler.idl
167         - netwerk/base/nsIOService.cpp
168         - netwerk/base/nsIURI.idl
169         - netwerk/base/nsURLHelper.cpp
170         - netwerk/cookie/CookieCommons.h
171         - netwerk/dns/nsHostRecord.cpp
172         - netwerk/dns/nsIDNService.cpp
173         - netwerk/dns/nsIIDNService.idl
174         - netwerk/dns/TRR.cpp
175         - netwerk/ipc/DocumentLoadListener.cpp
176         - netwerk/protocol/http/HttpBaseChannel.cpp
177         - netwerk/protocol/http/nsHttpChannel.cpp
178         - netwerk/protocol/http/nsHttpConnectionMgr.cpp
179         - netwerk/protocol/viewsource/nsViewSourceChannel.cpp
180         - netwerk/protocol/websocket/BaseWebSocketChannel.cpp
181         - netwerk/socket/nsSOCKSSocketProvider.cpp
182         - netwerk/test/unit/test_bug464591.js
183         - netwerk/test/unit/test_cookie_blacklist.js
184         - netwerk/test/unit/test_idn_blacklist.js
185         - netwerk/url-classifier/UrlClassifierCommon.cpp
186         - netwerk/url-classifier/UrlClassifierFeatureCryptominingAnnotation.cpp
187         - netwerk/url-classifier/UrlClassifierFeatureCryptominingProtection.cpp
188         - netwerk/url-classifier/UrlClassifierFeatureFingerprintingAnnotation.cpp
189         - netwerk/url-classifier/UrlClassifierFeatureFingerprintingProtection.cpp
190         - netwerk/url-classifier/UrlClassifierFeatureSocialTrackingAnnotation.cpp
191         - netwerk/url-classifier/UrlClassifierFeatureSocialTrackingProtection.cpp
192         - netwerk/url-classifier/UrlClassifierFeatureTrackingAnnotation.cpp
193         - netwerk/url-classifier/UrlClassifierFeatureTrackingProtection.cpp
194         - python/mozbuild/mozbuild/backend/recursivemake.py
195         - python/mozbuild/mozbuild/configure/options.py
196         - python/mozbuild/mozbuild/vendor/vendor_rust.py
197         - remote/cdp/Protocol.sys.mjs
198         - security/manager/ssl/tests/unit/test_intermediate_preloads.js
199         - security/sandbox/linux/broker/SandboxBroker.cpp
200         - security/sandbox/linux/broker/SandboxBroker.h
201         - security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
202         - security/sandbox/linux/glue/SandboxPrefBridge.cpp
203         - security/sandbox/linux/gtest/TestBroker.cpp
204         - security/sandbox/linux/Sandbox.cpp
205         - security/sandbox/linux/SandboxFilter.cpp
206         - security/sandbox/linux/SandboxFilterUtil.h
207         - security/sandbox/linux/Sandbox.h
208         - taskcluster/ci/docker-image/kind.yml
209         - taskcluster/gecko_taskgraph/actions/create_interactive.py
210         - taskcluster/gecko_taskgraph/transforms/test/other.py
211         - taskcluster/gecko_taskgraph/try_option_syntax.py
212         - testing/condprofile/condprof/client.py
213         - testing/condprofile/condprof/tests/profile/prefs.js
214         - testing/condprofile/condprof/tests/test_client.py
215         - testing/firefox-ui/tests/functional/safebrowsing/test_initial_download.py
216         - testing/marionette/client/marionette_driver/wait.py
217         - testing/mochitest/browser-test.js
218         - testing/mochitest/mach_test_package_commands.py
219         - testing/mochitest/mochitest_options.py
220         - testing/mochitest/runtests.py
221         - testing/mozbase/mozprofile/mozprofile/profile.py
222         - testing/mozharness/configs/unittests/linux_unittest.py
223         - testing/mozharness/configs/unittests/mac_unittest.py
224         - testing/mozharness/configs/unittests/win_unittest.py
225         - testing/profiles/unittest-required/user.js
226         - testing/raptor/browsertime/browsertime_scenario.js
227         - testing/web-platform/tests/tools/manifest/tests/test_manifest.py
228         - toolkit/actors/RemotePageChild.sys.mjs
229         - toolkit/actors/WebChannelChild.sys.mjs
230         - toolkit/components/antitracking/test/browser/browser_socialtracking_save_image.js
231         - toolkit/components/reputationservice/ApplicationReputation.cpp
232         - toolkit/components/reputationservice/chromium/chrome/common/safe_browsing/csd.pb.h
233         - toolkit/components/reputationservice/test/unit/head_download_manager.js
234         - toolkit/components/reputationservice/test/unit/test_app_rep.js
235         - toolkit/components/reputationservice/test/unit/test_app_rep_maclinux.js
236         - toolkit/components/reputationservice/test/unit/test_app_rep_windows.js
237         - toolkit/components/satchel/test/test_form_autocomplete.html
238         - toolkit/components/telemetry/docs/data/environment.rst
239         - toolkit/components/url-classifier/nsUrlClassifierUtils.cpp
240         - toolkit/components/url-classifier/SafeBrowsing.sys.mjs
241         - toolkit/components/url-classifier/tests/mochitest/features.js
242         - toolkit/components/url-classifier/tests/mochitest/good.js
243         - toolkit/components/url-classifier/tests/mochitest/test_annotation_vs_TP.html
244         - toolkit/components/url-classifier/tests/mochitest/test_classified_annotations.html
245         - toolkit/components/url-classifier/tests/mochitest/test_classify_by_default.html
246         - toolkit/components/url-classifier/tests/mochitest/test_classify_ping.html
247         - toolkit/components/url-classifier/tests/mochitest/test_cryptomining_annotate.html
248         - toolkit/components/url-classifier/tests/mochitest/test_cryptomining.html
249         - toolkit/components/url-classifier/tests/mochitest/test_fingerprinting_annotate.html
250         - toolkit/components/url-classifier/tests/mochitest/test_fingerprinting.html
251         - toolkit/components/url-classifier/tests/mochitest/test_safebrowsing_bug1272239.html
252         - toolkit/components/url-classifier/tests/mochitest/test_socialtracking_annotate.html
253         - toolkit/components/url-classifier/tests/mochitest/test_socialtracking.html
254         - toolkit/components/url-classifier/tests/mochitest/test_trackingprotection_bug1580416.html
255         - toolkit/components/url-classifier/tests/mochitest/test_trackingprotection_whitelist.html
256         - toolkit/components/url-classifier/tests/unit/head_urlclassifier.js
257         - toolkit/components/url-classifier/tests/unit/test_digest256.js
258         - toolkit/components/url-classifier/tests/unit/test_platform_specific_threats.js
259         - toolkit/components/url-classifier/tests/UrlClassifierTestUtils.sys.mjs
260         - toolkit/content/aboutTelemetry.js
261         - toolkit/content/tests/browser/browser_delay_autoplay_webAudio.js
262         - toolkit/modules/PermissionsUtils.sys.mjs
263         - toolkit/modules/tests/browser/browser_AsyncPrefs.js
264         - toolkit/modules/tests/browser/browser_web_channel.js
265         - toolkit/modules/tests/xpcshell/test_PermissionsUtils.js
266         - toolkit/modules/third_party/jsesc/jsesc.mjs
267         - toolkit/modules/Troubleshoot.sys.mjs
268         - toolkit/mozapps/extensions/internal/XPIInstall.sys.mjs
269         - toolkit/mozapps/extensions/test/browser/browser_html_discover_view.js
270         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Device.js
271         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_DriverNew.js
272         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Equal_DriverNew.js
273         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Equal_DriverOld.js
274         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Equal_OK.js
275         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_GTE_DriverOld.js
276         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_GTE_OK.js
277         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_No_Comparison.js
278         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OK.js
279         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OS.js
280         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OSVersion_match.js
281         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OSVersion_mismatch_DriverVersion.js
282         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_OSVersion_mismatch_OSVersion.js
283         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_prefs.js
284         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Vendor.js
285         - toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_gfxBlacklist_Version.js
286         - toolkit/mozapps/extensions/test/xpcshell/test_permissions.js
287         - toolkit/mozapps/extensions/test/xpcshell/test_permissions_prefs.js
288         - toolkit/mozapps/extensions/test/xpinstall/browser_bug645699.js
289         - toolkit/mozapps/extensions/test/xpinstall/browser_doorhanger_installs.js
290         - toolkit/mozapps/extensions/test/xpinstall/browser_localfile3.js
291         - toolkit/mozapps/extensions/test/xpinstall/browser_localfile4.js
292         - toolkit/mozapps/extensions/test/xpinstall/browser_localfile4_postDownload.js
293         - toolkit/mozapps/extensions/test/xpinstall/head.js
294         - tools/fuzzing/messagemanager/MessageManagerFuzzer.cpp
295         - tools/fuzzing/messagemanager/MessageManagerFuzzer.h
296         - tools/lint/eslint/eslint-plugin-mozilla/lib/rules/no-define-cc-etc.js
297         - tools/lint/rejected-words.yml
298         - widget/android/GfxInfo.cpp
299         - widget/GfxInfoBase.cpp
300         - widget/gtk/IMContextWrapper.cpp
301         - widget/gtk/nsAppShell.cpp
302         - widget/windows/GfxInfo.cpp
303         - widget/windows/WinUtils.cpp
304         - widget/windows/WinUtils.h
305         - xpcom/io/FilePreferences.cpp
306         - xpcom/tests/gtest/TestFilePreferencesUnix.cpp
308 # ---
309 # Disable for now. Needs some dev to handle this
310 # avoid-master-and-slave:
311 #    description: "Use words like 'controller', 'worker' instead"
313 avoid-gobbledygook:
314     description: "American English colloquialism. Use 'nonsense' instead."
315     level: error
316     include: ['.']
317     type: regex
318     payload: \b(gobbledy)?-?gook
319     ignore-case: true
320     exclude:
321         - extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US-custom.dic
322         - extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/utf8/en-US-utf8.dic
323         - extensions/spellcheck/locales/en-US/hunspell/en-US.dic
324         - tools/lint/rejected-words.yml