Skip to content

Commit

Permalink
Skip target in taplo checks (#14747)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
findepi authored Feb 18, 2025
1 parent 81b12d3 commit ed517ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
## https://taplo.tamasfe.dev/configuration/file.html

include = ["**/Cargo.toml"]
exclude = ["target/*"]

[formatting]
# Align consecutive entries vertically.
Expand Down

0 comments on commit ed517ef

Please sign in to comment.