|
@@ -1,6 +1,6 @@
|
|
|
# This configuration was generated by
|
|
|
# `rubocop --auto-gen-config`
|
|
|
-# on 2020-10-05 17:42:41 UTC using RuboCop version 0.92.0.
|
|
|
+# on 2020-10-05 18:45:45 UTC using RuboCop version 0.92.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
|
|
@@ -106,6 +106,13 @@ Layout/IndentationWidth:
|
|
|
Exclude:
|
|
|
- 'test/fulfillment_service_test.rb'
|
|
|
|
|
|
+# Offense count: 83
|
|
|
+# Cop supports --auto-correct.
|
|
|
+# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
|
+# URISchemes: http, https
|
|
|
+Layout/LineLength:
|
|
|
+ Max: 320
|
|
|
+
|
|
|
# Offense count: 2
|
|
|
# Cop supports --auto-correct.
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
@@ -143,7 +150,6 @@ Layout/SpaceAfterComma:
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
# SupportedStyles: space, no_space
|
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
- Enabled: false
|
|
|
Exclude:
|
|
|
- 'lib/shopify_api/limits.rb'
|
|
|
|
|
@@ -165,8 +171,7 @@ Layout/SpaceAroundOperators:
|
|
|
# SupportedStyles: space, no_space
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
Layout/SpaceBeforeBlockBraces:
|
|
|
- # EnforcedStyle: space
|
|
|
- Enabled: false
|
|
|
+ EnforcedStyle: space
|
|
|
|
|
|
# Offense count: 4
|
|
|
# Cop supports --auto-correct.
|
|
@@ -181,9 +186,8 @@ Layout/SpaceBeforeComma:
|
|
|
# SupportedStyles: space, no_space, compact
|
|
|
# SupportedStylesForEmptyBrackets: space, no_space
|
|
|
Layout/SpaceInsideArrayLiteralBrackets:
|
|
|
- Enabled: false
|
|
|
- # Exclude:
|
|
|
- # - 'test/resource_feedback_test.rb'
|
|
|
+ Exclude:
|
|
|
+ - 'test/resource_feedback_test.rb'
|
|
|
|
|
|
# Offense count: 5
|
|
|
# Cop supports --auto-correct.
|
|
@@ -202,8 +206,7 @@ Layout/SpaceInsideBlockBraces:
|
|
|
# SupportedStyles: space, no_space, compact
|
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
|
- Enabled: false
|
|
|
- # EnforcedStyle: space
|
|
|
+ EnforcedStyle: space
|
|
|
|
|
|
# Offense count: 1
|
|
|
# Cop supports --auto-correct.
|
|
@@ -213,7 +216,7 @@ Layout/SpaceInsideParens:
|
|
|
Exclude:
|
|
|
- 'lib/shopify_api/resources/recurring_application_charge.rb'
|
|
|
|
|
|
-# Offense count: 5
|
|
|
+# Offense count: 4
|
|
|
# Cop supports --auto-correct.
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
# SupportedStyles: final_newline, final_blank_line
|
|
@@ -223,7 +226,6 @@ Layout/TrailingEmptyLines:
|
|
|
- 'lib/shopify_api/resources/announcement.rb'
|
|
|
- 'lib/shopify_api/resources/cart.rb'
|
|
|
- 'test/cart_test.rb'
|
|
|
- - 'test/metafield_test.rb'
|
|
|
|
|
|
# Offense count: 8
|
|
|
# Cop supports --auto-correct.
|
|
@@ -236,75 +238,6 @@ Layout/TrailingWhitespace:
|
|
|
- 'test/storefront_access_token_test.rb'
|
|
|
- 'test/user_test.rb'
|
|
|
|
|
|
-# Offense count: 1
|
|
|
-# Cop supports --auto-correct.
|
|
|
-Lint/AmbiguousOperator:
|
|
|
- Exclude:
|
|
|
- - 'test/price_rule_test.rb'
|
|
|
-
|
|
|
-# Offense count: 3
|
|
|
-# Configuration parameters: AllowSafeAssignment.
|
|
|
-Lint/AssignmentInCondition:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/session.rb'
|
|
|
-
|
|
|
-# Offense count: 2
|
|
|
-# Cop supports --auto-correct.
|
|
|
-Lint/DeprecatedOpenSSLConstant:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/session.rb'
|
|
|
- - 'test/session_test.rb'
|
|
|
-
|
|
|
-# Offense count: 2
|
|
|
-Lint/MissingSuper:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/graphql/http_client.rb'
|
|
|
- - 'test/api_version_test.rb'
|
|
|
-
|
|
|
-# Offense count: 1
|
|
|
-# Configuration parameters: AllowComments.
|
|
|
-Lint/SuppressedException:
|
|
|
- Exclude:
|
|
|
- - 'test/test_helper.rb'
|
|
|
-
|
|
|
-# Offense count: 1
|
|
|
-# Configuration parameters: AllowKeywordBlockArguments.
|
|
|
-Lint/UnderscorePrefixedVariableName:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/resources/base.rb'
|
|
|
-
|
|
|
-# Offense count: 12
|
|
|
-# Cop supports --auto-correct.
|
|
|
-# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
|
-Lint/UnusedBlockArgument:
|
|
|
- Exclude:
|
|
|
- - 'test/graphql_test.rb'
|
|
|
- - 'test/lib/webmock_extensions/last_request.rb'
|
|
|
-
|
|
|
-# Offense count: 2
|
|
|
-# Cop supports --auto-correct.
|
|
|
-# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
|
-Lint/UnusedMethodArgument:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/resources/asset.rb'
|
|
|
- - 'test/test_helper.rb'
|
|
|
-
|
|
|
-# Offense count: 9
|
|
|
-Lint/UselessAssignment:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/resources/line_item.rb'
|
|
|
- - 'test/asset_test.rb'
|
|
|
- - 'test/blog_test.rb'
|
|
|
- - 'test/metafield_test.rb'
|
|
|
- - 'test/pagination_test.rb'
|
|
|
- - 'test/tax_service_test.rb'
|
|
|
-
|
|
|
-# Offense count: 1
|
|
|
-# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
|
-Lint/Void:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/pagination_link_headers.rb'
|
|
|
-
|
|
|
# Offense count: 1
|
|
|
Naming/AccessorMethodName:
|
|
|
Exclude:
|
|
@@ -351,20 +284,13 @@ Style/IfInsideElse:
|
|
|
Exclude:
|
|
|
- 'lib/shopify_api/graphql.rb'
|
|
|
|
|
|
-# Offense count: 480
|
|
|
+# Offense count: 479
|
|
|
# Cop supports --auto-correct.
|
|
|
# Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
|
|
|
# SupportedStyles: require_parentheses, omit_parentheses
|
|
|
Style/MethodCallWithArgsParentheses:
|
|
|
Enabled: false
|
|
|
|
|
|
-# Offense count: 1
|
|
|
-# Cop supports --auto-correct.
|
|
|
-# Configuration parameters: IgnoredMethods.
|
|
|
-Style/MethodCallWithoutArgsParentheses:
|
|
|
- Exclude:
|
|
|
- - 'lib/shopify_api/session.rb'
|
|
|
-
|
|
|
# Offense count: 1
|
|
|
Style/MissingRespondToMissing:
|
|
|
Exclude:
|
|
@@ -383,7 +309,6 @@ Style/PreferredHashMethods:
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
# SupportedStyles: compact, exploded
|
|
|
Style/RaiseArgs:
|
|
|
- Enabled: false
|
|
|
Exclude:
|
|
|
- 'lib/shopify_api/pagination_link_headers.rb'
|
|
|
|
|
@@ -399,6 +324,13 @@ Style/RedundantPercentQ:
|
|
|
Exclude:
|
|
|
- 'shopify_api.gemspec'
|
|
|
|
|
|
+# Offense count: 1
|
|
|
+# Cop supports --auto-correct.
|
|
|
+# Configuration parameters: AllowMultipleReturnValues.
|
|
|
+Style/RedundantReturn:
|
|
|
+ Exclude:
|
|
|
+ - 'lib/shopify_api/resources/base.rb'
|
|
|
+
|
|
|
# Offense count: 11
|
|
|
# Cop supports --auto-correct.
|
|
|
Style/RedundantSelf:
|
|
@@ -483,10 +415,3 @@ Style/TrailingCommaInHashLiteral:
|
|
|
Style/TrivialAccessors:
|
|
|
Exclude:
|
|
|
- 'lib/shopify_api/graphql.rb'
|
|
|
-
|
|
|
-# Offense count: 83
|
|
|
-# Cop supports --auto-correct.
|
|
|
-# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
|
-# URISchemes: http, https
|
|
|
-Layout/LineLength:
|
|
|
- Max: 320
|