overcommit 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/overcommit +0 -1
- data/config/default.yml +155 -2
- data/lib/overcommit.rb +2 -0
- data/lib/overcommit/cli.rb +1 -0
- data/lib/overcommit/configuration.rb +1 -1
- data/lib/overcommit/git_repo.rb +1 -2
- data/lib/overcommit/hook/base.rb +1 -1
- data/lib/overcommit/hook/commit_msg/gerrit_change_id.rb +1 -1
- data/lib/overcommit/hook/post_checkout/bower_install.rb +11 -0
- data/lib/overcommit/hook/post_checkout/bundle_install.rb +11 -0
- data/lib/overcommit/hook/post_checkout/npm_install.rb +11 -0
- data/lib/overcommit/hook/post_commit/bower_install.rb +11 -0
- data/lib/overcommit/hook/post_commit/bundle_install.rb +11 -0
- data/lib/overcommit/hook/post_commit/npm_install.rb +11 -0
- data/lib/overcommit/hook/post_merge/bower_install.rb +11 -0
- data/lib/overcommit/hook/post_merge/bundle_install.rb +11 -0
- data/lib/overcommit/hook/post_merge/npm_install.rb +11 -0
- data/lib/overcommit/hook/post_rewrite/bower_install.rb +11 -0
- data/lib/overcommit/hook/post_rewrite/bundle_install.rb +11 -0
- data/lib/overcommit/hook/post_rewrite/npm_install.rb +11 -0
- data/lib/overcommit/hook/pre_commit/base.rb +1 -1
- data/lib/overcommit/hook/pre_commit/chamber_security.rb +1 -1
- data/lib/overcommit/hook/pre_commit/coffee_lint.rb +19 -27
- data/lib/overcommit/hook/pre_commit/css_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/es_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/execute_permissions.rb +64 -0
- data/lib/overcommit/hook/pre_commit/go_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/go_vet.rb +2 -2
- data/lib/overcommit/hook/pre_commit/haml_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/hard_tabs.rb +1 -1
- data/lib/overcommit/hook/pre_commit/hlint.rb +32 -0
- data/lib/overcommit/hook/pre_commit/html_hint.rb +1 -1
- data/lib/overcommit/hook/pre_commit/html_tidy.rb +1 -1
- data/lib/overcommit/hook/pre_commit/image_optim.rb +1 -1
- data/lib/overcommit/hook/pre_commit/java_checkstyle.rb +2 -2
- data/lib/overcommit/hook/pre_commit/js_hint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/js_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/jscs.rb +2 -2
- data/lib/overcommit/hook/pre_commit/jsl.rb +1 -1
- data/lib/overcommit/hook/pre_commit/pep257.rb +2 -2
- data/lib/overcommit/hook/pre_commit/pep8.rb +2 -2
- data/lib/overcommit/hook/pre_commit/puppet_lint.rb +24 -0
- data/lib/overcommit/hook/pre_commit/pyflakes.rb +2 -2
- data/lib/overcommit/hook/pre_commit/pylint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/python_flake8.rb +2 -2
- data/lib/overcommit/hook/pre_commit/reek.rb +2 -2
- data/lib/overcommit/hook/pre_commit/rubo_cop.rb +2 -2
- data/lib/overcommit/hook/pre_commit/ruby_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/scalariform.rb +2 -2
- data/lib/overcommit/hook/pre_commit/scalastyle.rb +2 -2
- data/lib/overcommit/hook/pre_commit/scss_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/semi_standard.rb +5 -3
- data/lib/overcommit/hook/pre_commit/shell_check.rb +2 -2
- data/lib/overcommit/hook/pre_commit/slim_lint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/sqlint.rb +24 -0
- data/lib/overcommit/hook/pre_commit/standard.rb +5 -3
- data/lib/overcommit/hook/pre_commit/trailing_whitespace.rb +1 -1
- data/lib/overcommit/hook/pre_commit/travis_lint.rb +1 -1
- data/lib/overcommit/hook/pre_commit/vint.rb +2 -2
- data/lib/overcommit/hook/pre_commit/xml_lint.rb +2 -2
- data/lib/overcommit/hook/shared/bower_install.rb +13 -0
- data/lib/overcommit/hook/shared/bundle_install.rb +13 -0
- data/lib/overcommit/hook/shared/npm_install.rb +13 -0
- data/lib/overcommit/hook_context/base.rb +2 -2
- data/lib/overcommit/hook_context/pre_commit.rb +1 -1
- data/lib/overcommit/hook_context/run_all.rb +5 -0
- data/lib/overcommit/hook_signer.rb +2 -1
- data/lib/overcommit/installer.rb +4 -2
- data/lib/overcommit/os.rb +34 -0
- data/lib/overcommit/printer.rb +1 -1
- data/lib/overcommit/subprocess.rb +19 -1
- data/lib/overcommit/utils.rb +17 -5
- data/lib/overcommit/utils/file_utils.rb +69 -0
- data/lib/overcommit/version.rb +1 -1
- data/template-dir/hooks/commit-msg +2 -0
- data/template-dir/hooks/overcommit-hook +2 -0
- data/template-dir/hooks/post-checkout +2 -0
- data/template-dir/hooks/post-commit +2 -0
- data/template-dir/hooks/post-merge +2 -0
- data/template-dir/hooks/post-rewrite +2 -0
- data/template-dir/hooks/pre-commit +2 -0
- data/template-dir/hooks/pre-push +2 -0
- data/template-dir/hooks/pre-rebase +2 -0
- metadata +23 -16
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
|
3
|
+
module Overcommit
|
4
|
+
# Methods relating to the current operating system
|
5
|
+
module OS
|
6
|
+
class << self
|
7
|
+
def windows?
|
8
|
+
!(/mswin|msys|mingw|bccwin|wince|emc/ =~ host_os).nil?
|
9
|
+
end
|
10
|
+
|
11
|
+
def cygwin?
|
12
|
+
!(/cygwin/ =~ host_os).nil?
|
13
|
+
end
|
14
|
+
|
15
|
+
def mac?
|
16
|
+
!(/darwin|mac os/ =~ host_os).nil?
|
17
|
+
end
|
18
|
+
|
19
|
+
def unix?
|
20
|
+
!windows?
|
21
|
+
end
|
22
|
+
|
23
|
+
def linux?
|
24
|
+
unix? && !mac? && !cygwin?
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def host_os
|
30
|
+
@os ||= ::RbConfig::CONFIG['host_os']
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/lib/overcommit/printer.rb
CHANGED
@@ -25,6 +25,8 @@ module Overcommit
|
|
25
25
|
# @option options [String] input string to pass via standard input stream
|
26
26
|
# @return [Result]
|
27
27
|
def spawn(args, options = {})
|
28
|
+
args = win32_prepare_args(args) if OS.windows?
|
29
|
+
|
28
30
|
process = ChildProcess.build(*args)
|
29
31
|
|
30
32
|
out, err = assign_output_streams(process)
|
@@ -34,7 +36,7 @@ module Overcommit
|
|
34
36
|
if options[:input]
|
35
37
|
begin
|
36
38
|
process.io.stdin.puts(options[:input])
|
37
|
-
rescue
|
39
|
+
rescue # rubocop:disable Lint/HandleExceptions
|
38
40
|
# Silently ignore if the standard input stream of the spawned
|
39
41
|
# process is closed before we get a chance to write to it. This
|
40
42
|
# happens on JRuby a lot.
|
@@ -53,6 +55,8 @@ module Overcommit
|
|
53
55
|
# Spawns a new process in the background using the given array of
|
54
56
|
# arguments (the first element is the command).
|
55
57
|
def spawn_detached(args)
|
58
|
+
args = win32_prepare_args(args) if OS.windows?
|
59
|
+
|
56
60
|
process = ChildProcess.build(*args)
|
57
61
|
process.detach = true
|
58
62
|
|
@@ -63,6 +67,20 @@ module Overcommit
|
|
63
67
|
|
64
68
|
private
|
65
69
|
|
70
|
+
# Necessary to run commands in the cmd.exe context.
|
71
|
+
# Args are joined to properly handle quotes and special characters.
|
72
|
+
def win32_prepare_args(args)
|
73
|
+
args = args.map do |arg|
|
74
|
+
# Quote args that contain whitespace
|
75
|
+
arg = "\"#{arg}\"" if arg =~ /\s/
|
76
|
+
|
77
|
+
# Escape cmd.exe metacharacters
|
78
|
+
arg.gsub(/[()%!^"<>&|]/, '^\0')
|
79
|
+
end
|
80
|
+
|
81
|
+
%w[cmd.exe /c] + [args.join(' ')]
|
82
|
+
end
|
83
|
+
|
66
84
|
# @param process [ChildProcess]
|
67
85
|
# @return [Array<IO>]
|
68
86
|
def assign_output_streams(process)
|
data/lib/overcommit/utils.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require 'overcommit/os'
|
2
3
|
require 'overcommit/subprocess'
|
3
4
|
require 'overcommit/command_splitter'
|
4
5
|
require 'tempfile'
|
@@ -107,7 +108,7 @@ module Overcommit
|
|
107
108
|
Dir[File.join(HOOK_DIRECTORY, '*')].
|
108
109
|
select { |file| File.directory?(file) }.
|
109
110
|
reject { |file| File.basename(file) == 'shared' }.
|
110
|
-
map { |file| File.basename(file).
|
111
|
+
map { |file| File.basename(file).tr('_', '-') }
|
111
112
|
end
|
112
113
|
|
113
114
|
# Returns a list of supported hook classes (PreCommit, CommitMsg, etc.)
|
@@ -128,8 +129,9 @@ module Overcommit
|
|
128
129
|
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
|
129
130
|
paths.each do |path|
|
130
131
|
exts.each do |ext|
|
131
|
-
|
132
|
-
|
132
|
+
cmd_with_ext = cmd.upcase.end_with?(ext.upcase) ? cmd : "#{cmd}#{ext}"
|
133
|
+
full_path = File.join(path, cmd_with_ext)
|
134
|
+
return true if File.executable?(full_path)
|
133
135
|
end
|
134
136
|
end
|
135
137
|
false
|
@@ -137,7 +139,17 @@ module Overcommit
|
|
137
139
|
|
138
140
|
# Return the parent command that triggered this hook run
|
139
141
|
def parent_command
|
140
|
-
|
142
|
+
if OS.windows?
|
143
|
+
`wmic process where ProcessId=#{Process.ppid} get CommandLine /FORMAT:VALUE`.
|
144
|
+
strip.
|
145
|
+
slice(/(?<=CommandLine=).+/)
|
146
|
+
elsif OS.cygwin?
|
147
|
+
# Cygwin's `ps` command behaves differently than the traditional
|
148
|
+
# Linux version, but a comparable `procps` is provided to compensate.
|
149
|
+
`procps -ocommand= -p #{Process.ppid}`.chomp
|
150
|
+
else
|
151
|
+
`ps -ocommand= -p #{Process.ppid}`.chomp
|
152
|
+
end
|
141
153
|
end
|
142
154
|
|
143
155
|
# Execute a command in a subprocess, capturing exit status and output from
|
@@ -219,7 +231,7 @@ module Overcommit
|
|
219
231
|
def broken_symlink?(file)
|
220
232
|
# JRuby's implementation of File.exist? returns true for broken
|
221
233
|
# symlinks, so we need use File.size?
|
222
|
-
|
234
|
+
Overcommit::Utils::FileUtils.symlink?(file) && File.size?(file).nil?
|
223
235
|
end
|
224
236
|
|
225
237
|
# Convert a glob pattern to an absolute path glob pattern rooted from the
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'overcommit/os'
|
2
|
+
require 'overcommit/subprocess'
|
3
|
+
|
4
|
+
module Overcommit::Utils
|
5
|
+
# Utility functions for file IO.
|
6
|
+
module FileUtils
|
7
|
+
class << self
|
8
|
+
# When the host OS is Windows, uses the `mklink` command to create an
|
9
|
+
# NTFS symbolic link from `new_name` to `old_name`. Otherwise delegates
|
10
|
+
# to `File.symlink`
|
11
|
+
def symlink(old_name, new_name)
|
12
|
+
return File.symlink(old_name, new_name) unless Overcommit::OS.windows?
|
13
|
+
|
14
|
+
result = win32_mklink_cmd(old_name, new_name)
|
15
|
+
result.status
|
16
|
+
end
|
17
|
+
|
18
|
+
# When the host OS is Windows, uses the `dir` command to check whether
|
19
|
+
# `file_name` is an NTFS symbolic link. Otherwise delegates to
|
20
|
+
# `File.symlink`.
|
21
|
+
def symlink?(file_name)
|
22
|
+
return File.symlink?(file_name) unless Overcommit::OS.windows?
|
23
|
+
|
24
|
+
result = win32_dir_cmd(file_name)
|
25
|
+
win32_symlink?(result.stdout)
|
26
|
+
end
|
27
|
+
|
28
|
+
# When the host OS is Windows, uses the `dir` command to check whether
|
29
|
+
# `link_name` is an NTFS symbolic link. If so, it parses the target from
|
30
|
+
# the command output. Otherwise raises an `ArgumentError`. Delegates to
|
31
|
+
# `File.readlink` if the host OS is not Windows.
|
32
|
+
def readlink(link_name)
|
33
|
+
return File.readlink(link_name) unless Overcommit::OS.windows?
|
34
|
+
|
35
|
+
result = win32_dir_cmd(link_name)
|
36
|
+
|
37
|
+
unless win32_symlink?(result.stdout)
|
38
|
+
raise ArgumentError, "#{link_name} is not a symlink"
|
39
|
+
end
|
40
|
+
|
41
|
+
# Extract symlink target from output, which looks like:
|
42
|
+
# 11/13/2012 12:53 AM <SYMLINK> mysymlink [C:\Windows\Temp\somefile.txt]
|
43
|
+
result.stdout[/\[(.+)\]/, 1]
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def win32_dir_cmd(file_name)
|
49
|
+
Overcommit::Subprocess.spawn(
|
50
|
+
%W[dir #{win32_fix_pathsep(file_name)}]
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
def win32_mklink_cmd(old_name, new_name)
|
55
|
+
Overcommit::Subprocess.spawn(
|
56
|
+
%W[mklink #{win32_fix_pathsep(new_name)} #{win32_fix_pathsep(old_name)}]
|
57
|
+
)
|
58
|
+
end
|
59
|
+
|
60
|
+
def win32_fix_pathsep(path)
|
61
|
+
path.tr('/', '\\')
|
62
|
+
end
|
63
|
+
|
64
|
+
def win32_symlink?(dir_output)
|
65
|
+
!(dir_output =~ /<SYMLINK>/).nil?
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
data/lib/overcommit/version.rb
CHANGED
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
data/template-dir/hooks/pre-push
CHANGED
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
@@ -27,10 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Check if Overcommit should invoke a Bundler context for loading gems
|
29
29
|
require 'yaml'
|
30
|
+
# rubocop:disable Style/RescueModifier
|
30
31
|
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
|
31
32
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
32
33
|
require 'bundler/setup'
|
33
34
|
end
|
35
|
+
# rubocop:enable Style/RescueModifier
|
34
36
|
|
35
37
|
begin
|
36
38
|
require 'overcommit'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overcommit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brigade Engineering
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: childprocess
|
@@ -67,20 +67,6 @@ dependencies:
|
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '1.7'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: w3c_validators
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - "~>"
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '1.2'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '1.2'
|
84
70
|
description: Utility to install, configure, and extend Git hooks
|
85
71
|
email:
|
86
72
|
- eng@brigade.com
|
@@ -115,17 +101,29 @@ files:
|
|
115
101
|
- lib/overcommit/hook/commit_msg/text_width.rb
|
116
102
|
- lib/overcommit/hook/commit_msg/trailing_period.rb
|
117
103
|
- lib/overcommit/hook/post_checkout/base.rb
|
104
|
+
- lib/overcommit/hook/post_checkout/bower_install.rb
|
105
|
+
- lib/overcommit/hook/post_checkout/bundle_install.rb
|
118
106
|
- lib/overcommit/hook/post_checkout/index_tags.rb
|
107
|
+
- lib/overcommit/hook/post_checkout/npm_install.rb
|
119
108
|
- lib/overcommit/hook/post_checkout/submodule_status.rb
|
120
109
|
- lib/overcommit/hook/post_commit/base.rb
|
110
|
+
- lib/overcommit/hook/post_commit/bower_install.rb
|
111
|
+
- lib/overcommit/hook/post_commit/bundle_install.rb
|
121
112
|
- lib/overcommit/hook/post_commit/git_guilt.rb
|
122
113
|
- lib/overcommit/hook/post_commit/index_tags.rb
|
114
|
+
- lib/overcommit/hook/post_commit/npm_install.rb
|
123
115
|
- lib/overcommit/hook/post_commit/submodule_status.rb
|
124
116
|
- lib/overcommit/hook/post_merge/base.rb
|
117
|
+
- lib/overcommit/hook/post_merge/bower_install.rb
|
118
|
+
- lib/overcommit/hook/post_merge/bundle_install.rb
|
125
119
|
- lib/overcommit/hook/post_merge/index_tags.rb
|
120
|
+
- lib/overcommit/hook/post_merge/npm_install.rb
|
126
121
|
- lib/overcommit/hook/post_merge/submodule_status.rb
|
127
122
|
- lib/overcommit/hook/post_rewrite/base.rb
|
123
|
+
- lib/overcommit/hook/post_rewrite/bower_install.rb
|
124
|
+
- lib/overcommit/hook/post_rewrite/bundle_install.rb
|
128
125
|
- lib/overcommit/hook/post_rewrite/index_tags.rb
|
126
|
+
- lib/overcommit/hook/post_rewrite/npm_install.rb
|
129
127
|
- lib/overcommit/hook/post_rewrite/submodule_status.rb
|
130
128
|
- lib/overcommit/hook/pre_commit/author_email.rb
|
131
129
|
- lib/overcommit/hook/pre_commit/author_name.rb
|
@@ -139,10 +137,12 @@ files:
|
|
139
137
|
- lib/overcommit/hook/pre_commit/coffee_lint.rb
|
140
138
|
- lib/overcommit/hook/pre_commit/css_lint.rb
|
141
139
|
- lib/overcommit/hook/pre_commit/es_lint.rb
|
140
|
+
- lib/overcommit/hook/pre_commit/execute_permissions.rb
|
142
141
|
- lib/overcommit/hook/pre_commit/go_lint.rb
|
143
142
|
- lib/overcommit/hook/pre_commit/go_vet.rb
|
144
143
|
- lib/overcommit/hook/pre_commit/haml_lint.rb
|
145
144
|
- lib/overcommit/hook/pre_commit/hard_tabs.rb
|
145
|
+
- lib/overcommit/hook/pre_commit/hlint.rb
|
146
146
|
- lib/overcommit/hook/pre_commit/html_hint.rb
|
147
147
|
- lib/overcommit/hook/pre_commit/html_tidy.rb
|
148
148
|
- lib/overcommit/hook/pre_commit/image_optim.rb
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- lib/overcommit/hook/pre_commit/merge_conflicts.rb
|
157
157
|
- lib/overcommit/hook/pre_commit/pep257.rb
|
158
158
|
- lib/overcommit/hook/pre_commit/pep8.rb
|
159
|
+
- lib/overcommit/hook/pre_commit/puppet_lint.rb
|
159
160
|
- lib/overcommit/hook/pre_commit/pyflakes.rb
|
160
161
|
- lib/overcommit/hook/pre_commit/pylint.rb
|
161
162
|
- lib/overcommit/hook/pre_commit/python_flake8.rb
|
@@ -169,6 +170,7 @@ files:
|
|
169
170
|
- lib/overcommit/hook/pre_commit/semi_standard.rb
|
170
171
|
- lib/overcommit/hook/pre_commit/shell_check.rb
|
171
172
|
- lib/overcommit/hook/pre_commit/slim_lint.rb
|
173
|
+
- lib/overcommit/hook/pre_commit/sqlint.rb
|
172
174
|
- lib/overcommit/hook/pre_commit/standard.rb
|
173
175
|
- lib/overcommit/hook/pre_commit/trailing_whitespace.rb
|
174
176
|
- lib/overcommit/hook/pre_commit/travis_lint.rb
|
@@ -183,7 +185,10 @@ files:
|
|
183
185
|
- lib/overcommit/hook/pre_push/r_spec.rb
|
184
186
|
- lib/overcommit/hook/pre_rebase/base.rb
|
185
187
|
- lib/overcommit/hook/pre_rebase/merged_commits.rb
|
188
|
+
- lib/overcommit/hook/shared/bower_install.rb
|
189
|
+
- lib/overcommit/hook/shared/bundle_install.rb
|
186
190
|
- lib/overcommit/hook/shared/index_tags.rb
|
191
|
+
- lib/overcommit/hook/shared/npm_install.rb
|
187
192
|
- lib/overcommit/hook/shared/submodule_status.rb
|
188
193
|
- lib/overcommit/hook_context.rb
|
189
194
|
- lib/overcommit/hook_context/base.rb
|
@@ -205,9 +210,11 @@ files:
|
|
205
210
|
- lib/overcommit/interrupt_handler.rb
|
206
211
|
- lib/overcommit/logger.rb
|
207
212
|
- lib/overcommit/message_processor.rb
|
213
|
+
- lib/overcommit/os.rb
|
208
214
|
- lib/overcommit/printer.rb
|
209
215
|
- lib/overcommit/subprocess.rb
|
210
216
|
- lib/overcommit/utils.rb
|
217
|
+
- lib/overcommit/utils/file_utils.rb
|
211
218
|
- lib/overcommit/version.rb
|
212
219
|
- libexec/gerrit-change-id
|
213
220
|
- libexec/index-tags
|