rust/rustfmt.toml

37 lines
1.1 KiB
TOML
Raw Normal View History

# Run rustfmt with this config (it should be picked up automatically).
version = "Two"
use_small_heuristics = "Max"
merge_derives = false
# by default we ignore everything in the repository
# tidy only checks files which are not ignored, each entry follows gitignore style
ignore = [
2020-01-31 16:09:34 +00:00
"build",
2020-02-11 03:08:24 +00:00
"/vendor/",
2020-01-31 16:09:34 +00: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",
# do not format submodules
2020-06-12 02:31:49 +00:00
"library/stdarch",
"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-dev-guide",
"src/llvm-project",
"src/tools/cargo",
"src/tools/clippy",
"src/tools/miri",
"src/tools/rls",
"src/tools/rust-analyzer",
"src/tools/rustfmt",
2020-06-12 02:31:49 +00:00
"src/tools/rust-installer",
# We do not format this file as it is externally sourced and auto-generated.
2020-06-12 02:31:49 +00:00
"library/std/src/sys/cloudabi/abi/cloudabi.rs",
]