Bug 1942006 - Upstream a variety of Servo-specific code from Servo's downstream fork...
[gecko.git] / .hgignore
blob1f04e23bea9ee5ba82afa1a68b90e2ec4465a3b5
1 # .hgignore - List of filenames hg should ignore
3 # See docs/code-quality/lint/linters/ignorefile.rst for lint-ignore-next-line
4 # syntax.
6 # Filenames that should be ignored wherever they appear
7 ~$
8 \.pyc$
9 \.pyo$
10 (^|/)TAGS$
11 (^|/)tags$
12 (^|/)\.DS_Store$
13 \.pdb$
14 (^|/)\.eslintcache$
15 \.gcda$
16 \.gcno$
17 \.gcov$
18 (^|/)compile_commands\.json$
20 # Ignore ID generated by idutils.
21 (^|/)ID$
23 # Generated by hg or patch (e.g. revert, failed patch, ...)
24 \.orig$
25 \.rej$
27 # Filesystem temporaries
28 (^|/)\.fuse_hidden.*$
30 # Ignore Python .egg-info directories.
31 # This is only relevant for first-party modules, but adding that directory for
32 # third-party packages is dealt with by the script vendoring them.
33 .*\.egg-info/
35 # Vim swap files.
36 ^\.sw[a-z]$
37 \.[^/]*\.sw[a-z]$
39 # Emacs directory variable files.
40 \.dir-locals\.el
41 # Emacs project sentinel files.
42 \.projectile
44 # User files that may appear at the root
45 ^\.clang-tidy
46 ^\.clangd
47 ^\.mozconfig
48 ^mozconfig*
49 ^\.moz-fast-forward
50 ^\.moz-vendoring
51 ^old-configure$
52 ^config\.cache$
53 ^config\.log$
54 ^\.clang_complete
55 ^machrc$
56 ^\.machrc$
58 # pyenv artifact
59 ^\.python-version$
61 # Empty marker file that's generated when we check out NSS
62 ^security/manager/\.nss\.checkout$
64 # Build directories
65 ^obj.*/
67 # gecko.log is generated by various test harnesses
68 ^gecko\.log$
70 # Ignore all node_modules directories except for ones under third_party
71 ^node_modules/
72 ^devtools/.*/node_modules/
73 ^tools/browsertime/node_modules/
74 ^tools/lint/eslint/eslint-plugin-mozilla/node_modules/
75 ^browser/components/asrouter/node_modules/
76 ^browser/components/newtab/node_modules/
77 ^browser/components/aboutwelcome/node_modules/
78 ^tools/ts/node_modules/
80 # Ignore newtab component build assets
81 ^browser/components/newtab/logs/
83 # Ignore about:welcome component build assets
84 ^browser/components/aboutwelcome/logs/
86 # Ignore ASRouter component build assets
87 ^browser/components/asrouter/logs/
89 # Ignore ASRouter generated test files
90 ^browser/components/asrouter/content-src/schemas/corpus/CFRMessageProvider\.messages\.json
91 ^browser/components/asrouter/content-src/schemas/corpus/OnboardingMessageProvider\.messages\.json
92 ^browser/components/asrouter/content-src/schemas/corpus/PanelTestProvider\.messages\.json
93 ^browser/components/asrouter/content-src/schemas/corpus/PanelTestProvider_toast_notification\.messages\.json
95 # Ignore Pocket component build and dev assets
96 ^browser/components/pocket/content/panels/css/main\.compiled\.css\.map
98 # Ignore downloaded thirdparty build artifacts.
99 ^toolkit/components/translations/bergamot-translator/thirdparty
101 # Build directories for js shell
102 _DBG\.OBJ/
103 _OPT\.OBJ/
104 ^js/src/.*-obj/
105 ^js/src/obj-.*/
107 # SpiderMonkey configury
108 ^js/src/old-configure$
109 ^js/src/autom4te\.cache$
111 # SpiderMonkey test result logs
112 ^js/src/tests/results-.*\.html$
113 ^js/src/tests/results-.*\.txt$
114 ^js/src/devtools/rootAnalysis/t/out
116 # SpiderMonkey wasm/generate-spectests artifacts
117 ^js/src/jit-test/etc/wasm/generate-spectests/specs/
118 ^js/src/jit-test/etc/wasm/generate-spectests/tests/
119 ^js/src/jit-test/etc/wasm/generate-spectests/target/
121 # Java HTML5 parser classes
122 ^parser/html/java/htmlparser/
123 ^parser/html/java/javaparser/
124 ^parser/html/java/javaparser\.jar$
125 ^parser/html/java/translator\.jar$
127 # SVN directories
128 \.svn/
130 # Ignore the files and directory that Eclipse IDE creates
131 \.project$
132 \.cproject$
133 \.settings/
135 # Ignore the files and directory that JetBrains IDEs create.
136 \.idea/
137 \.iml$
139 # Android Monitor in Android Studio creates a captures/ directory.
140 ^captures/
142 # Gradle cache.
143 ^\.gradle/
145 # Local Gradle configuration properties.
146 ^local\.properties$
148 # Git repositories
149 # lint-ignore-next-line: hg-only
150 \.git/
152 # Ignore chrome.manifest files from the devtools loader
153 ^devtools/client/chrome\.manifest$
154 ^devtools/shared/chrome\.manifest$
156 # Ignore debugger build directories
157 ^devtools/client/debugger/assets/build
158 ^devtools/client/debugger/assets/module-manifest\.json
160 # Ignore node_module directories and npm artifacts
161 ^remote/test/puppeteer/.*/.*\.tsbuildinfo
162 ^remote/test/puppeteer/.*/lib/
163 ^remote/test/puppeteer/.*/node_modules/
164 ^remote/test/puppeteer/.*/\.wireit/
165 ^remote/test/puppeteer/\.devcontainer/
166 ^remote/test/puppeteer/\.github
167 ^remote/test/puppeteer/\.husky
168 ^remote/test/puppeteer/\.wireit/
169 ^remote/test/puppeteer/coverage/
170 ^remote/test/puppeteer/docker/
171 ^remote/test/puppeteer/docs/puppeteer-core\.api\.json
172 ^remote/test/puppeteer/docs/puppeteer\.api\.json
173 ^remote/test/puppeteer/experimental/
174 ^remote/test/puppeteer/lib/
175 ^remote/test/puppeteer/node_modules/
176 ^remote/test/puppeteer/package-lock\.json
177 ^remote/test/puppeteer/packages/ng-schematics/test/build
178 ^remote/test/puppeteer/packages/puppeteer/.*/README\.md
179 ^remote/test/puppeteer/packages/puppeteer-core/src/generated
180 ^remote/test/puppeteer/packages/puppeteer-core/.*/README\.md
181 ^remote/test/puppeteer/src/generated
182 ^remote/test/puppeteer/test/build
183 ^remote/test/puppeteer/test/installation/puppeteer.*\.tgz
184 ^remote/test/puppeteer/test/output-firefox
185 ^remote/test/puppeteer/test/output-chromium
186 ^remote/test/puppeteer/testserver/lib/
187 ^remote/test/puppeteer/tools/doctest/bin/
188 ^remote/test/puppeteer/tools/internal/
189 ^remote/test/puppeteer/tools/mocha-runner/bin/
190 ^remote/test/puppeteer/website
192 ^third_party/js/PKI\.js/node_modules/
193 ^third_party/js/PKI\.js/package-lock\.json
195 # git checkout of libstagefright
196 ^media/libstagefright/android$
198 # Tag files generated by GNU Global
199 (^|/)GTAGS$
200 (^|/)GRTAGS$
201 (^|/)GSYMS$
202 (^|/)GPATH$
204 # Git clone directory for updating web-platform-tests
205 ^testing/web-platform/sync/
207 # Third party metadata for web-platform-tests
208 ^testing/web-platform/products/
210 # Android Gradle artifacts.
211 ^mobile/android/gradle/\.gradle
213 # Android build cache
214 ^mobile/android/.*/.build-cache
215 ^mobile/android/.*/.gradle
216 ^mobile/android/.*/build
217 ^mobile/android/.*/bin
218 ^mobile/android/.*/generated
220 # Android local.properties
221 ^mobile/android/.*/local.properties
223 # Android - Web extensions: manifest.json files are generated
224 ^mobile/android/.*/manifest.json
226 # XCode project cruft
227 ^[^/]*\.xcodeproj/
229 # Rust/Cargo output from running `cargo` directly
230 ^target/
231 ^servo/ports/geckolib/target/
232 ^dom/base/rust/target/
233 ^servo/components/style/target/
234 ^dom/webgpu/tests/cts/vendor/target/
236 # Ignore mozharness execution files
237 ^testing/mozharness/\.tox/
238 ^testing/mozharness/build/
239 ^testing/mozharness/logs/
240 ^testing/mozharness/\.coverage
241 ^testing/mozharness/nosetests\.xml
243 # Ignore tox generated dir
244 \.tox/
246 # Ignore talos virtualenv and tp5n files.
247 # The tp5n set is supposed to be decompressed at
248 # testing/talos/talos/fis|tests/tp5n in order to run tests like tps
249 # locally. Similarly, running talos requires a Python package virtual
250 # environment. Both the virtual environment and tp5n files end up littering
251 # the status command, so we ignore them.
252 ^testing/talos/\.Python
253 ^testing/talos/bin/
254 ^testing/talos/include/
255 ^testing/talos/lib/
256 ^testing/talos/talos/fis/tp5n\.zip
257 ^testing/talos/talos/fis/tp5n\.tar\.gz
258 ^testing/talos/talos/fis/tp5n
259 ^testing/talos/talos/tests/tp5n\.zip
260 ^testing/talos/talos/tests/tp5n\.tar\.gz
261 ^testing/talos/talos/tests/tp5n
262 ^testing/talos/talos/tests/pdfpaint/pdfs
263 ^testing/talos/talos/tests/devtools/damp\.manifest\.develop
264 ^testing/talos/talos/startup_test/startup_about_home_paint/startup_about_home_paint\.manifest\.develop
265 ^testing/talos/talos/webextensions/
266 ^talos-venv
267 ^py3venv
268 ^testing/talos/talos/mitmproxy/mitmdump
269 ^testing/talos/talos/mitmproxy/mitmproxy
270 ^testing/talos/talos/mitmproxy/mitmweb
272 # Ignore talos webkit benchmark files; source is copied from in-tree /third_party
273 # into testing/talos/talos/tests/webkit/PerformanceTests/ when run locally
274 # i.e. speedometer, motionmark, stylebench
275 ^testing/talos/talos/tests/webkit/PerformanceTests
277 # Ignore sync tps logs and reports
278 tps\.log$
279 tps_result\.json$
281 # Ignore toolchains.json created by tooltool.
282 ^toolchains\.json$
284 # Unit test
285 \.pytest_cache/
287 # Ruff
288 \.ruff_cache/
290 # Ignore files created when running a reftest.
291 ^lextab\.py$
293 # Ignore Visual Studio/Visual Studio Code workspace files.
294 \.vs/
295 \.vscode/
296 \.user$
298 # Thunderbird source tree
299 ^comm/
301 # Ignore various raptor performance framework files
302 ^testing/raptor/\.raptor-venv
303 ^testing/raptor/raptor-venv
304 ^testing/raptor/raptor/tests/json/
305 ^testing/raptor/webext/raptor/auto_gen_test_config\.js
307 # Ignore condprofile build directory
308 ^testing/condprofile/build
310 # Ignore browsertime output directory
311 ^browsertime-results
313 # Ignore the build directories of WebGPU and WebRender standalone builds.
314 ^gfx/wgpu/target
315 ^gfx/wgpu/.*/build
316 ^gfx/wr/target/
318 # Ignore Rust/Cargo output from running `cargo` directly for image_builder docker image
319 ^taskcluster/docker/image_builder/build-image/target
321 # Ignore ICU4X experimentation data files.
322 # See intl/ICU4X.md for more details.
323 ^config/external/icu4x
325 # Ignore the index files generated by clangd.
326 ^\.cache/clangd/index/
328 # Ignore mypy files
329 \.mypy_cache/
331 # Ignore Storybook generated files
332 ^browser/components/storybook/node_modules/
333 ^browser/components/storybook/storybook-static/
334 ^browser/components/storybook/\.storybook/chrome-map\.js
335 ^browser/components/storybook/custom-elements\.json
337 # Ignore design-system node_modules
338 toolkit/themes/shared/design-system/node_modules/
340 # Ignore TypeScript declarations reference file updated by tooling.
341 ^tools/@types/index.d.ts
343 # Ignore support files for en-US dictionary updates
344 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/scowl
345 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/support_files/
346 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/.*en_US-mozilla.*
348 # Ignore automatically generated mots documentation
349 ^docs/mots/index\.rst
351 # Ignore generated directory with .class files for GeckoView annotation processor
352 ^mobile/android/annotations/bin/
354 # Ignore generated log files under media/libvpx
355 ^media/libvpx/config/.*/config.log
357 # Ignore generated files resulting from building the minidump analyzer tests.
358 ^toolkit/crashreporter/minidump-analyzer/analyzer-test/target/