Class: RubyCritic::Command::Compare
- Defined in:
- lib/rubycritic/commands/compare.rb
Direct Known Subclasses
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Compare
constructor
A new instance of Compare.
Methods inherited from Default
Constructor Details
Instance Method Details
#execute ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/rubycritic/commands/compare.rb', line 20 def execute if Config.send(:base_branch) == Config.send(:feature_branch) raise('The branch you are on and are comparing with are the same. Please switch to a different branch or choose a different branch to compare.') end compare_branches status_reporter.score = Config.feature_branch_score status_reporter end |