.rubocop_todo.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config`
  3. # on 2020-10-05 19:12:07 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: 9
  125. # Cop supports --auto-correct.
  126. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
  127. # SupportedStylesForExponentOperator: space, no_space
  128. Layout/SpaceAroundOperators:
  129. Exclude:
  130. - 'lib/shopify_api/resources/product.rb'
  131. - 'test/asset_test.rb'
  132. - 'test/pagination_test.rb'
  133. - 'test/shop_test.rb'
  134. - 'test/test_helper.rb'
  135. # Offense count: 4
  136. # Cop supports --auto-correct.
  137. Layout/SpaceBeforeComma:
  138. Exclude:
  139. - 'test/carrier_service_test.rb'
  140. - 'test/fulfillment_service_test.rb'
  141. # Offense count: 4
  142. # Cop supports --auto-correct.
  143. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  144. # SupportedStyles: space, no_space, compact
  145. # SupportedStylesForEmptyBrackets: space, no_space
  146. Layout/SpaceInsideArrayLiteralBrackets:
  147. Exclude:
  148. - 'test/resource_feedback_test.rb'
  149. # Offense count: 5
  150. # Cop supports --auto-correct.
  151. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
  152. # SupportedStyles: space, no_space
  153. # SupportedStylesForEmptyBraces: space, no_space
  154. Layout/SpaceInsideBlockBraces:
  155. Exclude:
  156. - 'lib/shopify_api/session.rb'
  157. - 'test/location_test.rb'
  158. - 'test/shop_test.rb'
  159. # Offense count: 1
  160. # Cop supports --auto-correct.
  161. # Configuration parameters: EnforcedStyle.
  162. # SupportedStyles: space, no_space
  163. Layout/SpaceInsideParens:
  164. Exclude:
  165. - 'lib/shopify_api/resources/recurring_application_charge.rb'
  166. # Offense count: 4
  167. # Cop supports --auto-correct.
  168. # Configuration parameters: EnforcedStyle.
  169. # SupportedStyles: final_newline, final_blank_line
  170. Layout/TrailingEmptyLines:
  171. Exclude:
  172. - 'lib/shopify_api/meta.rb'
  173. - 'lib/shopify_api/resources/announcement.rb'
  174. - 'lib/shopify_api/resources/cart.rb'
  175. - 'test/cart_test.rb'
  176. # Offense count: 5
  177. # Cop supports --auto-correct.
  178. # Configuration parameters: AllowInHeredoc.
  179. Layout/TrailingWhitespace:
  180. Exclude:
  181. - 'lib/shopify_api/resources/variant.rb'
  182. - 'test/storefront_access_token_test.rb'
  183. - 'test/user_test.rb'
  184. # Offense count: 1
  185. Naming/AccessorMethodName:
  186. Exclude:
  187. - 'test/detailed_log_subscriber_test.rb'
  188. # Offense count: 6
  189. # Configuration parameters: EnforcedStyle.
  190. # SupportedStyles: snake_case, camelCase
  191. Naming/VariableName:
  192. Exclude:
  193. - 'lib/shopify_api/resources/fulfillment.rb'
  194. # Offense count: 2
  195. # Cop supports --auto-correct.
  196. Style/ColonMethodCall:
  197. Exclude:
  198. - 'test/base_test.rb'
  199. # Offense count: 2
  200. # Cop supports --auto-correct.
  201. # Configuration parameters: EnforcedStyle, AllowInnerBackticks.
  202. # SupportedStyles: backticks, percent_x, mixed
  203. Style/CommandLiteral:
  204. Exclude:
  205. - 'shopify_api.gemspec'
  206. # Offense count: 150
  207. # Cop supports --auto-correct.
  208. # Configuration parameters: EnforcedStyle.
  209. # SupportedStyles: always, always_true, never
  210. Style/FrozenStringLiteralComment:
  211. Enabled: false
  212. # Offense count: 500
  213. # Cop supports --auto-correct.
  214. # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
  215. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
  216. Style/HashSyntax:
  217. Enabled: false
  218. # Offense count: 1
  219. # Configuration parameters: AllowIfModifier.
  220. Style/IfInsideElse:
  221. Exclude:
  222. - 'lib/shopify_api/graphql.rb'
  223. # Offense count: 479
  224. # Cop supports --auto-correct.
  225. # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
  226. # SupportedStyles: require_parentheses, omit_parentheses
  227. Style/MethodCallWithArgsParentheses:
  228. Enabled: false
  229. # Offense count: 1
  230. Style/MissingRespondToMissing:
  231. Exclude:
  232. - 'lib/shopify_api/resources/asset.rb'
  233. # Offense count: 3
  234. # Cop supports --auto-correct.
  235. # Configuration parameters: EnforcedStyle.
  236. # SupportedStyles: short, verbose
  237. Style/PreferredHashMethods:
  238. Exclude:
  239. - 'test/test_helper.rb'
  240. # Offense count: 1
  241. # Cop supports --auto-correct.
  242. Style/RedundantException:
  243. Exclude:
  244. - 'lib/shopify_api/session.rb'
  245. # Offense count: 6
  246. # Cop supports --auto-correct.
  247. Style/RedundantPercentQ:
  248. Exclude:
  249. - 'shopify_api.gemspec'
  250. # Offense count: 11
  251. # Cop supports --auto-correct.
  252. Style/RedundantSelf:
  253. Exclude:
  254. - 'lib/shopify_api/resources/base.rb'
  255. - 'lib/shopify_api/resources/custom_collection.rb'
  256. - 'lib/shopify_api/resources/customer.rb'
  257. - 'lib/shopify_api/resources/customer_saved_search.rb'
  258. - 'lib/shopify_api/resources/product.rb'
  259. - 'lib/shopify_api/resources/recurring_application_charge.rb'
  260. # Offense count: 1
  261. # Cop supports --auto-correct.
  262. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  263. # SupportedStyles: slashes, percent_r, mixed
  264. Style/RegexpLiteral:
  265. Exclude:
  266. - 'lib/shopify_api/resources/image.rb'
  267. # Offense count: 1
  268. # Cop supports --auto-correct.
  269. Style/RescueModifier:
  270. Exclude:
  271. - 'lib/active_resource/json_errors.rb'
  272. # Offense count: 1
  273. # Cop supports --auto-correct.
  274. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  275. # AllowedMethods: present?, blank?, presence, try, try!
  276. Style/SafeNavigation:
  277. Exclude:
  278. - 'lib/shopify_api/resources/custom_collection.rb'
  279. # Offense count: 8
  280. # Cop supports --auto-correct.
  281. # Configuration parameters: AllowIfMethodIsEmpty.
  282. Style/SingleLineMethods:
  283. Exclude:
  284. - 'lib/shopify_api/resources/comment.rb'
  285. - 'lib/shopify_api/resources/fulfillment.rb'
  286. # Offense count: 2
  287. # Cop supports --auto-correct.
  288. # Configuration parameters: EnforcedStyle.
  289. # SupportedStyles: use_perl_names, use_english_names
  290. Style/SpecialGlobalVars:
  291. Exclude:
  292. - 'lib/shopify_api.rb'
  293. - 'shopify_api.gemspec'
  294. # Offense count: 7
  295. # Cop supports --auto-correct.
  296. # Configuration parameters: EnforcedStyleForMultiline.
  297. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  298. Style/TrailingCommaInArrayLiteral:
  299. Exclude:
  300. - 'shopify_api.gemspec'
  301. - 'test/fulfillment_order_test.rb'
  302. - 'test/fulfillment_test.rb'
  303. - 'test/meta_test.rb'
  304. # Offense count: 66
  305. # Cop supports --auto-correct.
  306. # Configuration parameters: EnforcedStyleForMultiline.
  307. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  308. Style/TrailingCommaInHashLiteral:
  309. Exclude:
  310. - 'lib/shopify_api/metafields.rb'
  311. - 'lib/shopify_api/resources/fulfillment_order.rb'
  312. - 'lib/shopify_api/resources/fulfillment_v2.rb'
  313. - 'lib/shopify_api/resources/inventory_level.rb'
  314. - 'test/fulfillment_order_test.rb'
  315. - 'test/fulfillment_test.rb'
  316. - 'test/fulfillment_v2_test.rb'
  317. - 'test/marketing_event_test.rb'
  318. - 'test/meta_test.rb'
  319. # Offense count: 2
  320. # Cop supports --auto-correct.
  321. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  322. # 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
  323. Style/TrivialAccessors:
  324. Exclude:
  325. - 'lib/shopify_api/graphql.rb'
  326. # Offense count: 83
  327. # Cop supports --auto-correct.
  328. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
  329. # URISchemes: http, https
  330. Layout/LineLength:
  331. Max: 320