-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
52 lines (41 loc) · 998 Bytes
/
.rubocop.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
# Rubocop overrides, double quotes, and more provided by
# the testdouble/standard gem
# ref: https://github.com/testdouble/standard
# ref: https://github.com/rubocop/rubocop/blob/master/config/default.yml
require:
- standard
- rubocop-rails
- rubocop-rspec
inherit_gem:
standard: config/base.yml
Layout/ArgumentAlignment:
EnforcedStyle: with_first_argument
Layout/MultilineMethodCallIndentation:
EnforcedStyle: aligned
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
Rails/FilePath:
EnforcedStyle: arguments
Rails/UnknownEnv:
Enabled: false
# Ref: https://github.com/rubocop/rubocop-rspec/issues/210
RSpec/ExampleLength:
CountAsOne:
- heredoc
Max: 11
RSpec/NestedGroups:
Max: 5
AllCops:
NewCops: enable
Exclude:
- bin/*
- node_modules/**/*
- public/**/*
- vendor/**/*
- coverage/**/*
Rails:
Enabled: true # enable rubocop-rails cops
RSpec:
Enabled: true # enable rubocop-rspec cops
RSpec/DescribeClass:
Enabled: false