-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
.rubocop.yml
86 lines (67 loc) · 1.97 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
require:
- solidus_dev_support/rubocop
AllCops:
NewCops: disable
TargetRubyVersion: '3.0'
Exclude:
- sandbox/**/*
- dummy-app/**/*
- spec/dummy/**/*
- vendor/bundle/**/*
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Naming/VariableNumber:
Enabled: false
# We use this extensively, the alternatives are not viable or desirable.
RSpec/AnyInstance:
Enabled: false
# No need to make the code more complex for no real gain.
RSpec/MessageSpies:
Enabled: false
# Let's consider legitimate to have multiple expectations within an example.
RSpec/MultipleExpectations:
Enabled: false
# Allow to use subject as is, no big deal.
RSpec/NamedSubject:
Enabled: false
# Let's set this to some really exagerate value.
RSpec/NestedGroups:
Max: 8
# We don't use the FactoryBot mixin
RSpec/FactoryBot/SyntaxMethods:
Enabled: false
RSpec/VerifiedDoubles:
# Sometimes you really need an "anything" double
IgnoreSymbolicNames: true
Style/FrozenStringLiteralComment:
Exclude:
- spec/**/*
- db/migrate/**/*
- bin/**/*
Style/ExplicitBlockArgument:
Exclude:
- lib/solidus_braintree/request_protection.rb
Rails/SkipsModelValidations:
Exclude:
- db/migrate/**/*
Rails/ReflectionClassName:
Exclude:
- app/models/solidus_braintree/customer.rb
- app/models/solidus_braintree/source.rb
RSpec/MultipleMemoizedHelpers:
Exclude:
- spec/models/solidus_braintree/transaction_import_spec.rb
- spec/models/solidus_braintree/response_spec.rb
- spec/models/solidus_braintree/gateway_spec.rb
- spec/controllers/solidus_braintree/client_tokens_controller_spec.rb
- spec/system/frontend/braintree_credit_card_checkout_spec.rb
- spec/system/frontend/paypal_checkout_spec.rb
Rails/ApplicationRecord:
Exclude:
- db/migrate/*