-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.overcommit.yml
47 lines (40 loc) · 983 Bytes
/
.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
PreCommit:
RuboCop: # Style Check
enabled: true
command: ["bundle", "exec", "rubocop", "-c", "./.rubocop.yml"]
on_warn: fail
BundleInstall: # Ensure gem are installed
enabled: true
on_warn: fail
RailsBestPractices: # Check best practices
enabled: true
command:
[
"bundle",
"exec",
"rails_best_practices",
"--config",
"./..rails_best_practices.yml",
".",
]
on_warn: pass
Fasterer: # Check performance
enabled: true
Brakeman: # Security Check
enabled: true
command: ["bundle", "exec", "brakeman"]
on_warn: fail
YamlSyntax: # YAML Check
enabled: true
on_warn: fail
RailsSchemaUpToDate: # Migration Check
enabled: true
on_warn: fail
HardTabs: # Checks for hard tabs in files
enabled: true
on_warn: fail
PrePush:
RSpec: # Unit & Integration TEST
enabled: true
command: ["bundle", "exec", "rspec", "spec"]
on_warn: fail