|
1 | 1 | require: |
2 | 2 | - solidus_dev_support/rubocop |
3 | | - |
4 | | -AllCops: |
5 | | - NewCops: disable |
6 | | - TargetRubyVersion: '3.0' |
7 | | - Exclude: |
8 | | - - sandbox/**/* |
9 | | - - dummy-app/**/* |
10 | | - - spec/dummy/**/* |
11 | | - - vendor/bundle/**/* |
12 | | - |
13 | | -Layout/FirstArgumentIndentation: |
14 | | - EnforcedStyle: consistent |
15 | | - |
16 | | -Layout/FirstArrayElementIndentation: |
17 | | - EnforcedStyle: consistent |
18 | | - |
19 | | -Layout/FirstHashElementIndentation: |
20 | | - EnforcedStyle: consistent |
21 | | - |
22 | | -Layout/MultilineMethodCallIndentation: |
23 | | - EnforcedStyle: indented |
24 | | - |
25 | | -Naming/VariableNumber: |
26 | | - Enabled: false |
27 | | - |
28 | | -# We use this extensively, the alternatives are not viable or desirable. |
29 | | -RSpec/AnyInstance: |
30 | | - Enabled: false |
31 | | - |
32 | | -# No need to make the code more complex for no real gain. |
33 | | -RSpec/MessageSpies: |
34 | | - Enabled: false |
35 | | - |
36 | | -# Let's consider legitimate to have multiple expectations within an example. |
37 | | -RSpec/MultipleExpectations: |
38 | | - Enabled: false |
39 | | - |
40 | | -# Allow to use subject as is, no big deal. |
41 | | -RSpec/NamedSubject: |
42 | | - Enabled: false |
43 | | - |
44 | | -# Let's set this to some really exagerate value. |
45 | | -RSpec/NestedGroups: |
46 | | - Max: 8 |
47 | | - |
48 | | -# We don't use the FactoryBot mixin |
49 | | -RSpec/FactoryBot/SyntaxMethods: |
50 | | - Enabled: false |
51 | | - |
52 | | -RSpec/VerifiedDoubles: |
53 | | - # Sometimes you really need an "anything" double |
54 | | - IgnoreSymbolicNames: true |
55 | | - |
56 | | -Style/FrozenStringLiteralComment: |
57 | | - Exclude: |
58 | | - - spec/**/* |
59 | | - - db/migrate/**/* |
60 | | - - bin/**/* |
61 | | - |
62 | | -Style/ExplicitBlockArgument: |
63 | | - Exclude: |
64 | | - - lib/solidus_braintree/request_protection.rb |
65 | | - |
66 | | -Rails/SkipsModelValidations: |
67 | | - Exclude: |
68 | | - - db/migrate/**/* |
69 | | - |
70 | | -Rails/ReflectionClassName: |
71 | | - Exclude: |
72 | | - - app/models/solidus_braintree/customer.rb |
73 | | - - app/models/solidus_braintree/source.rb |
74 | | - |
75 | | -RSpec/MultipleMemoizedHelpers: |
76 | | - Exclude: |
77 | | - - spec/models/solidus_braintree/transaction_import_spec.rb |
78 | | - - spec/models/solidus_braintree/response_spec.rb |
79 | | - - spec/models/solidus_braintree/gateway_spec.rb |
80 | | - - spec/controllers/solidus_braintree/client_tokens_controller_spec.rb |
81 | | - - spec/system/frontend/braintree_credit_card_checkout_spec.rb |
82 | | - - spec/system/frontend/paypal_checkout_spec.rb |
83 | | - |
84 | | -Rails/ApplicationRecord: |
85 | | - Exclude: |
86 | | - - db/migrate/* |
0 commit comments