2019-12-23 05:43:54 +08:00
|
|
|
# Run rustfmt with this config (it should be picked up automatically).
|
2019-05-04 02:35:21 +08:00
|
|
|
version = "Two"
|
|
|
|
use_small_heuristics = "Max"
|
2019-12-23 05:43:54 +08:00
|
|
|
merge_derives = false
|
2019-10-29 23:33:11 +08:00
|
|
|
|
|
|
|
# by default we ignore everything in the repository
|
|
|
|
# tidy only checks files which are not ignored, each entry follows gitignore style
|
|
|
|
ignore = [
|
2020-02-01 00:09:34 +08:00
|
|
|
"build",
|
2020-02-11 11:08:24 +08:00
|
|
|
"/vendor/",
|
2020-02-01 00:09:34 +08:00
|
|
|
|
2019-12-23 05:43:54 +08:00
|
|
|
# tests for now are not formatted, as they are sometimes pretty-printing constrained
|
|
|
|
# (and generally rustfmt can move around comments in UI-testing incompatible ways)
|
|
|
|
"src/test",
|
|
|
|
|
2019-10-29 23:33:11 +08:00
|
|
|
# do not format submodules
|
|
|
|
"src/doc/book",
|
|
|
|
"src/doc/edition-guide",
|
|
|
|
"src/doc/embedded-book",
|
|
|
|
"src/doc/nomicon",
|
|
|
|
"src/doc/reference",
|
|
|
|
"src/doc/rust-by-example",
|
|
|
|
"src/doc/rustc-guide",
|
|
|
|
"src/llvm-project",
|
|
|
|
"src/stdarch",
|
|
|
|
"src/tools/cargo",
|
|
|
|
"src/tools/clippy",
|
|
|
|
"src/tools/miri",
|
|
|
|
"src/tools/rls",
|
|
|
|
"src/tools/rust-installer",
|
|
|
|
"src/tools/rustfmt",
|
2019-12-25 05:21:26 +08:00
|
|
|
|
|
|
|
# We do not format this file as it is externally sourced and auto-generated.
|
|
|
|
"src/libstd/sys/cloudabi/abi/cloudabi.rs",
|
2019-10-29 23:33:11 +08:00
|
|
|
]
|