-
Notifications
You must be signed in to change notification settings - Fork 1
/
.overcommit.yml
50 lines (48 loc) · 1.02 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
gemfile: 'Gemfile'
PreCommit:
ALL:
exclude:
- 'bin/**'
- 'public/**'
- 'vendor/**'
# Checks for vulnerable versions of gems
BundleAudit:
enabled: true
on_warn: fail
# Dependency Check
BundleCheck:
enabled: true
on_warn: fail
# Style Check in HAML
HamlLint:
enabled: true
command: ['bundle', 'exec', 'haml-lint', '-c','./.haml-lint.yml', 'app/views/']
on_warn: fail
# Migration Check
RailsSchemaUpToDate:
enabled: true
on_warn: fail
# Style Check
RuboCop:
enabled: true
command: ['bundle', 'exec', 'rubocop', '-c', './.rubocop.yml']
on_warn: fail
# YAML Check
YamlSyntax:
enabled: true
on_warn: fail
PrePush:
# Security Check
Brakeman:
enabled: true
command: ['bundle', 'exec', 'brakeman', '--ignore-model-output']
on_warn: fail
# Dependency Check
BundleInstall:
enabled: true
on_warn: fail
# Unit & Integration TEST
RSpec:
enabled: true
command: ['bundle', 'exec', 'rspec', 'spec']
on_warn: fail