-
Notifications
You must be signed in to change notification settings - Fork 0
/
.overcommit.yml
120 lines (112 loc) · 2.31 KB
/
.overcommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Use this file to configure the Overcommit hooks you wish to use. This will
# extend the default configuration defined in:
# https://github.com/brigade/overcommit/blob/master/config/default.yml
#
# For a complete list of hooks, see:
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
#
# For a complete list of options that you can use to customize hooks, see:
# https://github.com/brigade/overcommit#configuration
#
# TO avoid resigning overcommit on every configuration change
verify_signatures: false
PreCommit:
ALL:
problem_on_unmodified_line: warn
requires_files: true
required: false
exclude: &default_excludes
- 'node_modules/**/*'
- 'vendor/**/*'
- 'db/migrate/*'
MyHook:
exclude:
- *default_excludes
AuthorEmail:
enabled: true
AuthorName:
enabled: true
BerksfileCheck:
enabled: true
Brakeman:
enabled: false
RuboCop:
enabled: true
on_warn: fail # Treat all warnings as failures
Fasterer:
enabled: false
BundleAudit:
enabled: true
BundleCheck:
enabled: false
BundleOutdated:
enabled: true
CaseConflicts:
enabled: true
ChamberSecurity:
enabled: true
Reek:
enabled: true
ImageOptim:
enabled: false
Mdl:
enabled: false
TravisLint:
enabled: false
JsonSyntax:
enabled: true
LocalPathsInGemfile:
enabled: true
Fixme:
enabled: true
BrokenSymlinks:
enabled: false
MergeConflicts:
enabled: true
RubyLint:
enabled: false
YamlLint:
enabled: false
YamlSyntax:
enabled: true
CommitMsg:
ALL:
requires_files: false
CapitalizedSubject:
enabled: true
EmptyMessage:
enabled: false
RussianNovel:
enabled: true
Spellcheck:
enabled: false
BundleCheck:
enabled: false
SingleLineSubject:
enabled: true
TrailingPeriod:
enabled: true
PrePush:
ALL:
requires_files: false
required: false
RSpec:
enabled: false # enable this if you don't run rspec prior to git
PostCheckout:
ALL:
quiet: true
IndexTags:
enabled: false # Generate a tags file with `ctags` each time HEAD changes
PreRebase:
ALL:
requires_files: false
required: false
MergedCommits:
enabled: false
PostMerge:
ALL:
enabled: false
requires_files: false
PostRewrite:
ALL:
requires_files: false