Class: Poper::Rule::SeventyTwoCharLimit
- 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
Instance Method Details
#check(message) ⇒ Object
6 7 8 |
# File 'lib/poper/rule/seventy_two_char_limit.rb', line 6 def check() MSG if .lines.any? { |line| line.length > 72 } end |