-
Notifications
You must be signed in to change notification settings - Fork 2
/
.overcommit.yml
57 lines (48 loc) · 1.24 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
verify_plugin_signatures: false
# We ignore the following git hooks provided by overcommit for now
PostCheckout:
ALL:
enabled: false
CommitMsg:
ALL:
enabled: false
# Custom options for Iris repository
PreCommit:
# 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'
TrailingWhitespace:
enabled: true
description: 'Checking for trailing whitespace'
exclude:
- 'spec/cassettes/**/*.yml'
- 'app/assets/**/*.svg'
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'
JsHint:
enabled: true
description: 'Analyzing with JSHint'
required_executable: 'jshint'
install_command: 'npm install'
Jscs:
enabled: true
description: 'Analyzing with JSCS'
required_executable: 'jscs'
install_command: 'npm install'
RailsBestPractices:
enabled: true
description: 'Checking Rails best practices'