Class: Repokeeper::Analyzers::SimilarCommits
- Includes:
- CommitsAnalyzer
- Defined in:
- lib/repokeeper/analyzers/commits/similar_commits.rb
Overview
Checks for similar commits messages in commit ant its parents commits level analyzer
Instance Method Summary collapse
Methods included from CommitsAnalyzer
Methods inherited from Analyzer
all, #enabled?, inherited, #initialize, #name
Constructor Details
This class inherits a constructor from Repokeeper::Analyzers::Analyzer
Instance Method Details
#min_edit_distance ⇒ Object
7 8 9 |
# File 'lib/repokeeper/analyzers/commits/similar_commits.rb', line 7 def min_edit_distance @config['min_edit_distance'] end |
#process_commit(commit) ⇒ Object
11 12 13 14 15 |
# File 'lib/repokeeper/analyzers/commits/similar_commits.rb', line 11 def process_commit(commit) commit.parents.map do |parent| compare_commits(commit, parent) end.compact end |