overcommit 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/bin/overcommit +0 -1
  3. data/config/default.yml +155 -2
  4. data/lib/overcommit.rb +2 -0
  5. data/lib/overcommit/cli.rb +1 -0
  6. data/lib/overcommit/configuration.rb +1 -1
  7. data/lib/overcommit/git_repo.rb +1 -2
  8. data/lib/overcommit/hook/base.rb +1 -1
  9. data/lib/overcommit/hook/commit_msg/gerrit_change_id.rb +1 -1
  10. data/lib/overcommit/hook/post_checkout/bower_install.rb +11 -0
  11. data/lib/overcommit/hook/post_checkout/bundle_install.rb +11 -0
  12. data/lib/overcommit/hook/post_checkout/npm_install.rb +11 -0
  13. data/lib/overcommit/hook/post_commit/bower_install.rb +11 -0
  14. data/lib/overcommit/hook/post_commit/bundle_install.rb +11 -0
  15. data/lib/overcommit/hook/post_commit/npm_install.rb +11 -0
  16. data/lib/overcommit/hook/post_merge/bower_install.rb +11 -0
  17. data/lib/overcommit/hook/post_merge/bundle_install.rb +11 -0
  18. data/lib/overcommit/hook/post_merge/npm_install.rb +11 -0
  19. data/lib/overcommit/hook/post_rewrite/bower_install.rb +11 -0
  20. data/lib/overcommit/hook/post_rewrite/bundle_install.rb +11 -0
  21. data/lib/overcommit/hook/post_rewrite/npm_install.rb +11 -0
  22. data/lib/overcommit/hook/pre_commit/base.rb +1 -1
  23. data/lib/overcommit/hook/pre_commit/chamber_security.rb +1 -1
  24. data/lib/overcommit/hook/pre_commit/coffee_lint.rb +19 -27
  25. data/lib/overcommit/hook/pre_commit/css_lint.rb +2 -2
  26. data/lib/overcommit/hook/pre_commit/es_lint.rb +2 -2
  27. data/lib/overcommit/hook/pre_commit/execute_permissions.rb +64 -0
  28. data/lib/overcommit/hook/pre_commit/go_lint.rb +2 -2
  29. data/lib/overcommit/hook/pre_commit/go_vet.rb +2 -2
  30. data/lib/overcommit/hook/pre_commit/haml_lint.rb +2 -2
  31. data/lib/overcommit/hook/pre_commit/hard_tabs.rb +1 -1
  32. data/lib/overcommit/hook/pre_commit/hlint.rb +32 -0
  33. data/lib/overcommit/hook/pre_commit/html_hint.rb +1 -1
  34. data/lib/overcommit/hook/pre_commit/html_tidy.rb +1 -1
  35. data/lib/overcommit/hook/pre_commit/image_optim.rb +1 -1
  36. data/lib/overcommit/hook/pre_commit/java_checkstyle.rb +2 -2
  37. data/lib/overcommit/hook/pre_commit/js_hint.rb +2 -2
  38. data/lib/overcommit/hook/pre_commit/js_lint.rb +2 -2
  39. data/lib/overcommit/hook/pre_commit/jscs.rb +2 -2
  40. data/lib/overcommit/hook/pre_commit/jsl.rb +1 -1
  41. data/lib/overcommit/hook/pre_commit/pep257.rb +2 -2
  42. data/lib/overcommit/hook/pre_commit/pep8.rb +2 -2
  43. data/lib/overcommit/hook/pre_commit/puppet_lint.rb +24 -0
  44. data/lib/overcommit/hook/pre_commit/pyflakes.rb +2 -2
  45. data/lib/overcommit/hook/pre_commit/pylint.rb +2 -2
  46. data/lib/overcommit/hook/pre_commit/python_flake8.rb +2 -2
  47. data/lib/overcommit/hook/pre_commit/reek.rb +2 -2
  48. data/lib/overcommit/hook/pre_commit/rubo_cop.rb +2 -2
  49. data/lib/overcommit/hook/pre_commit/ruby_lint.rb +2 -2
  50. data/lib/overcommit/hook/pre_commit/scalariform.rb +2 -2
  51. data/lib/overcommit/hook/pre_commit/scalastyle.rb +2 -2
  52. data/lib/overcommit/hook/pre_commit/scss_lint.rb +2 -2
  53. data/lib/overcommit/hook/pre_commit/semi_standard.rb +5 -3
  54. data/lib/overcommit/hook/pre_commit/shell_check.rb +2 -2
  55. data/lib/overcommit/hook/pre_commit/slim_lint.rb +2 -2
  56. data/lib/overcommit/hook/pre_commit/sqlint.rb +24 -0
  57. data/lib/overcommit/hook/pre_commit/standard.rb +5 -3
  58. data/lib/overcommit/hook/pre_commit/trailing_whitespace.rb +1 -1
  59. data/lib/overcommit/hook/pre_commit/travis_lint.rb +1 -1
  60. data/lib/overcommit/hook/pre_commit/vint.rb +2 -2
  61. data/lib/overcommit/hook/pre_commit/xml_lint.rb +2 -2
  62. data/lib/overcommit/hook/shared/bower_install.rb +13 -0
  63. data/lib/overcommit/hook/shared/bundle_install.rb +13 -0
  64. data/lib/overcommit/hook/shared/npm_install.rb +13 -0
  65. data/lib/overcommit/hook_context/base.rb +2 -2
  66. data/lib/overcommit/hook_context/pre_commit.rb +1 -1
  67. data/lib/overcommit/hook_context/run_all.rb +5 -0
  68. data/lib/overcommit/hook_signer.rb +2 -1
  69. data/lib/overcommit/installer.rb +4 -2
  70. data/lib/overcommit/os.rb +34 -0
  71. data/lib/overcommit/printer.rb +1 -1
  72. data/lib/overcommit/subprocess.rb +19 -1
  73. data/lib/overcommit/utils.rb +17 -5
  74. data/lib/overcommit/utils/file_utils.rb +69 -0
  75. data/lib/overcommit/version.rb +1 -1
  76. data/template-dir/hooks/commit-msg +2 -0
  77. data/template-dir/hooks/overcommit-hook +2 -0
  78. data/template-dir/hooks/post-checkout +2 -0
  79. data/template-dir/hooks/post-commit +2 -0
  80. data/template-dir/hooks/post-merge +2 -0
  81. data/template-dir/hooks/post-rewrite +2 -0
  82. data/template-dir/hooks/pre-commit +2 -0
  83. data/template-dir/hooks/pre-push +2 -0
  84. data/template-dir/hooks/pre-rebase +2 -0
  85. 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
@@ -81,7 +81,7 @@ module Overcommit
81
81
  log.partial hook_name
82
82
  end
83
83
 
84
- def print_result(hook, status, output) # rubocop:disable CyclomaticComplexity, MethodLength
84
+ def print_result(hook, status, output)
85
85
  case status
86
86
  when :pass
87
87
  log.success 'OK' unless hook.quiet?
@@ -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)
@@ -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).gsub('_', '-') }
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
- exe = File.join(path, "#{cmd}#{ext}")
132
- return true if File.executable?(exe)
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
- `ps -ocommand= -p #{Process.ppid}`.chomp
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
- File.symlink?(file) && File.size?(file).nil?
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
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module Overcommit
3
- VERSION = '0.27.0'
3
+ VERSION = '0.28.0'
4
4
  end
@@ -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'
@@ -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.27.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-07-13 00:00:00.000000000 Z
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