module PreCommit
The pre-commit gem.
Constants
- TemplateNotFound
Public Class Methods
checks_to_run()
click to toggle source
Can not delete this method with out a deprecation strategy. It is refered to in the generated pre-commit hook in versions 0.0-0.1.1
NOTE: The deprecation strategy may be just delete it since, we're still pre 1.0.
Actually, on the deprecation note. This method isn't really the problem. The problem is the default generated pre-commit hook. It shouldn't have logic in it. The we have freedom to change the gem implementation however we want, and nobody is forced to update their pre-commit binary.
# File lib/pre-commit.rb, line 18 def self.checks_to_run warn "WARNING: You are using old hook version, you can update it with: pre-commit install" runner.list_to_run(:checks) end
pluginator()
click to toggle source
# File lib/pre-commit/plugins_list.rb, line 3 def self.pluginator Pluginator.find('pre_commit', :extends => [:find_check]) end
run()
click to toggle source
# File lib/pre-commit.rb, line 23 def self.run runner.run or exit 1 end
runner()
click to toggle source
# File lib/pre-commit.rb, line 27 def self.runner @runner ||= PreCommit::Runner.new end