module Causes::GitHook
  class TrailingPeriod < HookSpecificCheck
    include HookRegistry

    def run_check
      if commit_message[0].rstrip.end_with?('.')
        return :warn, 'Please omit trailing period from commit message subject.'
      end

      :good
    end
  end
end

Add 'trailing period' commit message lint
Add 'trailing period' commit message lint

As suggested by jdunck, this is another common issue we have.

Change-Id: Ibb329726b59fcf43afa22e68abef148de0fc2abe
Reviewed-on: https://gerrit.causes.com/22221
Tested-by: Aiden Scandella <1faf1e8390cdac9204f160c35828cc423b7acd7b@causes.com>
Reviewed-by: Shane da Silva <6f6e68d1df92f30cb4b3ce35260ddf94a402f33d@causes.com>
