123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- # This configuration was generated by
- # `rubocop --auto-gen-config`
- # on 2020-10-15 20:32:09 UTC using RuboCop version 0.93.1.
- # 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: 1
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
- # SupportedStyles: case, end
- Layout/CaseIndentation:
- Exclude:
- - 'lib/shopify_api/countable.rb'
- # Offense count: 9
- # Cop supports --auto-correct.
- Layout/ClosingParenthesisIndentation:
- Exclude:
- - 'lib/shopify_api/resources/product.rb'
- - 'lib/shopify_api/resources/variant.rb'
- - 'test/application_charge_test.rb'
- - 'test/assigned_fulfillment_order_test.rb'
- - 'test/collection_test.rb'
- - 'test/recurring_application_charge_test.rb'
- # Offense count: 6
- # Cop supports --auto-correct.
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
- Layout/EmptyLineBetweenDefs:
- Exclude:
- - 'lib/shopify_api/resources/comment.rb'
- - 'lib/shopify_api/resources/fulfillment.rb'
- # Offense count: 4
- # Cop supports --auto-correct.
- Layout/EmptyLines:
- Exclude:
- - 'test/base_test.rb'
- - 'test/customer_test.rb'
- - 'test/meta_test.rb'
- # Offense count: 2
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: around, only_before
- Layout/EmptyLinesAroundAccessModifier:
- Exclude:
- - 'test/customer_saved_search_test.rb'
- - 'test/gift_card_test.rb'
- # Offense count: 3
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: empty_lines, no_empty_lines
- Layout/EmptyLinesAroundBlockBody:
- Exclude:
- - 'test/api_version_test.rb'
- - 'test/meta_test.rb'
- - 'test/tax_service_test.rb'
- # Offense count: 24
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
- Layout/EmptyLinesAroundClassBody:
- Enabled: false
- # Offense count: 1
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
- Layout/EmptyLinesAroundModuleBody:
- Exclude:
- - 'lib/shopify_api/session.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
- Layout/ExtraSpacing:
- Exclude:
- - 'lib/shopify_api/resources/product.rb'
- # Offense count: 6
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, IndentationWidth.
- # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
- Layout/FirstArgumentIndentation:
- Exclude:
- - 'test/application_charge_test.rb'
- - 'test/assigned_fulfillment_order_test.rb'
- - 'test/collection_test.rb'
- # Offense count: 12
- # Cop supports --auto-correct.
- # Configuration parameters: IndentationWidth, EnforcedStyle.
- # SupportedStyles: spaces, tabs
- Layout/IndentationStyle:
- Exclude:
- - 'test/fulfillment_service_test.rb'
- # Offense count: 4
- # Cop supports --auto-correct.
- # Configuration parameters: Width, IgnoredPatterns.
- Layout/IndentationWidth:
- Exclude:
- - 'test/fulfillment_service_test.rb'
- # Offense count: 3
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: symmetrical, new_line, same_line
- Layout/MultilineMethodCallBraceLayout:
- Exclude:
- - 'lib/shopify_api/resources/product.rb'
- - 'lib/shopify_api/resources/variant.rb'
- - 'test/fulfillment_order_test.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- Layout/RescueEnsureAlignment:
- Exclude:
- - 'lib/shopify_api/message_enricher.rb'
- # Offense count: 7
- # Cop supports --auto-correct.
- Layout/SpaceAfterColon:
- Exclude:
- - 'test/order_test.rb'
- # Offense count: 6
- # Cop supports --auto-correct.
- Layout/SpaceAfterComma:
- Exclude:
- - 'lib/active_resource/json_errors.rb'
- - 'lib/shopify_api/session.rb'
- - 'test/base_test.rb'
- - 'test/fulfillment_order_test.rb'
- - 'test/session_test.rb'
- # Offense count: 6
- # Cop supports --auto-correct.
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
- # SupportedStylesForExponentOperator: space, no_space
- Layout/SpaceAroundOperators:
- Exclude:
- - 'lib/shopify_api/resources/product.rb'
- - 'test/pagination_test.rb'
- - 'test/test_helper.rb'
- # Offense count: 4
- # Cop supports --auto-correct.
- Layout/SpaceBeforeComma:
- Exclude:
- - 'test/carrier_service_test.rb'
- - 'test/fulfillment_service_test.rb'
- # Offense count: 4
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
- # SupportedStyles: space, no_space, compact
- # SupportedStylesForEmptyBrackets: space, no_space
- Layout/SpaceInsideArrayLiteralBrackets:
- Exclude:
- - 'test/resource_feedback_test.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: space, no_space
- Layout/SpaceInsideParens:
- Exclude:
- - 'lib/shopify_api/resources/recurring_application_charge.rb'
- # Offense count: 4
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: final_newline, final_blank_line
- Layout/TrailingEmptyLines:
- Exclude:
- - 'lib/shopify_api/meta.rb'
- - 'lib/shopify_api/resources/announcement.rb'
- - 'lib/shopify_api/resources/cart.rb'
- - 'test/cart_test.rb'
- # Offense count: 3
- # Cop supports --auto-correct.
- # Configuration parameters: AllowInHeredoc.
- Layout/TrailingWhitespace:
- Exclude:
- - 'test/user_test.rb'
- # Offense count: 1
- Naming/AccessorMethodName:
- Exclude:
- - 'test/detailed_log_subscriber_test.rb'
- # Offense count: 6
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: snake_case, camelCase
- Naming/VariableName:
- Exclude:
- - 'lib/shopify_api/resources/fulfillment.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
- # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
- # 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:
- Exclude:
- - 'test/inventory_level_test.rb'
- # Offense count: 2
- # Cop supports --auto-correct.
- Style/ColonMethodCall:
- Exclude:
- - 'test/base_test.rb'
- # Offense count: 2
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, AllowInnerBackticks.
- # SupportedStyles: backticks, percent_x, mixed
- Style/CommandLiteral:
- Exclude:
- - 'shopify_api.gemspec'
- # Offense count: 1
- # Configuration parameters: AllowIfModifier.
- Style/IfInsideElse:
- Exclude:
- - 'lib/shopify_api/graphql.rb'
- # Offense count: 1
- Style/MissingRespondToMissing:
- Exclude:
- - 'lib/shopify_api/resources/asset.rb'
- # Offense count: 3
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: short, verbose
- Style/PreferredHashMethods:
- Exclude:
- - 'test/test_helper.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- Style/RedundantException:
- Exclude:
- - 'lib/shopify_api/session.rb'
- # Offense count: 2
- # Cop supports --auto-correct.
- Style/RedundantParentheses:
- Exclude:
- - 'test/session_test.rb'
- # Offense count: 5
- # Cop supports --auto-correct.
- Style/RedundantPercentQ:
- Exclude:
- - 'shopify_api.gemspec'
- # Offense count: 12
- # Cop supports --auto-correct.
- Style/RedundantSelf:
- Exclude:
- - 'lib/shopify_api/resources/base.rb'
- - 'lib/shopify_api/resources/custom_collection.rb'
- - 'lib/shopify_api/resources/customer.rb'
- - 'lib/shopify_api/resources/customer_saved_search.rb'
- - 'lib/shopify_api/resources/product.rb'
- - 'lib/shopify_api/resources/recurring_application_charge.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
- # SupportedStyles: slashes, percent_r, mixed
- Style/RegexpLiteral:
- Exclude:
- - 'lib/shopify_api/resources/image.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- Style/RescueModifier:
- Exclude:
- - 'lib/active_resource/json_errors.rb'
- # Offense count: 1
- # Cop supports --auto-correct.
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
- # AllowedMethods: present?, blank?, presence, try, try!
- Style/SafeNavigation:
- Exclude:
- - 'lib/shopify_api/resources/custom_collection.rb'
- # Offense count: 8
- # Cop supports --auto-correct.
- # Configuration parameters: AllowIfMethodIsEmpty.
- Style/SingleLineMethods:
- Exclude:
- - 'lib/shopify_api/resources/comment.rb'
- - 'lib/shopify_api/resources/fulfillment.rb'
- # Offense count: 2
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyle.
- # SupportedStyles: use_perl_names, use_english_names
- Style/SpecialGlobalVars:
- Exclude:
- - 'lib/shopify_api.rb'
- - 'shopify_api.gemspec'
- # Offense count: 7
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyleForMultiline.
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
- Style/TrailingCommaInArrayLiteral:
- Exclude:
- - 'shopify_api.gemspec'
- - 'test/fulfillment_order_test.rb'
- - 'test/fulfillment_test.rb'
- - 'test/meta_test.rb'
- # Offense count: 66
- # Cop supports --auto-correct.
- # Configuration parameters: EnforcedStyleForMultiline.
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
- Style/TrailingCommaInHashLiteral:
- Exclude:
- - 'lib/shopify_api/metafields.rb'
- - 'lib/shopify_api/resources/fulfillment_order.rb'
- - 'lib/shopify_api/resources/fulfillment_v2.rb'
- - 'lib/shopify_api/resources/inventory_level.rb'
- - 'test/fulfillment_order_test.rb'
- - 'test/fulfillment_test.rb'
- - 'test/fulfillment_v2_test.rb'
- - 'test/marketing_event_test.rb'
- - 'test/meta_test.rb'
- # Offense count: 2
- # Cop supports --auto-correct.
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
- # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
- Style/TrivialAccessors:
- Exclude:
- - 'lib/shopify_api/graphql.rb'
|