2019-05-03 13:35:21 -05:00
|
|
|
# Currently, most of the code in the compiler uses historical style.
|
|
|
|
#
|
|
|
|
# For new code, consider running rustfmt with this config (it should
|
|
|
|
# be picked up automatically).
|
|
|
|
version = "Two"
|
|
|
|
use_small_heuristics = "Max"
|
2019-10-29 10:33:11 -05:00
|
|
|
|
|
|
|
# by default we ignore everything in the repository
|
|
|
|
# tidy only checks files which are not ignored, each entry follows gitignore style
|
|
|
|
ignore = [
|
|
|
|
# remove directories below, or opt out their subdirectories, as they are formatted
|
|
|
|
"src/bootstrap/",
|
|
|
|
"src/build_helper/",
|
|
|
|
"src/liballoc/",
|
|
|
|
"src/libarena/",
|
|
|
|
"src/libcore/",
|
|
|
|
"src/libfmt_macros/",
|
|
|
|
"src/libgraphviz/",
|
|
|
|
"src/libpanic_abort/",
|
|
|
|
"src/libpanic_unwind/",
|
|
|
|
"src/libproc_macro/",
|
|
|
|
"src/libprofiler_builtins/",
|
|
|
|
"src/librustc/",
|
|
|
|
"src/librustc_apfloat/",
|
|
|
|
"src/librustc_asan/",
|
|
|
|
"src/librustc_codegen_llvm/",
|
|
|
|
"src/librustc_codegen_ssa/",
|
|
|
|
"src/librustc_codegen_utils/",
|
|
|
|
"src/librustc_data_structures/",
|
|
|
|
"src/librustc_driver/",
|
|
|
|
"src/librustc_errors/",
|
|
|
|
"src/librustc_feature/",
|
|
|
|
"src/librustc_incremental/",
|
|
|
|
"src/librustc_index/",
|
|
|
|
"src/librustc_interface/",
|
|
|
|
"src/librustc_lexer/",
|
|
|
|
"src/librustc_lint/",
|
|
|
|
"src/librustc_llvm/",
|
|
|
|
"src/librustc_lsan/",
|
|
|
|
"src/librustc_macros/",
|
|
|
|
"src/librustc_metadata/",
|
|
|
|
"src/librustc_mir/",
|
|
|
|
"src/librustc_msan/",
|
|
|
|
"src/librustc_parse/",
|
|
|
|
"src/librustc_passes/",
|
|
|
|
"src/librustc_plugin/",
|
|
|
|
"src/librustc_plugin_impl/",
|
|
|
|
"src/librustc_privacy/",
|
|
|
|
"src/librustc_resolve/",
|
|
|
|
"src/librustc_save_analysis/",
|
|
|
|
"src/librustc_session/",
|
|
|
|
"src/librustc_target/",
|
|
|
|
"src/librustc_traits/",
|
|
|
|
"src/librustc_tsan/",
|
|
|
|
"src/librustc_typeck/",
|
|
|
|
"src/librustdoc/",
|
|
|
|
"src/libserialize/",
|
|
|
|
"src/libstd/",
|
|
|
|
"src/libsyntax/",
|
|
|
|
"src/libsyntax_expand/",
|
|
|
|
"src/libsyntax_ext/",
|
|
|
|
"src/libsyntax_pos/",
|
|
|
|
"src/libterm/",
|
|
|
|
"src/libtest/",
|
|
|
|
"src/libunwind/",
|
|
|
|
"src/rtstartup/",
|
|
|
|
"src/rustc/",
|
|
|
|
"src/rustllvm/",
|
|
|
|
"src/test/",
|
|
|
|
"src/tools/",
|
2019-12-18 09:52:10 -06:00
|
|
|
"src/etc",
|
2019-10-29 10:33:11 -05: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",
|
|
|
|
]
|