Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn or even fail when both rustfmt.toml and .rustfmt.toml exist #6135

Open
szabgab opened this issue Apr 2, 2024 · 1 comment
Open

Warn or even fail when both rustfmt.toml and .rustfmt.toml exist #6135

szabgab opened this issue Apr 2, 2024 · 1 comment

Comments

@szabgab
Copy link

szabgab commented Apr 2, 2024

According to the Rust digger report there are at least 35 crates that have both .rustfmt.toml and rustfmt.toml files. If I am not mistake in such case get_toml_path will return the former and disregard the latter.

Would it be a good idea to warn the user in such case or even to fail the formatting process?

@Yukthiw
Copy link

Yukthiw commented Apr 6, 2024

New to contributing but I can take a crack at this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants