.rubocop_todo.yml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config`
  3. # on 2020-10-05 17:42:41 UTC using RuboCop version 0.92.0.
  4. # The point is for the user to remove these configuration records
  5. # one by one as the offenses are removed from the code base.
  6. # Note that changes in the inspected code, or installation of new
  7. # versions of RuboCop, may require this file to be generated again.
  8. # Offense count: 1
  9. # Cop supports --auto-correct.
  10. # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
  11. # SupportedStyles: case, end
  12. Layout/CaseIndentation:
  13. Exclude:
  14. - 'lib/shopify_api/countable.rb'
  15. # Offense count: 8
  16. # Cop supports --auto-correct.
  17. Layout/ClosingParenthesisIndentation:
  18. Exclude:
  19. - 'lib/shopify_api/resources/product.rb'
  20. - 'lib/shopify_api/resources/variant.rb'
  21. - 'test/application_charge_test.rb'
  22. - 'test/assigned_fulfillment_order_test.rb'
  23. - 'test/collection_test.rb'
  24. # Offense count: 6
  25. # Cop supports --auto-correct.
  26. # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
  27. Layout/EmptyLineBetweenDefs:
  28. Exclude:
  29. - 'lib/shopify_api/resources/comment.rb'
  30. - 'lib/shopify_api/resources/fulfillment.rb'
  31. # Offense count: 4
  32. # Cop supports --auto-correct.
  33. Layout/EmptyLines:
  34. Exclude:
  35. - 'test/base_test.rb'
  36. - 'test/customer_test.rb'
  37. - 'test/meta_test.rb'
  38. # Offense count: 2
  39. # Cop supports --auto-correct.
  40. # Configuration parameters: EnforcedStyle.
  41. # SupportedStyles: around, only_before
  42. Layout/EmptyLinesAroundAccessModifier:
  43. Exclude:
  44. - 'test/customer_saved_search_test.rb'
  45. - 'test/gift_card_test.rb'
  46. # Offense count: 3
  47. # Cop supports --auto-correct.
  48. # Configuration parameters: EnforcedStyle.
  49. # SupportedStyles: empty_lines, no_empty_lines
  50. Layout/EmptyLinesAroundBlockBody:
  51. Exclude:
  52. - 'test/api_version_test.rb'
  53. - 'test/meta_test.rb'
  54. - 'test/tax_service_test.rb'
  55. # Offense count: 24
  56. # Cop supports --auto-correct.
  57. # Configuration parameters: EnforcedStyle.
  58. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
  59. Layout/EmptyLinesAroundClassBody:
  60. Enabled: false
  61. # Offense count: 1
  62. # Cop supports --auto-correct.
  63. # Configuration parameters: EnforcedStyle.
  64. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
  65. Layout/EmptyLinesAroundModuleBody:
  66. Exclude:
  67. - 'lib/shopify_api/session.rb'
  68. # Offense count: 1
  69. # Cop supports --auto-correct.
  70. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
  71. Layout/ExtraSpacing:
  72. Exclude:
  73. - 'lib/shopify_api/resources/product.rb'
  74. # Offense count: 6
  75. # Cop supports --auto-correct.
  76. # Configuration parameters: EnforcedStyle, IndentationWidth.
  77. # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
  78. Layout/FirstArgumentIndentation:
  79. Exclude:
  80. - 'test/application_charge_test.rb'
  81. - 'test/assigned_fulfillment_order_test.rb'
  82. - 'test/collection_test.rb'
  83. # Offense count: 12
  84. # Cop supports --auto-correct.
  85. # Configuration parameters: IndentationWidth, EnforcedStyle.
  86. # SupportedStyles: spaces, tabs
  87. Layout/IndentationStyle:
  88. Exclude:
  89. - 'test/fulfillment_service_test.rb'
  90. # Offense count: 4
  91. # Cop supports --auto-correct.
  92. # Configuration parameters: Width, IgnoredPatterns.
  93. Layout/IndentationWidth:
  94. Exclude:
  95. - 'test/fulfillment_service_test.rb'
  96. # Offense count: 2
  97. # Cop supports --auto-correct.
  98. # Configuration parameters: EnforcedStyle.
  99. # SupportedStyles: symmetrical, new_line, same_line
  100. Layout/MultilineMethodCallBraceLayout:
  101. Exclude:
  102. - 'lib/shopify_api/resources/product.rb'
  103. - 'lib/shopify_api/resources/variant.rb'
  104. # Offense count: 1
  105. # Cop supports --auto-correct.
  106. Layout/RescueEnsureAlignment:
  107. Exclude:
  108. - 'lib/shopify_api/message_enricher.rb'
  109. # Offense count: 7
  110. # Cop supports --auto-correct.
  111. Layout/SpaceAfterColon:
  112. Exclude:
  113. - 'test/order_test.rb'
  114. # Offense count: 8
  115. # Cop supports --auto-correct.
  116. Layout/SpaceAfterComma:
  117. Exclude:
  118. - 'lib/active_resource/json_errors.rb'
  119. - 'lib/shopify_api/session.rb'
  120. - 'test/base_test.rb'
  121. - 'test/fulfillment_order_test.rb'
  122. - 'test/recurring_application_charge_test.rb'
  123. - 'test/session_test.rb'
  124. # Offense count: 1
  125. # Cop supports --auto-correct.
  126. # Configuration parameters: EnforcedStyle.
  127. # SupportedStyles: space, no_space
  128. Layout/SpaceAroundEqualsInParameterDefault:
  129. Enabled: false
  130. Exclude:
  131. - 'lib/shopify_api/limits.rb'
  132. # Offense count: 9
  133. # Cop supports --auto-correct.
  134. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
  135. # SupportedStylesForExponentOperator: space, no_space
  136. Layout/SpaceAroundOperators:
  137. Exclude:
  138. - 'lib/shopify_api/resources/product.rb'
  139. - 'test/asset_test.rb'
  140. - 'test/pagination_test.rb'
  141. - 'test/shop_test.rb'
  142. - 'test/test_helper.rb'
  143. # Offense count: 7
  144. # Cop supports --auto-correct.
  145. # Configuration parameters: EnforcedStyleForEmptyBraces.
  146. # SupportedStyles: space, no_space
  147. # SupportedStylesForEmptyBraces: space, no_space
  148. Layout/SpaceBeforeBlockBraces:
  149. # EnforcedStyle: space
  150. Enabled: false
  151. # Offense count: 4
  152. # Cop supports --auto-correct.
  153. Layout/SpaceBeforeComma:
  154. Exclude:
  155. - 'test/carrier_service_test.rb'
  156. - 'test/fulfillment_service_test.rb'
  157. # Offense count: 4
  158. # Cop supports --auto-correct.
  159. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  160. # SupportedStyles: space, no_space, compact
  161. # SupportedStylesForEmptyBrackets: space, no_space
  162. Layout/SpaceInsideArrayLiteralBrackets:
  163. Enabled: false
  164. # Exclude:
  165. # - 'test/resource_feedback_test.rb'
  166. # Offense count: 5
  167. # Cop supports --auto-correct.
  168. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
  169. # SupportedStyles: space, no_space
  170. # SupportedStylesForEmptyBraces: space, no_space
  171. Layout/SpaceInsideBlockBraces:
  172. Exclude:
  173. - 'lib/shopify_api/session.rb'
  174. - 'test/location_test.rb'
  175. - 'test/shop_test.rb'
  176. # Offense count: 93
  177. # Cop supports --auto-correct.
  178. # Configuration parameters: EnforcedStyleForEmptyBraces.
  179. # SupportedStyles: space, no_space, compact
  180. # SupportedStylesForEmptyBraces: space, no_space
  181. Layout/SpaceInsideHashLiteralBraces:
  182. Enabled: false
  183. # EnforcedStyle: space
  184. # Offense count: 1
  185. # Cop supports --auto-correct.
  186. # Configuration parameters: EnforcedStyle.
  187. # SupportedStyles: space, no_space
  188. Layout/SpaceInsideParens:
  189. Exclude:
  190. - 'lib/shopify_api/resources/recurring_application_charge.rb'
  191. # Offense count: 5
  192. # Cop supports --auto-correct.
  193. # Configuration parameters: EnforcedStyle.
  194. # SupportedStyles: final_newline, final_blank_line
  195. Layout/TrailingEmptyLines:
  196. Exclude:
  197. - 'lib/shopify_api/meta.rb'
  198. - 'lib/shopify_api/resources/announcement.rb'
  199. - 'lib/shopify_api/resources/cart.rb'
  200. - 'test/cart_test.rb'
  201. - 'test/metafield_test.rb'
  202. # Offense count: 8
  203. # Cop supports --auto-correct.
  204. # Configuration parameters: AllowInHeredoc.
  205. Layout/TrailingWhitespace:
  206. Exclude:
  207. - 'lib/shopify_api/resources/product.rb'
  208. - 'lib/shopify_api/resources/variant.rb'
  209. - 'test/product_test.rb'
  210. - 'test/storefront_access_token_test.rb'
  211. - 'test/user_test.rb'
  212. # Offense count: 1
  213. # Cop supports --auto-correct.
  214. Lint/AmbiguousOperator:
  215. Exclude:
  216. - 'test/price_rule_test.rb'
  217. # Offense count: 3
  218. # Configuration parameters: AllowSafeAssignment.
  219. Lint/AssignmentInCondition:
  220. Exclude:
  221. - 'lib/shopify_api/session.rb'
  222. # Offense count: 2
  223. # Cop supports --auto-correct.
  224. Lint/DeprecatedOpenSSLConstant:
  225. Exclude:
  226. - 'lib/shopify_api/session.rb'
  227. - 'test/session_test.rb'
  228. # Offense count: 2
  229. Lint/MissingSuper:
  230. Exclude:
  231. - 'lib/shopify_api/graphql/http_client.rb'
  232. - 'test/api_version_test.rb'
  233. # Offense count: 1
  234. # Configuration parameters: AllowComments.
  235. Lint/SuppressedException:
  236. Exclude:
  237. - 'test/test_helper.rb'
  238. # Offense count: 1
  239. # Configuration parameters: AllowKeywordBlockArguments.
  240. Lint/UnderscorePrefixedVariableName:
  241. Exclude:
  242. - 'lib/shopify_api/resources/base.rb'
  243. # Offense count: 12
  244. # Cop supports --auto-correct.
  245. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
  246. Lint/UnusedBlockArgument:
  247. Exclude:
  248. - 'test/graphql_test.rb'
  249. - 'test/lib/webmock_extensions/last_request.rb'
  250. # Offense count: 2
  251. # Cop supports --auto-correct.
  252. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
  253. Lint/UnusedMethodArgument:
  254. Exclude:
  255. - 'lib/shopify_api/resources/asset.rb'
  256. - 'test/test_helper.rb'
  257. # Offense count: 9
  258. Lint/UselessAssignment:
  259. Exclude:
  260. - 'lib/shopify_api/resources/line_item.rb'
  261. - 'test/asset_test.rb'
  262. - 'test/blog_test.rb'
  263. - 'test/metafield_test.rb'
  264. - 'test/pagination_test.rb'
  265. - 'test/tax_service_test.rb'
  266. # Offense count: 1
  267. # Configuration parameters: CheckForMethodsWithNoSideEffects.
  268. Lint/Void:
  269. Exclude:
  270. - 'lib/shopify_api/pagination_link_headers.rb'
  271. # Offense count: 1
  272. Naming/AccessorMethodName:
  273. Exclude:
  274. - 'test/detailed_log_subscriber_test.rb'
  275. # Offense count: 6
  276. # Configuration parameters: EnforcedStyle.
  277. # SupportedStyles: snake_case, camelCase
  278. Naming/VariableName:
  279. Exclude:
  280. - 'lib/shopify_api/resources/fulfillment.rb'
  281. # Offense count: 2
  282. # Cop supports --auto-correct.
  283. Style/ColonMethodCall:
  284. Exclude:
  285. - 'test/base_test.rb'
  286. # Offense count: 2
  287. # Cop supports --auto-correct.
  288. # Configuration parameters: EnforcedStyle, AllowInnerBackticks.
  289. # SupportedStyles: backticks, percent_x, mixed
  290. Style/CommandLiteral:
  291. Exclude:
  292. - 'shopify_api.gemspec'
  293. # Offense count: 150
  294. # Cop supports --auto-correct.
  295. # Configuration parameters: EnforcedStyle.
  296. # SupportedStyles: always, always_true, never
  297. Style/FrozenStringLiteralComment:
  298. Enabled: false
  299. # Offense count: 500
  300. # Cop supports --auto-correct.
  301. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  302. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  303. Style/HashSyntax:
  304. Enabled: false
  305. # Offense count: 1
  306. # Configuration parameters: AllowIfModifier.
  307. Style/IfInsideElse:
  308. Exclude:
  309. - 'lib/shopify_api/graphql.rb'
  310. # Offense count: 480
  311. # Cop supports --auto-correct.
  312. # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
  313. # SupportedStyles: require_parentheses, omit_parentheses
  314. Style/MethodCallWithArgsParentheses:
  315. Enabled: false
  316. # Offense count: 1
  317. # Cop supports --auto-correct.
  318. # Configuration parameters: IgnoredMethods.
  319. Style/MethodCallWithoutArgsParentheses:
  320. Exclude:
  321. - 'lib/shopify_api/session.rb'
  322. # Offense count: 1
  323. Style/MissingRespondToMissing:
  324. Exclude:
  325. - 'lib/shopify_api/resources/asset.rb'
  326. # Offense count: 3
  327. # Cop supports --auto-correct.
  328. # Configuration parameters: EnforcedStyle.
  329. # SupportedStyles: short, verbose
  330. Style/PreferredHashMethods:
  331. Exclude:
  332. - 'test/test_helper.rb'
  333. # Offense count: 1
  334. # Cop supports --auto-correct.
  335. # Configuration parameters: EnforcedStyle.
  336. # SupportedStyles: compact, exploded
  337. Style/RaiseArgs:
  338. Enabled: false
  339. Exclude:
  340. - 'lib/shopify_api/pagination_link_headers.rb'
  341. # Offense count: 1
  342. # Cop supports --auto-correct.
  343. Style/RedundantException:
  344. Exclude:
  345. - 'lib/shopify_api/session.rb'
  346. # Offense count: 6
  347. # Cop supports --auto-correct.
  348. Style/RedundantPercentQ:
  349. Exclude:
  350. - 'shopify_api.gemspec'
  351. # Offense count: 11
  352. # Cop supports --auto-correct.
  353. Style/RedundantSelf:
  354. Exclude:
  355. - 'lib/shopify_api/resources/base.rb'
  356. - 'lib/shopify_api/resources/custom_collection.rb'
  357. - 'lib/shopify_api/resources/customer.rb'
  358. - 'lib/shopify_api/resources/customer_saved_search.rb'
  359. - 'lib/shopify_api/resources/product.rb'
  360. - 'lib/shopify_api/resources/recurring_application_charge.rb'
  361. # Offense count: 1
  362. # Cop supports --auto-correct.
  363. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  364. # SupportedStyles: slashes, percent_r, mixed
  365. Style/RegexpLiteral:
  366. Exclude:
  367. - 'lib/shopify_api/resources/image.rb'
  368. # Offense count: 1
  369. # Cop supports --auto-correct.
  370. Style/RescueModifier:
  371. Exclude:
  372. - 'lib/active_resource/json_errors.rb'
  373. # Offense count: 1
  374. # Cop supports --auto-correct.
  375. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  376. # AllowedMethods: present?, blank?, presence, try, try!
  377. Style/SafeNavigation:
  378. Exclude:
  379. - 'lib/shopify_api/resources/custom_collection.rb'
  380. # Offense count: 8
  381. # Cop supports --auto-correct.
  382. # Configuration parameters: AllowIfMethodIsEmpty.
  383. Style/SingleLineMethods:
  384. Exclude:
  385. - 'lib/shopify_api/resources/comment.rb'
  386. - 'lib/shopify_api/resources/fulfillment.rb'
  387. # Offense count: 2
  388. # Cop supports --auto-correct.
  389. # Configuration parameters: EnforcedStyle.
  390. # SupportedStyles: use_perl_names, use_english_names
  391. Style/SpecialGlobalVars:
  392. Exclude:
  393. - 'lib/shopify_api.rb'
  394. - 'shopify_api.gemspec'
  395. # Offense count: 7
  396. # Cop supports --auto-correct.
  397. # Configuration parameters: EnforcedStyleForMultiline.
  398. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  399. Style/TrailingCommaInArrayLiteral:
  400. Exclude:
  401. - 'shopify_api.gemspec'
  402. - 'test/fulfillment_order_test.rb'
  403. - 'test/fulfillment_test.rb'
  404. - 'test/meta_test.rb'
  405. # Offense count: 66
  406. # Cop supports --auto-correct.
  407. # Configuration parameters: EnforcedStyleForMultiline.
  408. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  409. Style/TrailingCommaInHashLiteral:
  410. Exclude:
  411. - 'lib/shopify_api/metafields.rb'
  412. - 'lib/shopify_api/resources/fulfillment_order.rb'
  413. - 'lib/shopify_api/resources/fulfillment_v2.rb'
  414. - 'lib/shopify_api/resources/inventory_level.rb'
  415. - 'test/fulfillment_order_test.rb'
  416. - 'test/fulfillment_test.rb'
  417. - 'test/fulfillment_v2_test.rb'
  418. - 'test/marketing_event_test.rb'
  419. - 'test/meta_test.rb'
  420. # Offense count: 2
  421. # Cop supports --auto-correct.
  422. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  423. # 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
  424. Style/TrivialAccessors:
  425. Exclude:
  426. - 'lib/shopify_api/graphql.rb'
  427. # Offense count: 83
  428. # Cop supports --auto-correct.
  429. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  430. # URISchemes: http, https
  431. Layout/LineLength:
  432. Max: 320