.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-11-20 16:45:49 -0500 using RuboCop version 0.60.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1828
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Enabled: false
# Offense count: 150
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Enabled: false
# Offense count: 3
Lint/FormatParameterMismatch:
Exclude:
- 'test/unit/credit_card_formatting_test.rb'
# Offense count: 2
Lint/SuppressedException:
Exclude:
- 'lib/active_merchant/billing/gateways/mastercard.rb'
- 'lib/active_merchant/billing/gateways/trust_commerce.rb'
# Offense count: 1
Lint/RescueException:
Exclude:
- 'lib/active_merchant/billing/gateways/quantum.rb'
# Offense count: 284
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
Lint/UnusedMethodArgument:
Enabled: false
# Offense count: 1418
Metrics/AbcSize:
Max: 192
# Offense count: 26
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 54
# Offense count: 9
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 6
# Offense count: 175
Metrics/CyclomaticComplexity:
Max: 36
# Offense count: 1793
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 163
IgnoredMethods:
- 'setup'
# Offense count: 2
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 129
Metrics/PerceivedComplexity:
Max: 33
# Offense count: 6
Naming/AccessorMethodName:
Exclude:
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
- 'test/remote/gateways/remote_authorize_net_cim_test.rb'
- 'test/unit/gateways/authorize_net_cim_test.rb'
# Offense count: 15
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Exclude:
- 'lib/active_merchant/billing/gateways/card_connect.rb'
- 'lib/active_merchant/billing/gateways/latitude19.rb'
- 'lib/active_merchant/billing/gateways/qbms.rb'
- 'test/remote/gateways/remote_card_connect_test.rb'
- 'test/remote/gateways/remote_card_stream_test.rb'
- 'test/remote/gateways/remote_fat_zebra_test.rb'
- 'test/remote/gateways/remote_sage_pay_test.rb'
- 'test/unit/gateways/sage_pay_test.rb'
# Offense count: 14
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/MethodParameterName:
Exclude:
- 'lib/active_merchant/billing/gateways/blue_snap.rb'
- 'lib/active_merchant/billing/gateways/cyber_source.rb'
- 'lib/active_merchant/billing/gateways/iridium.rb'
- 'lib/active_merchant/billing/gateways/latitude19.rb'
- 'lib/active_merchant/billing/gateways/merchant_ware.rb'
- 'lib/active_merchant/billing/gateways/quantum.rb'
- 'lib/active_merchant/billing/gateways/worldpay_online_payments.rb'
- 'test/unit/gateways/paypal/paypal_common_api_test.rb'
- 'test/unit/gateways/realex_test.rb'
# Offense count: 49
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'lib/active_merchant/billing/gateways/cyber_source.rb'
- 'lib/active_merchant/billing/gateways/iridium.rb'
- 'lib/active_merchant/billing/gateways/latitude19.rb'
- 'lib/active_merchant/billing/gateways/optimal_payment.rb'
- 'lib/active_merchant/billing/gateways/quantum.rb'
- 'lib/active_merchant/billing/gateways/worldpay_online_payments.rb'
- 'test/remote/gateways/remote_authorize_net_test.rb'
- 'test/remote/gateways/remote_card_stream_test.rb'
- 'test/remote/gateways/remote_worldpay_test.rb'
- 'test/unit/gateways/card_stream_test.rb'
- 'test/unit/gateways/worldpay_online_payments_test.rb'
# Offense count: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Exclude:
- 'test/unit/gateways/metrics_global_test.rb'
- 'test/unit/gateways/optimal_payment_test.rb'
# Offense count: 47
# Configuration parameters: AllowedChars.
Style/AsciiComments:
Exclude:
- 'lib/active_merchant/billing/gateways/authorize_net_arb.rb'
- 'lib/active_merchant/billing/gateways/authorize_net_cim.rb'
- 'lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb'
- 'lib/active_merchant/billing/gateways/eway_rapid.rb'
- 'lib/active_merchant/billing/gateways/netbanx.rb'
- 'lib/active_merchant/billing/gateways/ogone.rb'
- 'lib/active_merchant/billing/gateways/orbital.rb'
- 'lib/active_merchant/billing/gateways/payflow_express.rb'
- 'lib/active_merchant/billing/gateways/paystation.rb'
- 'lib/active_merchant/billing/gateways/psl_card.rb'
- 'lib/active_merchant/billing/gateways/sage.rb'
- 'test/remote/gateways/remote_data_cash_test.rb'
- 'test/remote/gateways/remote_nab_transact_test.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
Exclude:
- 'test/unit/gateways/eway_rapid_test.rb'
- 'test/unit/gateways/orbital_test.rb'
# Offense count: 77
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# IgnoredMethods: lambda, proc, it
Style/BlockDelimiters:
Enabled: false
# Offense count: 2
Style/CaseEquality:
Exclude:
- 'lib/active_merchant/billing/gateways/braintree_blue.rb'
- 'test/test_helper.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'test/unit/gateways/optimal_payment_test.rb'
- 'test/unit/gateways/realex_test.rb'
# Offense count: 30
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: is_a?, kind_of?
Style/ClassCheck:
Enabled: false
# Offense count: 8
Style/ClassVars:
Exclude:
- 'lib/active_merchant/billing/base.rb'
- 'lib/active_merchant/billing/gateway.rb'
- 'lib/active_merchant/billing/gateways/balanced.rb'
- 'lib/active_merchant/billing/gateways/cyber_source.rb'
- 'test/remote/gateways/remote_cams_test.rb'
- 'test/test_helper.rb'
# Offense count: 10
# Cop supports --auto-correct.
Style/ColonMethodCall:
Exclude:
- 'lib/active_merchant/billing/gateways/blue_pay.rb'
- 'lib/active_merchant/billing/gateways/cashnet.rb'
- 'lib/active_merchant/billing/gateways/credorax.rb'
- 'lib/active_merchant/billing/gateways/epay.rb'
- 'lib/active_merchant/billing/gateways/evo_ca.rb'
- 'lib/active_merchant/billing/gateways/ezic.rb'
- 'lib/active_merchant/billing/gateways/migs.rb'
- 'lib/active_merchant/billing/gateways/nmi.rb'
- 'test/unit/gateways/quickpay_v4to7_test.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Enabled: false # update later in next Update Rubocop PR
Style/StringConcatenation:
Enabled: false # update later in next Update Rubocop PR
Style/SingleArgumentDig:
Enabled: false # update later in next Update Rubocop PR
Style/SlicingWithRange:
Enabled: false # update later in next Update Rubocop PR
Style/HashEachMethods:
Enabled: false # update later in next Update Rubocop PR
Style/CaseLikeIf:
Enabled: false # update later in next Update Rubocop PR
Style/HashLikeCase:
Enabled: false # update later in next Update Rubocop PR
Style/GlobalStdStream:
Enabled: false # update later in next Update Rubocop PR
Style/HashTransformKeys:
Enabled: false # update later in next Update Rubocop PR
Style/HashTransformValues:
Enabled: false # update later in next Update Rubocop PR
Lint/RedundantSafeNavigation:
Enabled: false # update later in next Update Rubocop PR
Lint/EmptyConditionalBody:
Enabled: false # update later in next Update Rubocop PR
Style/SoleNestedConditional:
Exclude: # update later in next Update Rubocop PR
- 'lib/active_merchant/billing/gateways/card_connect.rb'
- 'lib/active_merchant/billing/gateways/blue_snap.rb'
# Offense count: 8
Style/CommentedKeyword:
Exclude:
- 'lib/active_merchant/billing/gateways/blue_pay.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
- 'lib/active_merchant/errors.rb'
- 'test/remote/gateways/remote_cardknox_test.rb'
- 'test/unit/gateways/cardknox_test.rb'
# Offense count: 22
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Enabled: false
# Offense count: 7
# Configuration parameters: AllowCoercion.
Style/DateTime:
Exclude:
- 'test/remote/gateways/remote_first_pay_test.rb'
- 'test/remote/gateways/remote_pin_test.rb'
- 'test/remote/gateways/remote_trexle_test.rb'
- 'test/unit/gateways/orbital_test.rb'
- 'test/unit/gateways/paypal/paypal_common_api_test.rb'
# Offense count: 211
Style/Documentation:
Enabled: false
# Offense count: 3
Style/DoubleNegation:
Exclude:
- 'lib/active_merchant/billing/gateways/balanced.rb'
- 'lib/active_merchant/billing/gateways/netbilling.rb'
- 'lib/active_merchant/billing/gateways/pay_secure.rb'
# Offense count: 18
# Cop supports --auto-correct.
Style/EachWithObject:
Exclude:
- 'lib/active_merchant/billing/avs_result.rb'
- 'lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb'
- 'lib/active_merchant/billing/gateways/cams.rb'
- 'lib/active_merchant/billing/gateways/ezic.rb'
- 'lib/active_merchant/billing/gateways/federated_canada.rb'
- 'lib/active_merchant/billing/gateways/merchant_one.rb'
- 'lib/active_merchant/billing/gateways/micropayment.rb'
- 'lib/active_merchant/billing/gateways/money_movers.rb'
- 'lib/active_merchant/billing/gateways/orbital.rb'
- 'lib/active_merchant/billing/gateways/payu_in.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
- 'lib/active_merchant/billing/model.rb'
- 'test/test_helper.rb'
- 'test/unit/gateways/authorize_net_test.rb'
# Offense count: 6
# Cop supports --auto-correct.
Style/EmptyCaseCondition:
Exclude:
- 'lib/active_merchant/billing/gateways/inspire.rb'
- 'lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb'
- 'lib/active_merchant/billing/gateways/smart_ps.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
Exclude:
- 'lib/active_merchant/billing/gateways/fat_zebra.rb'
- 'lib/active_merchant/billing/gateways/mercado_pago.rb'
- 'lib/active_merchant/billing/gateways/payeezy.rb'
- 'lib/active_merchant/billing/gateways/payment_express.rb'
# Offense count: 5
# Cop supports --auto-correct.
Style/EmptyLiteral:
Exclude:
- 'lib/active_merchant/billing/gateways/element.rb'
- 'lib/active_merchant/billing/gateways/itransact.rb'
- 'lib/active_merchant/billing/gateways/kushki.rb'
- 'lib/active_merchant/billing/gateways/transact_pro.rb'
- 'test/unit/gateways/paypal_digital_goods_test.rb'
# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'lib/active_merchant/billing/gateways/qbms.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
- 'test/remote/gateways/remote_ncr_secure_pay_test.rb'
- 'test/unit/gateways/card_connect_test.rb'
- 'test/unit/gateways/cardknox_test.rb'
- 'test/unit/gateways/latitude19_test.rb'
- 'test/unit/gateways/world_net_test.rb'
- 'test/unit/gateways/worldpay_online_payments_test.rb'
# Offense count: 23
# Cop supports --auto-correct.
Style/Encoding:
Enabled: false
# Offense count: 2
Style/EvalWithLocation:
Exclude:
- 'lib/active_merchant/billing/credit_card.rb'
- 'lib/active_merchant/billing/response.rb'
# Offense count: 5
# Cop supports --auto-correct.
Style/ExpandPathArguments:
Exclude:
- 'Rakefile'
- 'activemerchant.gemspec'
- 'script/generate'
- 'test/test_helper.rb'
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: each, for
Style/For:
Exclude:
- 'lib/active_merchant/billing/gateways/cardknox.rb'
- 'lib/active_merchant/billing/gateways/linkpoint.rb'
- 'lib/active_merchant/billing/gateways/merchant_one.rb'
- 'lib/active_merchant/billing/gateways/psl_card.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_transaction.rb'
- 'test/remote/gateways/remote_orbital_test.rb'
# Offense count: 97
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Enabled: false
# Offense count: 22
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Enabled: false
# Offense count: 679
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: when_needed, always, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 5
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'test/remote/gateways/remote_finansbank_test.rb'
- 'test/remote/gateways/remote_garanti_test.rb'
- 'test/remote/gateways/remote_secure_pay_tech_test.rb'
- 'test/unit/gateways/finansbank_test.rb'
- 'test/unit/gateways/garanti_test.rb'
Lint/MissingSuper:
Exclude:
- 'lib/active_merchant/billing/gateways/payway.rb'
- 'lib/active_merchant/billing/response.rb'
- 'lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb'
- 'lib/active_merchant/billing/gateways/orbital.rb'
- 'lib/active_merchant/billing/gateways/linkpoint.rb'
- 'lib/active_merchant/errors.rb'
# Offense count: 196
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 6
Style/IdenticalConditionalBranches:
Exclude:
- 'lib/active_merchant/billing/gateways/elavon.rb'
- 'lib/active_merchant/billing/gateways/litle.rb'
- 'lib/active_merchant/billing/gateways/payu_latam.rb'
# Offense count: 14
Style/IfInsideElse:
Exclude:
- 'lib/active_merchant/billing/credit_card.rb'
- 'lib/active_merchant/billing/gateways/authorize_net.rb'
- 'lib/active_merchant/billing/gateways/cecabank.rb'
- 'lib/active_merchant/billing/gateways/element.rb'
- 'lib/active_merchant/billing/gateways/eway_managed.rb'
- 'lib/active_merchant/billing/gateways/global_collect.rb'
- 'lib/active_merchant/billing/gateways/iridium.rb'
- 'lib/active_merchant/billing/gateways/quantum.rb'
- 'lib/active_merchant/billing/gateways/skip_jack.rb'
- 'lib/active_merchant/billing/gateways/worldpay_online_payments.rb'
# Offense count: 1
Style/IfUnlessModifierOfIfUnless:
Exclude:
- 'lib/active_merchant/billing/gateways/merchant_e_solutions.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: InverseMethods, InverseBlocks.
Style/InverseMethods:
Exclude:
- 'lib/active_merchant/billing/gateways/ogone.rb'
- 'lib/active_merchant/billing/gateways/worldpay.rb'
Enabled: false # update later in next Update Rubocop PR
# Offense count: 32
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
Style/MethodCallWithoutArgsParentheses:
Enabled: false
# Offense count: 656
Style/MultilineBlockChain:
Enabled: false
# Offense count: 15
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Exclude:
- 'lib/active_merchant/billing/compatibility.rb'
- 'lib/active_merchant/billing/gateways/authorize_net_cim.rb'
- 'lib/active_merchant/billing/gateways/bank_frick.rb'
- 'lib/active_merchant/billing/gateways/cenpos.rb'
- 'lib/active_merchant/billing/gateways/efsnet.rb'
- 'lib/active_merchant/billing/gateways/eway.rb'
- 'lib/active_merchant/billing/gateways/flo2cash.rb'
- 'lib/active_merchant/billing/gateways/itransact.rb'
- 'lib/active_merchant/billing/gateways/monei.rb'
- 'lib/active_merchant/billing/gateways/optimal_payment.rb'
- 'lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb'
- 'lib/active_merchant/billing/gateways/psigate.rb'
- 'lib/active_merchant/billing/gateways/realex.rb'
# Offense count: 6
# Cop supports --auto-correct.
Style/MultilineIfThen:
Exclude:
- 'lib/active_merchant/billing/gateways/eway_managed.rb'
# Offense count: 4
Style/MultilineTernaryOperator:
Exclude:
- 'lib/active_merchant/billing/gateways/merchant_partners.rb'
- 'lib/active_merchant/billing/gateways/ogone.rb'
- 'lib/active_merchant/billing/gateways/swipe_checkout.rb'
- 'lib/active_merchant/billing/gateways/transact_pro.rb'
# Offense count: 1
Style/MultipleComparison:
Exclude:
- 'lib/active_merchant/billing/gateways/worldpay_online_payments.rb'
# Offense count: 530
# Cop supports --auto-correct.
Style/MutableConstant:
Enabled: false
# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
Exclude:
- 'lib/active_merchant/billing/credit_card.rb'
- 'lib/active_merchant/billing/gateways/adyen.rb'
- 'lib/active_merchant/billing/gateways/itransact.rb'
- 'lib/active_merchant/billing/gateways/iveri.rb'
- 'lib/active_merchant/billing/gateways/ogone.rb'
- 'lib/active_merchant/billing/gateways/orbital.rb'
- 'lib/active_merchant/billing/gateways/qbms.rb'
- 'lib/active_merchant/billing/gateways/worldpay.rb'
- 'lib/support/ssl_verify.rb'
- 'test/remote/gateways/remote_paypal_test.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/NestedModifier:
Exclude:
- 'lib/active_merchant/billing/gateways/merchant_e_solutions.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: Whitelist.
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
Style/NestedParenthesizedCalls:
Exclude:
- 'lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinBodyLength.
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
Exclude:
- 'lib/active_merchant/billing/gateways/authorize_net.rb'
- 'lib/support/outbound_hosts.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: predicate, comparison
Style/NilComparison:
Exclude:
- 'lib/active_merchant/billing/gateways/card_stream.rb'
- 'lib/active_merchant/billing/gateways/litle.rb'
- 'lib/active_merchant/billing/gateways/telr.rb'
- 'test/unit/gateways/braintree_blue_test.rb'
- 'test/unit/gateways/stripe_test.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IncludeSemanticChanges.
Style/NonNilCheck:
Exclude:
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/Not:
Exclude:
- 'test/remote/gateways/remote_paypal_test.rb'
- 'test/test_helper.rb'
- 'test/unit/gateways/braintree_blue_test.rb'
# Offense count: 19
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'lib/active_merchant/billing/gateways/psl_card.rb'
- 'test/remote/gateways/remote_axcessms_test.rb'
- 'test/remote/gateways/remote_cecabank_test.rb'
- 'test/remote/gateways/remote_cenpos_test.rb'
- 'test/remote/gateways/remote_culqi_test.rb'
- 'test/remote/gateways/remote_litle_certification_test.rb'
- 'test/remote/gateways/remote_opp_test.rb'
- 'test/remote/gateways/remote_pay_junction_v2_test.rb'
- 'test/remote/gateways/remote_tns_test.rb'
- 'test/unit/credit_card_formatting_test.rb'
- 'test/unit/gateways/axcessms_test.rb'
- 'test/unit/gateways/opp_test.rb'
- 'test/unit/gateways/pay_junction_v2_test.rb'
# Offense count: 466
# Cop supports --auto-correct.
# Configuration parameters: Strict.
Style/NumericLiterals:
MinDigits: 17
# Offense count: 41
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
Style/OrAssignment:
Exclude:
- 'lib/active_merchant/billing/gateways/net_registry.rb'
# Offense count: 24
# Cop supports --auto-correct.
Style/ParallelAssignment:
Enabled: false
# Offense count: 879
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false
# Offense count: 6
# Cop supports --auto-correct.
Style/PerlBackrefs:
Exclude:
- 'lib/active_merchant/billing/gateways/qvalent.rb'
- 'lib/active_merchant/billing/gateways/sage_pay.rb'
- 'lib/support/outbound_hosts.rb'
- 'test/unit/gateways/payu_in_test.rb'
# Offense count: 96
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: short, verbose
Style/PreferredHashMethods:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Style/Proc:
Exclude:
- 'test/unit/credit_card_methods_test.rb'
- 'test/unit/gateways/nab_transact_test.rb'
# Offense count: 31
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Enabled: false
# Offense count: 86
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Enabled: false
# Offense count: 179
# Cop supports --auto-correct.
Style/RedundantSelf:
Enabled: false
# Offense count: 1209
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Enabled: false
# Offense count: 15
# Cop supports --auto-correct.
Style/RescueModifier:
Exclude:
- 'lib/active_merchant/billing/gateways/clearhaus.rb'
- 'lib/active_merchant/billing/gateways/cyber_source.rb'
- 'lib/active_merchant/billing/gateways/jetpay.rb'
- 'lib/active_merchant/billing/gateways/jetpay_v2.rb'
- 'lib/active_merchant/billing/gateways/optimal_payment.rb'
- 'lib/active_merchant/billing/gateways/payflow/payflow_response.rb'
- 'lib/active_merchant/billing/gateways/sage.rb'
- 'lib/active_merchant/billing/gateways/secure_pay.rb'
- 'lib/active_merchant/billing/gateways/telr.rb'
- 'test/remote/gateways/remote_secure_pay_au_test.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'lib/active_merchant/billing/base.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/SelfAssignment:
Exclude:
- 'lib/active_merchant/billing/credit_card.rb'
- 'lib/active_merchant/billing/gateways/barclaycard_smartpay.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'lib/active_merchant/billing/gateways/ezic.rb'
- 'lib/active_merchant/billing/gateways/merchant_one.rb'
- 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb'
- 'test/remote/gateways/remote_orbital_test.rb'
- 'test/unit/gateways/cardknox_test.rb'
- 'test/unit/gateways/omise_test.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
Exclude:
- 'test/unit/gateways/paypal/paypal_common_api_test.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'lib/active_merchant/billing/credit_card_methods.rb'
- 'test/unit/gateways/netaxept_test.rb'
- 'test/unit/gateways/usa_epay_transaction_test.rb'
# Offense count: 34
# Cop supports --auto-correct.
Style/ZeroLengthPredicate:
Enabled: false
# Offense count: 9321
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 2602