Class: Poper::Rule::FiftyCharSummary

Inherits:
Rule
  • Object
show all
Defined in:
lib/poper/rule/fifty_char_summary.rb

Constant Summary collapse

MSG =
'Git commit message summary (first line) should be 50 chars or less'

Instance Method Summary collapse

Methods inherited from Rule

all, inherited

Instance Method Details

#check(message) ⇒ Object



6
7
8
# File 'lib/poper/rule/fifty_char_summary.rb', line 6

def check(message)
  MSG if message.lines.first.chomp.length > 50
end