Skip to content

Comments

Replace formatting rules file loading with config accessor#20

Merged
billybonks merged 1 commit intomasterfrom
feat/fix-prompt-loading
Mar 8, 2025
Merged

Replace formatting rules file loading with config accessor#20
billybonks merged 1 commit intomasterfrom
feat/fix-prompt-loading

Conversation

@billybonks
Copy link
Contributor

No description provided.

Copy link

@managerbot-app managerbot-app bot left a comment

Choose a reason for hiding this comment

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

👍🏿 👎🏿 review comments so that we know what works and what does not work


def self.load_formatting_rules
File.read(FORMATTING_RULES_PATH)
Committer::Config::Accessor.instance.load_formatting_rules
Copy link

Choose a reason for hiding this comment

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

This change introduces a dependency on the Committer::Config::Accessor singleton. Consider if this is the appropriate design pattern or if dependency injection would be more maintainable and testable.

@billybonks billybonks merged commit 8631fa5 into master Mar 8, 2025
2 checks passed
@billybonks billybonks deleted the feat/fix-prompt-loading branch March 8, 2025 11:01
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.

1 participant