forked from SFDigitalServices/sf-dahlia-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.overcommit.yml
62 lines (51 loc) · 1.34 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
55
56
57
58
59
60
61
62
verify_signatures: false
# We ignore the following git hooks provided by overcommit for now
PostCheckout:
ALL:
enabled: false
CommitMsg:
ALL:
enabled: false
# Custom options for Dahlia repository
PreCommit:
BundleCheck:
enabled: true
# Ignore all Overcommit default options
ALL:
enabled: false
on_warn: fail
# Enable explicitly each desired pre commit check
RuboCop:
enabled: true
description: 'Analyzing with Rubocop'
required_executable: 'rubocop'
RailsSchemaUpToDate:
enabled: true
description: 'Checking if database schema is up to date'
include:
- 'db/migrate/*.rb'
- 'db/schema.rb'
- 'db/structure.sql'
YamlSyntax:
enabled: true
description: 'Checking YAML syntax'
RailsBestPractices:
enabled: true
description: 'Checking Rails best practices'
CoffeeLint:
enabled: true
description: 'Analyzing with CoffeeLint'
install_command: 'npm install'
required_executable: 'npm'
command: ['npm', 'run', 'coffeelint']
TrailingWhitespace:
enabled: true
description: 'Checking for trailing whitespace'
exclude:
- 'spec/vcr/**/*.yml'
- 'app/assets/**/*.svg'
- 'public/images/**/*.svg'
- 'lib/assets/bower_components/**/*'
CustomScript:
enabled: true
required_executable: './bin/overcommit-pre-commit'