-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
40 lines (40 loc) · 1 KB
/
.pre-commit-config.yaml
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
exclude: |
(?x)^(
.idea/.*|
config/database.yml|
config/credentials/.*.enc
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
# if this becomes unwieldy...
# ref: https://pre-commit.com/#regular-expressions
exclude: |
(?x)^(
config/database.yml|
config/credentials/.*.enc
)$
args:
- --unsafe
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: rubocop
name: standard styleguide must be applied
exclude: |
(?x)^(
config/database.yml|
config/credentials/.*.enc|
db/schema.rb
)$
language: ruby
files: '.*\.rb$'
entry: 'bundle exec rubocop -c .rubocop.yml -A'
- id: erb-lint
name: standard styleguide must be applied
language: ruby
files: '.*\.erb$'
entry: 'bundle exec erblint -a'