We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d79818 commit ee50226Copy full SHA for ee50226
.overcommit.yml
@@ -8,6 +8,11 @@ PreCommit:
8
RuboCop:
9
enabled: true
10
command: ['bundle', 'exec', 'rubocop']
11
+ include:
12
+ - '**/*.gemspec'
13
+ - '**/*.rb'
14
+ - '**/Gemfile'
15
+ - template-dir/hooks/overcommit-hook
16
17
TravisLint:
18
template-dir/hooks/overcommit-hook
@@ -27,10 +27,12 @@ end
27
28
# Check if Overcommit should invoke a Bundler context for loading gems
29
require 'yaml'
30
+# rubocop:disable Style/RescueModifier
31
if gemfile = YAML.load_file('.overcommit.yml')['gemfile'] rescue nil
32
ENV['BUNDLE_GEMFILE'] = gemfile
33
require 'bundler/setup'
34
end
35
+# rubocop:enable Style/RescueModifier
36
37
begin
38
require 'overcommit'
0 commit comments