-
Notifications
You must be signed in to change notification settings - Fork 1
/
.overcommit.yml
43 lines (35 loc) · 964 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
PreCommit:
# Ensure no Gems with known vulnerabilities are committed
BundleAudit:
enabled: true
# Get warnings if new versions of Gems are available
BundleOutdated:
enabled: true
# Lint against changed files only
RuboCop:
enabled: true
command: ['bundle', 'exec', 'rubocop']
on_warn: fail # Treat all warnings as failures
# Ensure file execution permissions are correctly set
ExecutePermissions:
enabled: true
exclude:
- 'bin/*'
# Don't commit TODO, FIXME, etc.
FixMe:
enabled: true
# Ensure files end with a newline (to be POSIX-compliant)
TrailingWhitespace:
enabled: true
# Don't accidentally commit locally to master
ForbiddenBranches:
enabled: true
branch_patterns: ['master']
PrePush:
# Ensure all tests pass before pushing
RSpec:
enabled: true
PostMerge:
# Automatically install new dependencies when the Gemfile.lock changes
BundleInstall:
enabled: true