Skip to content

Commit ed517ef

Browse files
authored
Skip target in taplo checks (apache#14747)
`target` can contain arbitrary files. Contents depend on tools used and tests run, and may even include `Cargo.toml` files that are not properly formatted. The taplo check should never complain on files that are not meant to be part of the repository, and `target` contents clearly falls into that category. `trybuild` is an example of a tool that creates cargo files inside target directory.
1 parent 81b12d3 commit ed517ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

taplo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
## https://taplo.tamasfe.dev/configuration/file.html
1919

2020
include = ["**/Cargo.toml"]
21+
exclude = ["target/*"]
2122

2223
[formatting]
2324
# Align consecutive entries vertically.

0 commit comments

Comments
 (0)