class Overcommit::Hook::PreCommit::HardTabs
Checks for hard tabs in files.
Public Instance Methods
run()
click to toggle source
# File lib/overcommit/hook/pre_commit/hard_tabs.rb, line 6 def run result = execute(command, args: applicable_files) extract_messages( result.stdout.split("\n"), /^(?<file>(?:\w:)?[^:]+):(?<line>\d+)/, ) end