From e0664662b49c1ed3e99391c51132ddf01cd87c79 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Thu, 23 May 2019 09:43:43 +0900 Subject: [PATCH] Update the documentation of ignore (#3580) --- Configurations.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Configurations.md b/Configurations.md index dc91a3d255a7..3737b1c9a4e0 100644 --- a/Configurations.md +++ b/Configurations.md @@ -2325,7 +2325,8 @@ Copyright 2018 The Rust Project Developers.`, etc.: ## `ignore` -Skip formatting the specified files and directories. +Skip formatting files and directories that match the specified pattern. +The pattern format is the same as [.gitignore](https://git-scm.com/docs/gitignore#_pattern_format). - **Default value**: format every file - **Possible values**: See an example below @@ -2350,6 +2351,12 @@ ignore = [ ] ``` +If you want to ignore every file under the directory where you put your rustfmt.toml: + +```toml +ignore = ["/"] +``` + ## `edition` Specifies which edition is used by the parser.