blob: cb689098f8989c24f6bdde40edae6f1b5ac787cd [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
6# by default we ignore everything in the repository
7# tidy only checks files which are not ignored, each entry follows gitignore style
8ignore = [
Jonas Schievink08e85aa2020-01-31 16:09:349 "build",
Eric Huss6575abc2020-02-11 03:08:2410 "/vendor/",
Jonas Schievink08e85aa2020-01-31 16:09:3411
Mark Rousskov8eb7c582019-12-22 21:43:5412 # tests for now are not formatted, as they are sometimes pretty-printing constrained
13 # (and generally rustfmt can move around comments in UI-testing incompatible ways)
14 "src/test",
15
Adam Perry8369a1a2019-10-29 15:33:1116 # do not format submodules
mark2c31b452020-06-12 02:31:4917 "library/stdarch",
Adam Perry8369a1a2019-10-29 15:33:1118 "src/doc/book",
19 "src/doc/edition-guide",
20 "src/doc/embedded-book",
21 "src/doc/nomicon",
22 "src/doc/reference",
23 "src/doc/rust-by-example",
Santiago Pastorino4387a8b2020-03-10 20:22:2524 "src/doc/rustc-dev-guide",
Adam Perry8369a1a2019-10-29 15:33:1125 "src/llvm-project",
Adam Perry8369a1a2019-10-29 15:33:1126 "src/tools/cargo",
27 "src/tools/clippy",
28 "src/tools/miri",
29 "src/tools/rls",
Aleksey Kladov058c1b62020-06-04 11:11:1530 "src/tools/rust-analyzer",
Adam Perry8369a1a2019-10-29 15:33:1131 "src/tools/rustfmt",
mark2c31b452020-06-12 02:31:4932 "src/tools/rust-installer",
Mark Rousskov48291a92019-12-24 21:21:2633
34 # We do not format this file as it is externally sourced and auto-generated.
mark2c31b452020-06-12 02:31:4935 "library/std/src/sys/cloudabi/abi/cloudabi.rs",
Adam Perry8369a1a2019-10-29 15:33:1136]