-
Notifications
You must be signed in to change notification settings - Fork 24
/
.rubocop.yml
74 lines (58 loc) · 1.64 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
require:
- solidus_dev_support/rubocop
AllCops:
NewCops: disable
TargetRubyVersion: "3.1"
Exclude:
- sandbox/**/*
- dummy-app/**/*
- spec/dummy/**/*
- vendor/bundle/**/*
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Naming/VariableNumber:
# PayPal uses snake_case, we use normal_case ¯\_(ツ)_/¯
Enabled: false
# We use this extensively, the alternatives are not viable or desirable.
RSpec/AnyInstance:
Enabled: false
# System specs are not describing any class or module.
RSpec/DescribeClass:
Exclude:
- spec/system/**/*
# 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
RSpec/VerifiedDoubles:
# Sometimes you really need an "anything" double
IgnoreSymbolicNames: true
Style/FrozenStringLiteralComment:
Exclude:
- spec/**/*
- db/migrate/**/*
- bin/**/*
Security/YAMLLoad:
Exclude:
- spec/**/*
RSpec/MultipleMemoizedHelpers:
Exclude:
- spec/jobs/solidus_paypal_commerce_platform/webhook_job_spec.rb
- spec/models/solidus_paypal_commerce_platform/payment_method_spec.rb
- spec/models/solidus_paypal_commerce_platform/payment_source_spec.rb
Rails/Inquiry:
Enabled: true
Exclude:
- spec/lib/solidus_paypal_commerce_platform/configuration_spec.rb
Layout/LineLength:
Enabled: false