Class: Poper::Rule::SingleWord

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

Constant Summary collapse

MSG =
'Git commit message should consist of more than a single word'

Instance Method Summary collapse

Methods inherited from Rule

all, inherited

Instance Method Details

#check(message) ⇒ Object



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

def check(message)
  MSG if message.split.count < 2
end