Skip to content

Commit

Permalink
Update the documentation of ignore (rust-lang#3580)
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro authored May 23, 2019
1 parent 0c05a21 commit e066466
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit e066466

Please sign in to comment.