-
Notifications
You must be signed in to change notification settings - Fork 8
/
.rubocop.yml
52 lines (45 loc) · 1.01 KB
/
.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
require:
- standard
- rubocop-rails
- rubocop-rspec
- rubocop-performance
inherit_mode:
merge:
- Exclude
inherit_gem:
standard: config/base.yml
AllCops:
SuggestExtensions: false
NewCops: enable
Exclude:
- bin/**/*
- node_modules/**/*
- public/**/*
- bin/bundle
- playground/vanilla/bin/bundle
Rails:
Enabled: true # enable rubocop-rails cops
Rails/Delegate:
Enabled: false
RSpec:
Enabled: true # enable rubocop-rspec cops
RSpec/DescribeClass:
Enabled: false # ignore missing comments on classes
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/DescribedClass:
Enabled: false
RSpec/Capybara/FeatureMethods:
Enabled: false
# Trailing Commas
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
# Outdent Access Modifier
Layout/AccessModifierIndentation:
EnforcedStyle: outdent