@@ -15,11 +15,114 @@ AllCops:
15
15
- " lib/active_merchant/billing/gateways/paypal_express.rb"
16
16
- " vendor/**/*"
17
17
ExtraDetails : false
18
- TargetRubyVersion : 2.3
18
+ TargetRubyVersion : 3.1
19
19
20
20
# Active Merchant gateways are not amenable to length restrictions
21
21
Metrics/ClassLength :
22
22
Enabled : false
23
23
24
24
Metrics/ModuleLength :
25
25
Enabled : false
26
+
27
+ Layout/ParameterAlignment :
28
+ EnforcedStyle : with_fixed_indentation
29
+
30
+ Layout/DotPosition :
31
+ EnforcedStyle : trailing
32
+
33
+ Layout/CaseIndentation :
34
+ EnforcedStyle : end
35
+
36
+ Layout/FirstHashElementIndentation :
37
+ EnforcedStyle : consistent
38
+
39
+ Naming/PredicateName :
40
+ Exclude :
41
+ - " lib/active_merchant/billing/gateways/payeezy.rb"
42
+ - ' lib/active_merchant/billing/gateways/airwallex.rb'
43
+
44
+ Gemspec/DateAssignment : # (new in 1.10)
45
+ Enabled : true
46
+ Layout/SpaceBeforeBrackets : # (new in 1.7)
47
+ Enabled : true
48
+ Lint/AmbiguousAssignment : # (new in 1.7)
49
+ Enabled : true
50
+ Lint/DeprecatedConstants : # (new in 1.8)
51
+ Enabled : true # update later in next Update Rubocop PR
52
+ Lint/DuplicateBranch : # (new in 1.3)
53
+ Enabled : false
54
+ Lint/DuplicateRegexpCharacterClassElement : # (new in 1.1)
55
+ Enabled : true
56
+ Lint/EmptyBlock : # (new in 1.1)
57
+ Enabled : false # update later in next Update Rubocop PR
58
+ Exclude :
59
+ - ' lib/active_merchant/billing/gateways/authorize_net.rb'
60
+ - ' lib/active_merchant/billing/gateways/secure_net.rb'
61
+ Lint/EmptyClass : # (new in 1.3)
62
+ Enabled : true
63
+ Lint/FloatComparison :
64
+ Exclude :
65
+ - ' lib/active_merchant/billing/gateways/payu_latam.rb'
66
+ Lint/LambdaWithoutLiteralBlock : # (new in 1.8)
67
+ Enabled : true
68
+ Lint/NonDeterministicRequireOrder :
69
+ Exclude :
70
+ - ' script/generate'
71
+ Lint/NoReturnInBeginEndBlocks : # (new in 1.2)
72
+ Enabled : true
73
+ Exclude :
74
+ - ' lib/active_merchant/billing/gateways/fat_zebra.rb'
75
+ - ' lib/active_merchant/billing/gateways/netbanx.rb'
76
+ - ' lib/active_merchant/billing/gateways/payway_dot_com.rb'
77
+ Lint/NumberedParameterAssignment : # (new in 1.9)
78
+ Enabled : true
79
+ Lint/OrAssignmentToConstant : # (new in 1.9)
80
+ Enabled : true
81
+ Lint/RedundantDirGlobSort : # (new in 1.8)
82
+ Enabled : true
83
+ Lint/SymbolConversion : # (new in 1.9)
84
+ Enabled : true
85
+ Lint/ToEnumArguments : # (new in 1.1)
86
+ Enabled : true
87
+ Lint/TripleQuotes : # (new in 1.9)
88
+ Enabled : true
89
+ Lint/UnexpectedBlockArity : # (new in 1.5)
90
+ Enabled : true
91
+ Lint/UnmodifiedReduceAccumulator : # (new in 1.1)
92
+ Enabled : true
93
+ Style/ArgumentsForwarding : # (new in 1.1)
94
+ Enabled : true
95
+ Style/CollectionCompact : # (new in 1.2)
96
+ Enabled : false # update later in next Update Rubocop PR
97
+ Style/DocumentDynamicEvalDefinition : # (new in 1.1)
98
+ Enabled : true
99
+ Exclude :
100
+ - ' lib/active_merchant/billing/credit_card.rb'
101
+ - ' lib/active_merchant/billing/response.rb'
102
+ Style/EndlessMethod : # (new in 1.8)
103
+ Enabled : true
104
+ Style/HashConversion : # (new in 1.10)
105
+ Enabled : true
106
+ Exclude :
107
+ - ' lib/active_merchant/billing/gateways/payscout.rb'
108
+ - ' lib/active_merchant/billing/gateways/pac_net_raven.rb'
109
+ Style/HashExcept : # (new in 1.7)
110
+ Enabled : true
111
+ Style/IfWithBooleanLiteralBranches : # (new in 1.9)
112
+ Enabled : false # update later in next Update Rubocop PR
113
+ Style/NegatedIfElseCondition : # (new in 1.2)
114
+ Enabled : true
115
+ Style/NilLambda : # (new in 1.3)
116
+ Enabled : true
117
+ Style/RedundantArgument : # (new in 1.4)
118
+ Enabled : false # update later in next Update Rubocop PR
119
+ Style/StringChars : # (new in 1.12)
120
+ Enabled : false # update later in next Update Rubocop PR
121
+ Style/SwapValues : # (new in 1.1)
122
+ Enabled : true
123
+ Naming/VariableNumber :
124
+ Enabled : false
125
+ Style/OptionalBooleanParameter :
126
+ Enabled : false
127
+ Style/RedundantRegexpEscape :
128
+ Enabled : false
0 commit comments