-
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 Admin repository
PreCommit:
BundleCheck:
enabled: true
# Ignore all Overcommit default options
ALL:
enabled: false
on_warn: fail
# Enable explicitly each desired pre commit check
RailsBestPractices:
enabled: true
description: 'Checking Rails best practices'
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'
YamlSyntax:
enabled: true
description: 'Checking YAML syntax'
TrailingWhitespace:
enabled: true
description: 'Checking for trailing whitespace'
exclude:
- 'spec/javascript/**/*.snap'
- 'app/assets/**/*.svg'
- 'public/**/*.svg'
Standard:
enabled: true
description: 'Linting JavaScript'
required_executable: './node_modules/.bin/standard'
exclude:
- 'node_modules/**/*.js'
- 'spec/javascript/fixtures/*.js'
- 'app/assets/javascripts/cable.js'
CustomScript:
enabled: true
required_executable: './bin/overcommit-pre-commit'