Class: Poper::Rule::SeventyTwoCharLimit

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

Constant Summary collapse

MSG =
'Every line of git commit message should be 72 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/seventy_two_char_limit.rb', line 6

def check(message)
  MSG if message.lines.any? { |line| line.length > 72 }
end