From ed517efcf329de55e7a9d881d6d76d885bc3598d Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Tue, 18 Feb 2025 09:27:07 -0800 Subject: [PATCH] Skip target in taplo checks (#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. --- taplo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/taplo.toml b/taplo.toml index b7089c501..47b33161c 100644 --- a/taplo.toml +++ b/taplo.toml @@ -18,6 +18,7 @@ ## https://taplo.tamasfe.dev/configuration/file.html include = ["**/Cargo.toml"] +exclude = ["target/*"] [formatting] # Align consecutive entries vertically.