.rubocop_todo.rspec.yml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config`
  3. # on 2019-04-12 17:16:30 +0800 using RuboCop version 0.67.2.
  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: 17 (Competes with same override in .rubocop_todo.yml)
  9. # Metrics/AbcSize:
  10. # Max: 24
  11. # Offense count: 664
  12. # Configuration parameters: CountComments, ExcludedMethods.
  13. # ExcludedMethods: refine
  14. Metrics/BlockLength:
  15. Max: 1653
  16. Exclude:
  17. - 'spec/requests/ticket_spec.rb'
  18. # Offense count: 16
  19. RSpec/AnyInstance:
  20. Exclude:
  21. - 'spec/lib/import/otrs/article_spec.rb'
  22. - 'spec/lib/import/otrs/customer_spec.rb'
  23. - 'spec/lib/import/otrs/customer_user_spec.rb'
  24. - 'spec/lib/import/otrs/priority_spec.rb'
  25. - 'spec/lib/import/otrs/queue_spec.rb'
  26. - 'spec/lib/import/otrs/state_spec.rb'
  27. - 'spec/lib/import/otrs/ticket_spec.rb'
  28. - 'spec/lib/import/otrs/user_spec.rb'
  29. - 'spec/models/import_job_spec.rb'
  30. # Offense count: 3
  31. RSpec/BeforeAfterAll:
  32. Exclude:
  33. - 'spec/spec_helper.rb'
  34. - 'spec/rails_helper.rb'
  35. - 'spec/support/**/*.rb'
  36. - 'spec/lib/sequencer/unit/import/zendesk/ticket/comment/attachment/request_spec.rb'
  37. - 'spec/lib/sequencer/unit/import/zendesk/ticket/comment/source_based_spec.rb'
  38. - 'spec/models/translation_spec.rb'
  39. # Offense count: 523
  40. # Configuration parameters: Prefixes.
  41. # Prefixes: when, with, without
  42. RSpec/ContextWording:
  43. Enabled: false
  44. # Offense count: 540
  45. # Configuration parameters: Max.
  46. RSpec/ExampleLength:
  47. Enabled: false
  48. # Offense count: 36
  49. RSpec/ExpectActual:
  50. Exclude:
  51. - 'spec/routing/**/*'
  52. - 'spec/requests/integration/monitoring_spec.rb'
  53. - 'spec/requests/integration/object_manager_attributes_spec.rb'
  54. - 'spec/requests/integration/twilio_sms_spec.rb'
  55. - 'spec/requests/integration/user_device_spec.rb'
  56. - 'spec/requests/organization_spec.rb'
  57. - 'spec/requests/ticket/article_attachments_spec.rb'
  58. - 'spec/requests/user/organization_spec.rb'
  59. - 'spec/requests/user_spec.rb'
  60. # Offense count: 3
  61. RSpec/ExpectInHook:
  62. Exclude:
  63. - 'spec/models/calendar_spec.rb'
  64. - 'spec/models/concerns/has_search_index_backend_examples.rb'
  65. - 'spec/models/ticket/article_spec.rb'
  66. # Offense count: 12
  67. # Configuration parameters: CustomTransform, IgnoreMethods.
  68. RSpec/FilePath:
  69. Exclude:
  70. - 'spec/db/migrate/20171023000001_fixed_store_upgrade_ror_45_spec.rb'
  71. - 'spec/db/migrate/issue_1219_zhtw_locale_typo_spec.rb'
  72. - 'spec/db/migrate/issue_1660_fix_tree_select_configurations_spec.rb'
  73. - 'spec/db/migrate/issue_1905_exchange_login_from_remote_id_spec.rb'
  74. - 'spec/db/migrate/issue_1977_remove_invalid_user_foreign_keys_spec.rb'
  75. - 'spec/db/migrate/issue_2019_fix_double_domain_links_in_trigger_emails_spec.rb'
  76. - 'spec/db/migrate/issue_2140_reset_ldap_config_spec.rb'
  77. - 'spec/db/migrate/issue_2333_object_country_already_exists_spec.rb'
  78. - 'spec/db/migrate/issue_2345_es_attachment_max_size_in_mb_setting_lower_default_spec.rb'
  79. - 'spec/db/migrate/issue_2368_add_indices_to_histories_and_tickets_spec.rb'
  80. - 'spec/db/migrate/issue_2541_fix_notification_email_without_body_spec.rb'
  81. - 'spec/db/migrate/issue_2608_missing_trigger_permission_spec.rb'
  82. - 'spec/db/migrate/issue_2460_fix_corrupted_twitter_ids_spec.rb'
  83. - 'spec/db/migrate/issue_2715_fix_broken_twitter_urls_spec.rb'
  84. - 'spec/jobs/issue_2715_fix_broken_twitter_urls_job_spec.rb'
  85. - 'spec/db/migrate/issue_2867_footer_header_public_link_spec.rb'
  86. - 'spec/lib/import/base_factory_spec.rb'
  87. # Offense count: 60
  88. # Configuration parameters: AssignmentOnly.
  89. RSpec/InstanceVariable:
  90. Exclude:
  91. - 'spec/lib/notification_factory/renderer_spec.rb'
  92. - 'spec/models/import_job_spec.rb'
  93. - 'spec/models/scheduler_spec.rb'
  94. - 'spec/requests/api_auth_on_behalf_of_spec.rb'
  95. - 'spec/requests/integration/monitoring_spec.rb'
  96. - 'spec/requests/integration/sipgate_spec.rb'
  97. - 'spec/requests/organization_spec.rb'
  98. - 'spec/requests/report_spec.rb'
  99. - 'spec/requests/text_module_spec.rb'
  100. - 'spec/requests/ticket/article_attachments_spec.rb'
  101. - 'spec/requests/user_spec.rb'
  102. # Offense count: 34
  103. RSpec/LetSetup:
  104. Enabled: false
  105. # Offense count: 242
  106. # Configuration parameters: EnforcedStyle.
  107. # SupportedStyles: have_received, receive
  108. RSpec/MessageSpies:
  109. Enabled: false
  110. # Offense count: 478
  111. # Configuration parameters: AggregateFailuresByDefault.
  112. RSpec/MultipleExpectations:
  113. Max: 266
  114. # Offense count: 83
  115. # Configuration parameters: IgnoreSharedExamples.
  116. RSpec/NamedSubject:
  117. Exclude:
  118. - 'spec/db/migrate/issue_2019_fix_double_domain_links_in_trigger_emails_spec.rb'
  119. - 'spec/db/migrate/issue_2541_fix_notification_email_without_body_spec.rb'
  120. - 'spec/lib/core_ext/string_spec.rb'
  121. - 'spec/lib/import/exchange/folder_spec.rb'
  122. - 'spec/lib/ldap/user_spec.rb'
  123. - 'spec/lib/sequencer/unit/import/ldap/user/attributes/role_ids/unassigned_spec.rb'
  124. - 'spec/lib/sessions/backend/activity_stream_spec.rb'
  125. - 'spec/lib/upload_cache_spec.rb'
  126. - 'spec/models/channel/filter/match/email_regex_spec.rb'
  127. - 'spec/models/http_log_spec.rb'
  128. - 'spec/models/object_manager/attribute/validation/backend_spec.rb'
  129. - 'spec/models/object_manager/attribute/validation/future_past_spec.rb'
  130. - 'spec/models/object_manager/attribute/validation/required_spec.rb'
  131. - 'spec/models/object_manager/attribute/validation_spec.rb'
  132. - 'spec/models/object_manager/attribute_spec.rb'
  133. # Offense count: 545
  134. RSpec/NestedGroups:
  135. Max: 8
  136. # Offense count: 12
  137. RSpec/RepeatedDescription:
  138. Exclude:
  139. - 'spec/models/translation_spec.rb'
  140. - 'spec/requests/form_spec.rb'
  141. - 'spec/requests/ticket_spec.rb'
  142. # Offense count: 3
  143. RSpec/ScatteredLet:
  144. Exclude:
  145. - 'spec/models/job_spec.rb'
  146. - 'spec/models/ticket_spec.rb'
  147. - 'spec/requests/integration/twitter_webhook_spec.rb'
  148. # Offense count: 11
  149. RSpec/ScatteredSetup:
  150. Exclude:
  151. - 'spec/models/ticket_spec.rb'
  152. - 'spec/models/user_spec.rb'
  153. - 'spec/requests/upload_cache_spec.rb'
  154. # Offense count: 8
  155. RSpec/SubjectStub:
  156. Exclude:
  157. - 'spec/lib/import/exchange/folder_spec.rb'
  158. - 'spec/models/concerns/has_groups_examples.rb'
  159. - 'spec/models/concerns/has_roles_examples.rb'
  160. - 'spec/models/job_spec.rb'
  161. - 'spec/models/object_manager/attribute/validation/future_past_spec.rb'
  162. - 'spec/models/object_manager/attribute/validation/required_spec.rb'
  163. # Offense count: 25
  164. # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
  165. RSpec/VerifiedDoubles:
  166. Enabled: false