Class: Repokeeper::Analyzers::ShortCommitMessage

Inherits:
Analyzer
  • Object
show all
Includes:
CommitsAnalyzer
Defined in:
lib/repokeeper/analyzers/commits/short_commit_message.rb

Overview

Analyzes short commit messages sign of undescriptive message commits level analyzer

Instance Method Summary collapse

Methods included from CommitsAnalyzer

included

Methods inherited from Analyzer

all, #enabled?, inherited, #initialize, #name

Constructor Details

This class inherits a constructor from Repokeeper::Analyzers::Analyzer

Instance Method Details

#message_min_lengthObject



8
9
10
# File 'lib/repokeeper/analyzers/commits/short_commit_message.rb', line 8

def message_min_length
  @config['message_min_length']
end

#process_commit(commit) ⇒ Object



12
13
14
# File 'lib/repokeeper/analyzers/commits/short_commit_message.rb', line 12

def process_commit(commit)
  create_offense_message(commit) if error?(commit)
end