File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Use this file to configure the Overcommit hooks you wish to use. This will
2
+ # extend the default configuration defined in:
3
+ # https://github.com/brigade/overcommit/blob/master/config/default.yml
4
+ #
5
+ # At the topmost level of this YAML file is a key representing type of hook
6
+ # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7
+ # customize each hook, such as whether to only run it on certain files (via
8
+ # `include`), whether to only display output if it fails (via `quiet`), etc.
9
+ #
10
+ # For a complete list of hooks, see:
11
+ # https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
12
+ #
13
+ # For a complete list of options that you can use to customize hooks, see:
14
+ # https://github.com/brigade/overcommit#configuration
15
+ #
16
+ # Uncomment the following lines to make the configuration take effect.
17
+
18
+ PreCommit :
19
+ RuboCop :
20
+ enabled : true
21
+ on_warn : fail # Treat all warnings as failures
22
+
23
+ PrePush :
24
+ RSpec :
25
+ enabled : true
26
+ on_warn : fail # Treat all warnings as failures
27
+ #
28
+ # TrailingWhitespace:
29
+ # enabled: true
30
+ # exclude:
31
+ # - '**/db/structure.sql' # Ignore trailing whitespace in generated files
32
+ #
33
+ # PostCheckout:
34
+ # ALL: # Special hook name that customizes all hooks of this type
35
+ # quiet: true # Change all post-checkout hooks to only display output on failure
36
+ #
37
+ # IndexTags:
38
+ # enabled: true # Generate a tags file with `ctags` each time HEAD changes
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ group :development, :test do
23
23
gem 'codeclimate-test-reporter'
24
24
gem 'coveralls'
25
25
26
+ gem 'overcommit'
26
27
gem 'ruby_dep' , '1.3.1'
27
28
28
29
platforms :mri , :mingw do
You can’t perform that action at this time.
0 commit comments