-
Notifications
You must be signed in to change notification settings - Fork 71
/
.overcommit.yml
54 lines (43 loc) · 1.3 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
# Use this file to configure the Overcommit hooks you wish to use. This will
# extend the default configuration defined in:
# https://github.com/sds/overcommit/blob/master/config/default.yml
PreCommit:
ALL:
on_warn: fail
# Not required because it's not needed/sensible in a CI context.
AuthorEmail:
enabled: true
required: false
# Not required because it's not needed/sensible in a CI context.
AuthorName:
enabled: true
required: false
BundleCheck:
description: 'Check if local Gemfile.lock matches Gemfile when either changes.'
enabled: true
BundleAudit:
description: 'Checks for vulnerable versions of gems in Gemfile.lock.'
enabled: true
command: ['bundle', 'exec', 'bundle-audit']
flags: ['--update']
LicenseFinder:
enabled: true
command: ['bundle', 'exec', 'license_finder']
RuboCop:
enabled: true
command: ['bundle', 'exec', 'rubocop']
Fasterer:
enabled: true
command: ['bundle', 'exec', 'fasterer']
Brakeman:
enabled: true
command: ['brakeman']
flags: ['-A']
YarnAudit:
description: 'Checks for vulnerable versions of packages in yarn.lock.'
enabled: true
command: ['yarn', 'audit']
EsLint:
enabled: true
required_executable: './node_modules/.bin/eslint'
command: ['yarn', 'lint']