.rubocop_todo.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config`
  3. # on 2020-10-15 20:32:09 UTC using RuboCop version 0.93.1.
  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: 9
  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. - 'test/recurring_application_charge_test.rb'
  25. # Offense count: 6
  26. # Cop supports --auto-correct.
  27. # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
  28. Layout/EmptyLineBetweenDefs:
  29. Exclude:
  30. - 'lib/shopify_api/resources/comment.rb'
  31. - 'lib/shopify_api/resources/fulfillment.rb'
  32. # Offense count: 4
  33. # Cop supports --auto-correct.
  34. Layout/EmptyLines:
  35. Exclude:
  36. - 'test/base_test.rb'
  37. - 'test/customer_test.rb'
  38. - 'test/meta_test.rb'
  39. # Offense count: 2
  40. # Cop supports --auto-correct.
  41. # Configuration parameters: EnforcedStyle.
  42. # SupportedStyles: around, only_before
  43. Layout/EmptyLinesAroundAccessModifier:
  44. Exclude:
  45. - 'test/customer_saved_search_test.rb'
  46. - 'test/gift_card_test.rb'
  47. # Offense count: 3
  48. # Cop supports --auto-correct.
  49. # Configuration parameters: EnforcedStyle.
  50. # SupportedStyles: empty_lines, no_empty_lines
  51. Layout/EmptyLinesAroundBlockBody:
  52. Exclude:
  53. - 'test/api_version_test.rb'
  54. - 'test/meta_test.rb'
  55. - 'test/tax_service_test.rb'
  56. # Offense count: 24
  57. # Cop supports --auto-correct.
  58. # Configuration parameters: EnforcedStyle.
  59. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
  60. Layout/EmptyLinesAroundClassBody:
  61. Enabled: false
  62. # Offense count: 1
  63. # Cop supports --auto-correct.
  64. # Configuration parameters: EnforcedStyle.
  65. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
  66. Layout/EmptyLinesAroundModuleBody:
  67. Exclude:
  68. - 'lib/shopify_api/session.rb'
  69. # Offense count: 1
  70. # Cop supports --auto-correct.
  71. # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
  72. Layout/ExtraSpacing:
  73. Exclude:
  74. - 'lib/shopify_api/resources/product.rb'
  75. # Offense count: 6
  76. # Cop supports --auto-correct.
  77. # Configuration parameters: EnforcedStyle, IndentationWidth.
  78. # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
  79. Layout/FirstArgumentIndentation:
  80. Exclude:
  81. - 'test/application_charge_test.rb'
  82. - 'test/assigned_fulfillment_order_test.rb'
  83. - 'test/collection_test.rb'
  84. # Offense count: 12
  85. # Cop supports --auto-correct.
  86. # Configuration parameters: IndentationWidth, EnforcedStyle.
  87. # SupportedStyles: spaces, tabs
  88. Layout/IndentationStyle:
  89. Exclude:
  90. - 'test/fulfillment_service_test.rb'
  91. # Offense count: 4
  92. # Cop supports --auto-correct.
  93. # Configuration parameters: Width, IgnoredPatterns.
  94. Layout/IndentationWidth:
  95. Exclude:
  96. - 'test/fulfillment_service_test.rb'
  97. # Offense count: 3
  98. # Cop supports --auto-correct.
  99. # Configuration parameters: EnforcedStyle.
  100. # SupportedStyles: symmetrical, new_line, same_line
  101. Layout/MultilineMethodCallBraceLayout:
  102. Exclude:
  103. - 'lib/shopify_api/resources/product.rb'
  104. - 'lib/shopify_api/resources/variant.rb'
  105. - 'test/fulfillment_order_test.rb'
  106. # Offense count: 1
  107. # Cop supports --auto-correct.
  108. Layout/RescueEnsureAlignment:
  109. Exclude:
  110. - 'lib/shopify_api/message_enricher.rb'
  111. # Offense count: 7
  112. # Cop supports --auto-correct.
  113. Layout/SpaceAfterColon:
  114. Exclude:
  115. - 'test/order_test.rb'
  116. # Offense count: 6
  117. # Cop supports --auto-correct.
  118. Layout/SpaceAfterComma:
  119. Exclude:
  120. - 'lib/active_resource/json_errors.rb'
  121. - 'lib/shopify_api/session.rb'
  122. - 'test/base_test.rb'
  123. - 'test/fulfillment_order_test.rb'
  124. - 'test/session_test.rb'
  125. # Offense count: 6
  126. # Cop supports --auto-correct.
  127. # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
  128. # SupportedStylesForExponentOperator: space, no_space
  129. Layout/SpaceAroundOperators:
  130. Exclude:
  131. - 'lib/shopify_api/resources/product.rb'
  132. - 'test/pagination_test.rb'
  133. - 'test/test_helper.rb'
  134. # Offense count: 4
  135. # Cop supports --auto-correct.
  136. Layout/SpaceBeforeComma:
  137. Exclude:
  138. - 'test/carrier_service_test.rb'
  139. - 'test/fulfillment_service_test.rb'
  140. # Offense count: 4
  141. # Cop supports --auto-correct.
  142. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
  143. # SupportedStyles: space, no_space, compact
  144. # SupportedStylesForEmptyBrackets: space, no_space
  145. Layout/SpaceInsideArrayLiteralBrackets:
  146. Exclude:
  147. - 'test/resource_feedback_test.rb'
  148. # Offense count: 1
  149. # Cop supports --auto-correct.
  150. # Configuration parameters: EnforcedStyle.
  151. # SupportedStyles: space, no_space
  152. Layout/SpaceInsideParens:
  153. Exclude:
  154. - 'lib/shopify_api/resources/recurring_application_charge.rb'
  155. # Offense count: 4
  156. # Cop supports --auto-correct.
  157. # Configuration parameters: EnforcedStyle.
  158. # SupportedStyles: final_newline, final_blank_line
  159. Layout/TrailingEmptyLines:
  160. Exclude:
  161. - 'lib/shopify_api/meta.rb'
  162. - 'lib/shopify_api/resources/announcement.rb'
  163. - 'lib/shopify_api/resources/cart.rb'
  164. - 'test/cart_test.rb'
  165. # Offense count: 3
  166. # Cop supports --auto-correct.
  167. # Configuration parameters: AllowInHeredoc.
  168. Layout/TrailingWhitespace:
  169. Exclude:
  170. - 'test/user_test.rb'
  171. # Offense count: 1
  172. Naming/AccessorMethodName:
  173. Exclude:
  174. - 'test/detailed_log_subscriber_test.rb'
  175. # Offense count: 6
  176. # Configuration parameters: EnforcedStyle.
  177. # SupportedStyles: snake_case, camelCase
  178. Naming/VariableName:
  179. Exclude:
  180. - 'lib/shopify_api/resources/fulfillment.rb'
  181. # Offense count: 1
  182. # Cop supports --auto-correct.
  183. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
  184. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
  185. # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
  186. # FunctionalMethods: let, let!, subject, watch
  187. # IgnoredMethods: lambda, proc, it
  188. Style/BlockDelimiters:
  189. Exclude:
  190. - 'test/inventory_level_test.rb'
  191. # Offense count: 2
  192. # Cop supports --auto-correct.
  193. Style/ColonMethodCall:
  194. Exclude:
  195. - 'test/base_test.rb'
  196. # Offense count: 2
  197. # Cop supports --auto-correct.
  198. # Configuration parameters: EnforcedStyle, AllowInnerBackticks.
  199. # SupportedStyles: backticks, percent_x, mixed
  200. Style/CommandLiteral:
  201. Exclude:
  202. - 'shopify_api.gemspec'
  203. # Offense count: 1
  204. # Configuration parameters: AllowIfModifier.
  205. Style/IfInsideElse:
  206. Exclude:
  207. - 'lib/shopify_api/graphql.rb'
  208. # Offense count: 1
  209. Style/MissingRespondToMissing:
  210. Exclude:
  211. - 'lib/shopify_api/resources/asset.rb'
  212. # Offense count: 3
  213. # Cop supports --auto-correct.
  214. # Configuration parameters: EnforcedStyle.
  215. # SupportedStyles: short, verbose
  216. Style/PreferredHashMethods:
  217. Exclude:
  218. - 'test/test_helper.rb'
  219. # Offense count: 1
  220. # Cop supports --auto-correct.
  221. Style/RedundantException:
  222. Exclude:
  223. - 'lib/shopify_api/session.rb'
  224. # Offense count: 2
  225. # Cop supports --auto-correct.
  226. Style/RedundantParentheses:
  227. Exclude:
  228. - 'test/session_test.rb'
  229. # Offense count: 5
  230. # Cop supports --auto-correct.
  231. Style/RedundantPercentQ:
  232. Exclude:
  233. - 'shopify_api.gemspec'
  234. # Offense count: 12
  235. # Cop supports --auto-correct.
  236. Style/RedundantSelf:
  237. Exclude:
  238. - 'lib/shopify_api/resources/base.rb'
  239. - 'lib/shopify_api/resources/custom_collection.rb'
  240. - 'lib/shopify_api/resources/customer.rb'
  241. - 'lib/shopify_api/resources/customer_saved_search.rb'
  242. - 'lib/shopify_api/resources/product.rb'
  243. - 'lib/shopify_api/resources/recurring_application_charge.rb'
  244. # Offense count: 1
  245. # Cop supports --auto-correct.
  246. # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
  247. # SupportedStyles: slashes, percent_r, mixed
  248. Style/RegexpLiteral:
  249. Exclude:
  250. - 'lib/shopify_api/resources/image.rb'
  251. # Offense count: 1
  252. # Cop supports --auto-correct.
  253. Style/RescueModifier:
  254. Exclude:
  255. - 'lib/active_resource/json_errors.rb'
  256. # Offense count: 1
  257. # Cop supports --auto-correct.
  258. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
  259. # AllowedMethods: present?, blank?, presence, try, try!
  260. Style/SafeNavigation:
  261. Exclude:
  262. - 'lib/shopify_api/resources/custom_collection.rb'
  263. # Offense count: 8
  264. # Cop supports --auto-correct.
  265. # Configuration parameters: AllowIfMethodIsEmpty.
  266. Style/SingleLineMethods:
  267. Exclude:
  268. - 'lib/shopify_api/resources/comment.rb'
  269. - 'lib/shopify_api/resources/fulfillment.rb'
  270. # Offense count: 2
  271. # Cop supports --auto-correct.
  272. # Configuration parameters: EnforcedStyle.
  273. # SupportedStyles: use_perl_names, use_english_names
  274. Style/SpecialGlobalVars:
  275. Exclude:
  276. - 'lib/shopify_api.rb'
  277. - 'shopify_api.gemspec'
  278. # Offense count: 7
  279. # Cop supports --auto-correct.
  280. # Configuration parameters: EnforcedStyleForMultiline.
  281. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  282. Style/TrailingCommaInArrayLiteral:
  283. Exclude:
  284. - 'shopify_api.gemspec'
  285. - 'test/fulfillment_order_test.rb'
  286. - 'test/fulfillment_test.rb'
  287. - 'test/meta_test.rb'
  288. # Offense count: 66
  289. # Cop supports --auto-correct.
  290. # Configuration parameters: EnforcedStyleForMultiline.
  291. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  292. Style/TrailingCommaInHashLiteral:
  293. Exclude:
  294. - 'lib/shopify_api/metafields.rb'
  295. - 'lib/shopify_api/resources/fulfillment_order.rb'
  296. - 'lib/shopify_api/resources/fulfillment_v2.rb'
  297. - 'lib/shopify_api/resources/inventory_level.rb'
  298. - 'test/fulfillment_order_test.rb'
  299. - 'test/fulfillment_test.rb'
  300. - 'test/fulfillment_v2_test.rb'
  301. - 'test/marketing_event_test.rb'
  302. - 'test/meta_test.rb'
  303. # Offense count: 2
  304. # Cop supports --auto-correct.
  305. # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
  306. # 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
  307. Style/TrivialAccessors:
  308. Exclude:
  309. - 'lib/shopify_api/graphql.rb'