From 8d597fc8edf7e42a8eed243752b604bdb441cb68 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Thu, 23 Apr 2020 21:50:26 +0900 Subject: [PATCH] Stabilize ignore config option --- Configurations.md | 2 +- rustfmt-core/rustfmt-lib/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Configurations.md b/Configurations.md index 6ba78e714e0..504737fc921 100644 --- a/Configurations.md +++ b/Configurations.md @@ -1063,7 +1063,7 @@ The pattern format is the same as [.gitignore](https://git-scm.com/docs/gitignor - **Default value**: format every file - **Possible values**: See an example below -- **Stable**: No (tracking issue: [#3395](https://github.com/rust-lang/rustfmt/issues/3395)) +- **Stable**: Yes ### Example diff --git a/rustfmt-core/rustfmt-lib/src/config.rs b/rustfmt-core/rustfmt-lib/src/config.rs index 6b1c73ee4c1..581ee4e1a6b 100644 --- a/rustfmt-core/rustfmt-lib/src/config.rs +++ b/rustfmt-core/rustfmt-lib/src/config.rs @@ -150,7 +150,7 @@ create_config! { error_on_unformatted: bool, false, false, "Error if unable to get comments or string literals within max_width, \ or they are left with trailing whitespaces"; - ignore: IgnoreList, IgnoreList::default(), false, + ignore: IgnoreList, IgnoreList::default(), true, "Skip formatting the specified files and directories"; // Not user-facing