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

Bugfix: line-length and file-extensions ignored in toml files #251

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LiamPattinson
Copy link
Collaborator

Fixes #247

It took me an embarrassingly long time to realise that #[derive(Default)] on CheckSettings was setting line_length = 0 in cases where a config file wasn't present.

The fix here is pretty ugly, but it should be quite short-lived, as the solution to #235 will likely mean giving back default values to line-length and file-extensions when they're deserialised from TOML files.

@LiamPattinson LiamPattinson added the bug Something isn't working label Dec 20, 2024
Copy link
Member

@ZedThree ZedThree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test to catch this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

line-length and file-extensions ignored in config files
2 participants