Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/committer/prompt_templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

module Committer
module PromptTemplates
FORMATTING_RULES_PATH = File.join(File.dirname(__FILE__), 'formatting_rules.txt')

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.

end

def self.load_scopes
Expand Down
Loading