-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
71 lines (56 loc) · 1.32 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes # To always allow #{interpolation}, and reduce fatigue from changing strings
Rails/HasAndBelongsToMany:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
Rails/ReflectionClassName:
Enabled: false
Metrics/BlockLength:
Enabled: true
Exclude:
- 'spec/**/*'
- 'db/migrate/*'
Metrics/MethodLength:
Max: 20
Exclude:
- 'db/migrate/*'
Rails/EnvironmentVariableAccess:
Enabled: false
AllCops:
NewCops: enable
Exclude:
- 'config/initializers/devise.rb'
- 'db/schema.rb'
- 'node_modules/**/*'
- 'bin/**/*'
- 'tmp/**/*'
- 'Guardfile'
- 'spec/rails_helper.rb'
- 'db/migrate/**/*'
- 'vendor/**/*'
Style/SymbolArray:
MinSize: 4
Exclude:
- 'config/routes.rb'
Metrics/AbcSize:
Max: 20
RSpec/DescribeClass:
Exclude:
- 'spec/features/**/*'
# Ref discussion here: https://github.com/rubocop/rubocop-rspec/pull/1365
# InferredSpecType is going to be depreciated, and causes problems for view files together with DescribeClass
RSpecRails/InferredSpecType:
Enabled: false