Class: Overcommit::GitHook::SingleLineSubject
- Inherits:
-
HookSpecificCheck
- Object
- HookSpecificCheck
- Overcommit::GitHook::SingleLineSubject
- Includes:
- HookRegistry
- Defined in:
- lib/overcommit/plugins/commit_msg/single_line_subject.rb
Instance Method Summary collapse
Methods included from HookRegistry
Methods inherited from HookSpecificCheck
file_type, friendly_name, #initialize, #name, required!, #skip?, skippable?, #staged, stealth!, #stealth?
Constructor Details
This class inherits a constructor from Overcommit::GitHook::HookSpecificCheck
Instance Method Details
#run_check ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/overcommit/plugins/commit_msg/single_line_subject.rb', line 5 def run_check unless [1].to_s.strip.empty? return :warn, 'Subject should be a single line' end :good end |