-
Notifications
You must be signed in to change notification settings - Fork 19
/
.overcommit.yml
75 lines (64 loc) · 1.64 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
63
64
65
66
67
68
69
70
71
72
73
74
75
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"
exclude:
- "**/__snapshots__/*"
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/**/*"
- "**/__snapshots__/*"
CustomScript:
enabled: true
required_executable: "./bin/overcommit-pre-commit"
EsLint:
command: ["yarn"]
flags: ["eslint", "--quiet", "--format=compact"]
description: "Linting React with Eslint"
enabled: true
include:
- "**/*.ts"
- "**/*.tsx"
- "**/*.js"
- "**/*.jsx"