-
-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy path.overcommit.yml
More file actions
40 lines (32 loc) · 931 Bytes
/
.overcommit.yml
File metadata and controls
40 lines (32 loc) · 931 Bytes
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
PreCommit:
RuboCop:
enabled: true
auto_correct: true
on_warn: fail # Treat all warnings as failures
Flay:
enabled: true
RSpec:
enabled: true
command: [
'bundle', 'exec', 'bin/rspec-queue',
'--tag', '~generator'
]
on_warn: fail
TrailingWhitespace:
enabled: true
auto_correct: true
exclude:
- '**/db/structure.sql' # Ignore trailing whitespace in generated files
AppraisalUpdate:
enabled: true
description: 'Update appraisal gemfiles'
command: ['bundle', 'exec', 'appraisal', 'update']
Gitleaks:
enabled: true
required_executable: 'gitleaks'
command: ['bin/gitleaks-staged']
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
IndexTags:
enabled: true # Generate a tags file with `ctags` each time HEAD changes