blob: 998bcb98354093a53bcb031808b3b5939166d078 [file] [log] [blame]
Mark Rousskov8eb7c582019-12-22 21:43:541# Run rustfmt with this config (it should be picked up automatically).
Aleksey Kladovce394612019-05-03 18:35:212version = "Two"
3use_small_heuristics = "Max"
Mark Rousskov8eb7c582019-12-22 21:43:544merge_derives = false
Adam Perry8369a1a2019-10-29 15:33:115
Nicholas Nethercotef1b0ca02024-05-28 00:03:006# Files to ignore. Each entry uses gitignore syntax, but `!` prefixes aren't allowed.
Adam Perry8369a1a2019-10-29 15:33:117ignore = [
Mark Rousskovd5b760b2021-01-09 17:00:458 "/build/",
Rich Kadel79020a82021-04-24 21:12:229 "/*-build/",
10 "/build-*/",
Eric Huss6575abc2020-02-11 03:08:2411 "/vendor/",
Jonas Schievink08e85aa2020-01-31 16:09:3412
Nicholas Nethercotec9c80d22024-06-03 00:18:3313 # Some tests are not formatted, for various reasons.
Nicholas Nethercote72800d32024-05-29 04:11:2014 "/tests/codegen/simd-intrinsic/", # Many types like `u8x64` are better hand-formatted.
Nicholas Nethercotec9c80d22024-06-03 00:18:3315 "/tests/crashes/", # Many of these tests contain syntax errors.
16 "/tests/debuginfo/", # These tests are somewhat sensitive to source code layout.
17 "/tests/incremental/", # These tests are somewhat sensitive to source code layout.
Nicholas Nethercote4af4ba22024-05-29 03:49:2318 "/tests/pretty/",
Nicholas Nethercotec9c80d22024-06-03 00:18:3319 "/tests/run-make/translation/test.rs", # This test contains syntax errors.
Nicholas Nethercote4af4ba22024-05-29 03:49:2320 "/tests/run-make-fulldeps/",
21 "/tests/run-pass-valgrind/",
22 "/tests/rustdoc/",
23 "/tests/rustdoc-gui/",
24 "/tests/rustdoc-js/",
25 "/tests/rustdoc-json/",
26 "/tests/rustdoc-js-std/",
27 "/tests/rustdoc-ui/",
28 "/tests/ui/",
29 "/tests/ui-fulldeps/",
Mark Rousskov8eb7c582019-12-22 21:43:5430
Nicholas Nethercote4702a1c2024-05-28 00:36:3731 # Do not format submodules.
klensyf3d92482023-06-23 07:34:0632 # FIXME: sync submodule list with tidy/bootstrap/etc
33 # tidy/src/walk.rs:filter_dirs
Alex Crichton06d565c2020-05-13 21:22:3734 "library/backtrace",
Jubilee Young39cb8632021-10-22 07:12:0035 "library/portable-simd",
mark2c31b452020-06-12 02:31:4936 "library/stdarch",
Antoni Boucher8841e9e2021-07-19 23:08:0837 "compiler/rustc_codegen_gcc",
Adam Perry8369a1a2019-10-29 15:33:1138 "src/doc/book",
39 "src/doc/edition-guide",
40 "src/doc/embedded-book",
41 "src/doc/nomicon",
42 "src/doc/reference",
43 "src/doc/rust-by-example",
Santiago Pastorino4387a8b2020-03-10 20:22:2544 "src/doc/rustc-dev-guide",
Adam Perry8369a1a2019-10-29 15:33:1145 "src/llvm-project",
Adam Perry8369a1a2019-10-29 15:33:1146 "src/tools/cargo",
47 "src/tools/clippy",
48 "src/tools/miri",
Aleksey Kladov058c1b62020-06-04 11:11:1549 "src/tools/rust-analyzer",
Bernardo Meurer Costae2870442024-05-14 18:47:1550 "src/tools/rustc-perf",
Adam Perry8369a1a2019-10-29 15:33:1151 "src/tools/rustfmt",
bjorn3bffe8802021-12-30 14:04:4752
Nicholas Nethercote4702a1c2024-05-28 00:36:3753 # These are ignored by a standard cargo fmt run.
bjorn3bffe8802021-12-30 14:04:4754 "compiler/rustc_codegen_cranelift/scripts",
bjorn3b7bc8d52023-11-23 20:02:4555 "compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs", # uses edition 2024
Adam Perry8369a1a2019-10-29 15:33:1156]