.rubocop_todo.rspec.yml 6.1 KB

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