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

Suggest using config file with .rb extension #161

Closed

Conversation

fatkodima
Copy link
Contributor

Fixes #159.

Backwards compatibility is preserved to also accept .active_record_doctor files by default (without extension), if present.

README.md Show resolved Hide resolved
Copy link
Owner

@gregnavis gregnavis left a comment

Choose a reason for hiding this comment

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

@fatkodima, I wouldn't like to support two different configuration files. Let's also show a warning when the old file is used, so that users are aware we are migrating to .active_record_doctor.rb.

I suggest the following wording:

WARNING: configuration was loaded from .active_record_doctor, but it's support will be dropped in favor of .active_record_doctor.rb. Please rename the configuration file to avoid errors in the future.

@jdufresne
Copy link
Contributor

@gregnavis Do you feel #162 solves what you're looking for? Feedback is welcome.

@gregnavis
Copy link
Owner

@jdufresne, I hadn't noticed you also opened a PR when I was reviewing this. I opened another PR and wanted to ask you and @fatkodima for a quick review. Let me leave some feedback on your PR, so that it's clear why I chose a slightly different path.

Thank you for your contributions!

@gregnavis
Copy link
Owner

Closing in favor of #166.

@gregnavis gregnavis closed this Dec 4, 2023
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

Successfully merging this pull request may close these issues.

Idea: Allow the configuration to be named .active_record_doctor.rb (.rb suffix) to assist editors
3 participants