-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.overcommit.yml
130 lines (124 loc) · 2.84 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
121
122
123
124
125
126
127
128
129
130
# 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
#
# At the topmost level of this YAML file is a key representing type of hook
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
# customize each hook, such as whether to only run it on certain files (via
# `include`), whether to only display output if it fails (via `quiet`), etc.
#
# 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
#
# Uncomment the following lines to make the configuration take effect.
---
CommitMsg:
CapitalizedSubject:
enabled: true
HardTabs:
enabled: true
on_warn: fail
RussianNovel:
enabled: true
on_fail: warn
SingleLineSubject:
enabled: true
TextWidth:
enabled: true
TrailingPeriod:
enabled: true
PostCheckout:
BundleInstall:
enabled: true
IndexTags:
enabled: true
YarnInstall:
enabled: true
PostMerge:
BundleInstall:
enabled: true
IndexTags:
enabled: true
YarnInstall:
enabled: true
PostRewrite:
BundleInstall:
enabled: true
YarnInstall:
enabled: true
PreCommit:
AuthorEmail:
enabled: true
AuthorName:
enabled: true
BundleAudit:
enabled: true
BundleCheck:
enabled: true
BundleOutdated:
enabled: false
CaseConflict:
enabled: true
Fasterer:
enabled: true
Flay:
enabled: false
on_fail: warn
HardTabs:
enabled: true
exclude:
exclude:
- '**/db/schema.rb'
- '**/db/structure.sql'
- '**/db/data/development.txt'
- 'db/data/development.txt'
JsonSyntax:
enabled: true
LineEndings:
enabled: true
exclude:
- '**/db/schema.rb'
- '**/db/structure.sql'
- '**/db/data/development.txt'
- '**/spec/fixtures/**/*'
LocalPathsInGemfile:
enabled: true
MergeConflicts:
enabled: true
RailsBestPractices:
enabled: false
on_fail: warn
RailsSchemaUpToDate:
enabled: true
on_fail: warn
Reek:
enabled: false
on_fail: warn
exclude:
- '**/db/schema.rb'
- '**/db/structure.sql'
- '**/db/data/development.txt'
RuboCop:
enabled: true
on_warn: fail
RubyLint:
enabled: false
TrailingWhitespace:
enabled: true
exclude:
- '**/db/schema.rb'
- '**/db/structure.sql'
- '**/db/data/development.txt'
- '/spec/vcr/**/*'
on_warn: fail
YamlSyntax:
enabled: true
PrePush:
Brakeman:
enabled: false
# PostCheckout:
# ALL: # Special hook name that customizes all hooks of this type
# quiet: true # Change all post-checkout hooks to only display output on failure