message_train 0.7.6 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. checksums.yaml +5 -5
  2. data/.gitattributes +1 -0
  3. data/.github/workflows/ci.yml +86 -0
  4. data/.gitignore +64 -0
  5. data/.rubocop.yml +9 -0
  6. data/.rubocop_todo.yml +854 -2
  7. data/.ruby-version +1 -1
  8. data/.simplecov +2 -4
  9. data/CHANGELOG.md +128 -0
  10. data/CLAUDE.md +5 -0
  11. data/Gemfile +29 -31
  12. data/LICENSE.txt +1 -1
  13. data/README.md +106 -35
  14. data/Rakefile +4 -18
  15. data/app/assets/stylesheets/message_train.scss +405 -67
  16. data/app/controllers/concerns/message_train_support.rb +2 -2
  17. data/app/controllers/message_train/boxes_controller.rb +4 -2
  18. data/app/controllers/message_train/conversations_controller.rb +1 -0
  19. data/app/helpers/message_train/application_helper.rb +68 -0
  20. data/app/helpers/message_train/attachments_helper.rb +7 -4
  21. data/app/helpers/message_train/conversations_helper.rb +16 -16
  22. data/app/helpers/message_train/messages_helper.rb +23 -10
  23. data/app/javascript/controllers/message_train/bulk_actions_controller.js +36 -0
  24. data/app/javascript/controllers/message_train/lightbox_controller.js +25 -0
  25. data/app/javascript/controllers/message_train/nested_form_controller.js +36 -0
  26. data/app/javascript/controllers/message_train/recipient_autocomplete_controller.js +31 -0
  27. data/app/mailers/message_train/previews/receipt_mailer_preview.rb +7 -5
  28. data/app/models/message_train/attachment.rb +54 -42
  29. data/app/models/message_train/box.rb +2 -2
  30. data/app/models/message_train/conversation.rb +28 -2
  31. data/app/models/message_train/ignore.rb +2 -2
  32. data/app/models/message_train/message.rb +10 -4
  33. data/app/models/message_train/receipt.rb +27 -4
  34. data/app/models/message_train/unsubscribe.rb +1 -1
  35. data/app/views/application/404.html.haml +1 -3
  36. data/app/views/kaminari/_first_page.html.haml +1 -1
  37. data/app/views/kaminari/_last_page.html.haml +1 -1
  38. data/app/views/kaminari/_next_page.html.haml +1 -1
  39. data/app/views/kaminari/_page.html.haml +3 -3
  40. data/app/views/kaminari/_paginator.html.haml +12 -11
  41. data/app/views/kaminari/_prev_page.html.haml +1 -1
  42. data/app/views/message_train/application/_attachment_fields.html.haml +10 -7
  43. data/app/views/message_train/application/_attachment_link.html.haml +2 -2
  44. data/app/views/message_train/application/_widget.html.haml +2 -4
  45. data/app/views/message_train/boxes/_widget.html.haml +5 -5
  46. data/app/views/message_train/boxes/show.html.haml +28 -45
  47. data/app/views/message_train/collectives/_widget.html.haml +4 -4
  48. data/app/views/message_train/conversations/_conversation.html.haml +11 -11
  49. data/app/views/message_train/conversations/_deleted_toggle.html.haml +1 -1
  50. data/app/views/message_train/conversations/_ignored_toggle.html.haml +2 -2
  51. data/app/views/message_train/conversations/_read_toggle.html.haml +2 -2
  52. data/app/views/message_train/conversations/_toggle.html.haml +6 -4
  53. data/app/views/message_train/conversations/_trashed_toggle.html.haml +2 -2
  54. data/app/views/message_train/conversations/show.html.haml +8 -6
  55. data/app/views/message_train/messages/_deleted_toggle.html.haml +1 -1
  56. data/app/views/message_train/messages/_form.html.haml +22 -30
  57. data/app/views/message_train/messages/_message.html.haml +27 -45
  58. data/app/views/message_train/messages/_read_toggle.html.haml +2 -2
  59. data/app/views/message_train/messages/_toggle.html.haml +5 -1
  60. data/app/views/message_train/messages/_trashed_toggle.html.haml +2 -2
  61. data/app/views/message_train/unsubscribes/index.html.haml +12 -15
  62. data/badges/coverage.json +1 -0
  63. data/config/importmap.rb +2 -0
  64. data/config/locales/en.yml +6 -3
  65. data/db/migrate/20150721145319_create_message_train_conversations.rb +1 -1
  66. data/db/migrate/20150721160322_create_message_train_messages.rb +1 -1
  67. data/db/migrate/20150721161144_create_message_train_attachments.rb +5 -2
  68. data/db/migrate/20150721161940_create_message_train_receipts.rb +1 -1
  69. data/db/migrate/20150721163838_create_message_train_ignores.rb +1 -1
  70. data/db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb +1 -1
  71. data/db/migrate/20151004184347_add_unique_index_to_receipts.rb +1 -1
  72. data/db/migrate/20151124000820_create_message_train_unsubscribes.rb +1 -1
  73. data/db/migrate/20260827095938_remove_paperclip_columns_from_message_train_attachments.rb +8 -0
  74. data/db/migrate/20260827171549_remove_body_from_message_train_messages.rb +5 -0
  75. data/db/migrate/20260827180000_add_marking_indexes.rb +9 -0
  76. data/db/migrate/20260827200000_add_body_back_to_message_train_messages.rb +5 -0
  77. data/docs/screenshots/inbox-desktop.png +0 -0
  78. data/docs/screenshots/inbox-mobile.png +0 -0
  79. data/lib/generators/message_train/install/install_generator.rb +1 -1
  80. data/lib/message_train/engine.rb +11 -0
  81. data/lib/message_train/instance_methods.rb +13 -7
  82. data/lib/message_train/localization.rb +4 -3
  83. data/lib/message_train/version.rb +1 -1
  84. data/lib/message_train.rb +0 -2
  85. data/message_train.gemspec +57 -389
  86. data/spec/controllers/message_train/boxes_controller_spec.rb +13 -8
  87. data/spec/controllers/message_train/concerns_spec.rb +2 -2
  88. data/spec/controllers/message_train/conversations_controller_spec.rb +36 -7
  89. data/spec/controllers/message_train/messages_controller_spec.rb +4 -4
  90. data/spec/dummy/app/assets/stylesheets/application.scss +141 -12
  91. data/spec/dummy/app/controllers/application_controller.rb +1 -1
  92. data/spec/dummy/app/javascript/application.js +4 -0
  93. data/spec/dummy/app/javascript/controllers/application.js +9 -0
  94. data/spec/dummy/app/javascript/controllers/index.js +4 -0
  95. data/spec/dummy/app/models/role.rb +1 -1
  96. data/spec/dummy/app/views/active_storage/blobs/_blob.html.erb +14 -0
  97. data/spec/dummy/app/views/layouts/_top_navigation.html.haml +18 -7
  98. data/spec/dummy/app/views/layouts/application.html.haml +22 -26
  99. data/spec/dummy/bin/importmap +4 -0
  100. data/spec/dummy/config/application.rb +7 -20
  101. data/spec/dummy/config/environments/development.rb +17 -21
  102. data/spec/dummy/config/environments/production.rb +11 -63
  103. data/spec/dummy/config/environments/test.rb +21 -16
  104. data/spec/dummy/config/importmap.rb +7 -0
  105. data/spec/dummy/config/initializers/assets.rb +1 -6
  106. data/spec/dummy/config/routes.rb +1 -1
  107. data/spec/dummy/config/storage.yml +7 -0
  108. data/spec/dummy/db/migrate/20150721140013_devise_create_users.rb +1 -1
  109. data/spec/dummy/db/migrate/20150721141009_rolify_create_roles.rb +1 -1
  110. data/spec/dummy/db/migrate/20150721141128_create_groups.rb +1 -1
  111. data/spec/dummy/db/migrate/20150721150307_add_display_name_column_to_users.rb +1 -1
  112. data/spec/dummy/db/migrate/20160207190402_create_message_train_conversations.message_train.rb +1 -1
  113. data/spec/dummy/db/migrate/20160207190403_create_message_train_messages.message_train.rb +1 -1
  114. data/spec/dummy/db/migrate/20160207190404_create_message_train_attachments.message_train.rb +5 -2
  115. data/spec/dummy/db/migrate/20160207190405_create_message_train_receipts.message_train.rb +1 -1
  116. data/spec/dummy/db/migrate/20160207190406_create_message_train_ignores.message_train.rb +1 -1
  117. data/spec/dummy/db/migrate/20160207190407_add_received_through_to_message_train_receipts.message_train.rb +1 -1
  118. data/spec/dummy/db/migrate/20160207190408_add_unique_index_to_receipts.message_train.rb +1 -1
  119. data/spec/dummy/db/migrate/20160207190409_create_message_train_unsubscribes.message_train.rb +1 -1
  120. data/spec/dummy/db/migrate/20260827095939_remove_paperclip_columns_from_message_train_attachments.message_train.rb +9 -0
  121. data/spec/dummy/db/migrate/20260827161141_create_active_storage_tables.active_storage.rb +57 -0
  122. data/spec/dummy/db/migrate/20260827171550_remove_body_from_message_train_messages.message_train.rb +6 -0
  123. data/spec/dummy/db/migrate/20260827225116_add_marking_indexes.message_train.rb +10 -0
  124. data/spec/dummy/db/migrate/20260828034830_add_body_back_to_message_train_messages.message_train.rb +6 -0
  125. data/spec/dummy/db/migrate/20260828040000_drop_action_text_tables.rb +5 -0
  126. data/spec/dummy/db/schema.rb +106 -72
  127. data/spec/dummy/db/seeds/conversations.seeds.rb +22 -22
  128. data/spec/dummy/db/seeds/development/conversations.seeds.rb +2 -2
  129. data/spec/dummy/db/seeds/groups.seeds.rb +4 -4
  130. data/spec/dummy/db/seeds/test/attachments.seeds.rb +4 -4
  131. data/spec/dummy/db/seeds/test/conversations.seeds.rb +2 -2
  132. data/spec/dummy/db/seeds/users.seeds.rb +8 -8
  133. data/spec/dummy/vendor/javascript/.keep +0 -0
  134. data/spec/factories/attachment.rb +5 -6
  135. data/spec/factories/group.rb +2 -2
  136. data/spec/factories/message.rb +7 -7
  137. data/spec/factories/user.rb +3 -3
  138. data/spec/features/boxes_spec.rb +38 -34
  139. data/spec/features/conversations_spec.rb +13 -6
  140. data/spec/features/messages_spec.rb +20 -20
  141. data/spec/features/unsubscribes_spec.rb +9 -9
  142. data/spec/helpers/message_train/application_helper_spec.rb +16 -18
  143. data/spec/helpers/message_train/attachment_helper_spec.rb +8 -18
  144. data/spec/helpers/message_train/boxes_helper_spec.rb +6 -6
  145. data/spec/helpers/message_train/collectives_helper_spec.rb +10 -10
  146. data/spec/helpers/message_train/conversations_helper_spec.rb +43 -85
  147. data/spec/helpers/message_train/messages_helper_spec.rb +41 -61
  148. data/spec/models/message_train/attachment_spec.rb +26 -36
  149. data/spec/models/message_train/box_spec.rb +2 -2
  150. data/spec/models/message_train/conversation_spec.rb +15 -0
  151. data/spec/models/message_train/message_spec.rb +5 -1
  152. data/spec/models/message_train/receipt_spec.rb +1 -1
  153. data/spec/models/message_train/unsubscribe_spec.rb +1 -1
  154. data/spec/rails_helper.rb +14 -13
  155. data/spec/support/controller_behaviors.rb +13 -13
  156. data/spec/support/factory_bot.rb +3 -0
  157. data/spec/support/feature_behaviors.rb +14 -14
  158. data/spec/support/loaded_site/attachments.rb +6 -2
  159. data/spec/support/utilities.rb +49 -20
  160. metadata +260 -213
  161. data/.travis.yml +0 -12
  162. data/VERSION +0 -1
  163. data/app/assets/javascripts/ckeditor/config.js +0 -49
  164. data/app/assets/javascripts/message_train.js +0 -149
  165. data/spec/dummy/app/assets/javascripts/application.js +0 -17
  166. data/spec/dummy/app/assets/stylesheets/bootstrap-everything.scss +0 -54
  167. data/spec/dummy/config/initializers/bootstrap_leather.rb +0 -7
  168. data/spec/dummy/config/initializers/paperclip.rb +0 -5
  169. data/spec/dummy/config/secrets.yml +0 -22
  170. data/spec/dummy/db/test.sqlite3 +0 -0
  171. data/spec/support/factory_girl.rb +0 -3
data/.rubocop_todo.yml CHANGED
@@ -1,12 +1,864 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-03-23 13:39:31 -0600 using RuboCop version 0.47.1.
3
+ # on 2026-08-27 21:23:14 UTC using RuboCop version 1.90.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
+ # Offense count: 2
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
12
+ Bundler/OrderedGems:
13
+ Exclude:
14
+ - 'Gemfile'
15
+
16
+ # Offense count: 51
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ Layout/EmptyLineAfterGuardClause:
19
+ Enabled: false
20
+
21
+ # Offense count: 2
22
+ # This cop supports safe autocorrection (--autocorrect).
23
+ # Configuration parameters: NumberOfEmptyLines.
24
+ Layout/EmptyLineAfterMagicComment:
25
+ Exclude:
26
+ - 'Rakefile'
27
+ - 'config/initializers/kaminari_config.rb'
28
+
29
+ # Offense count: 1
30
+ # This cop supports safe autocorrection (--autocorrect).
31
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
32
+ Layout/EmptyLineBetweenDefs:
33
+ Exclude:
34
+ - 'app/models/message_train/box.rb'
35
+
36
+ # Offense count: 10
37
+ # This cop supports safe autocorrection (--autocorrect).
38
+ Layout/EmptyLinesAfterModuleInclusion:
39
+ Exclude:
40
+ - 'app/controllers/concerns/message_train_support.rb'
41
+ - 'app/models/message_train/box.rb'
42
+ - 'spec/controllers/message_train/boxes_controller_spec.rb'
43
+ - 'spec/controllers/message_train/concerns_spec.rb'
44
+ - 'spec/controllers/message_train/conversations_controller_spec.rb'
45
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
46
+ - 'spec/controllers/message_train/participants_controller_spec.rb'
47
+ - 'spec/controllers/message_train/unsubscribes_controller_spec.rb'
48
+ - 'spec/dummy/app/models/user.rb'
49
+ - 'spec/support/feature_behaviors.rb'
50
+
51
+ # Offense count: 4
52
+ # This cop supports safe autocorrection (--autocorrect).
53
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
54
+ Layout/ExtraSpacing:
55
+ Exclude:
56
+ - 'lib/message_train/engine.rb'
57
+ - 'spec/dummy/config/application.rb'
58
+
59
+ # Offense count: 27
60
+ # This cop supports safe autocorrection (--autocorrect).
61
+ # Configuration parameters: EnforcedStyle.
62
+ # SupportedStyles: space, no_space
63
+ Layout/LineContinuationSpacing:
64
+ Exclude:
65
+ - 'Rakefile'
66
+ - 'app/models/message_train/attachment.rb'
67
+ - 'lib/generators/message_train/install/install_generator.rb'
68
+ - 'spec/controllers/message_train/unsubscribes_controller_spec.rb'
69
+ - 'spec/features/messages_spec.rb'
70
+ - 'spec/features/unsubscribes_spec.rb'
71
+ - 'spec/models/message_train/box_spec.rb'
72
+ - 'spec/support/utilities.rb'
73
+
74
+ # Offense count: 19
75
+ # This cop supports safe autocorrection (--autocorrect).
76
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
77
+ # SupportedStyles: aligned, indented
78
+ Layout/LineEndStringConcatenationIndentation:
79
+ Exclude:
80
+ - 'Rakefile'
81
+ - 'app/models/message_train/attachment.rb'
82
+ - 'lib/generators/message_train/install/install_generator.rb'
83
+ - 'spec/controllers/message_train/unsubscribes_controller_spec.rb'
84
+ - 'spec/dummy/config/environments/development.rb'
85
+ - 'spec/dummy/config/environments/test.rb'
86
+ - 'spec/features/messages_spec.rb'
87
+ - 'spec/features/unsubscribes_spec.rb'
88
+ - 'spec/models/message_train/box_spec.rb'
89
+
90
+ # Offense count: 1
91
+ # This cop supports safe autocorrection (--autocorrect).
92
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
93
+ Lint/AmbiguousBlockAssociation:
94
+ Exclude:
95
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
96
+
97
+ # Offense count: 3
98
+ # This cop supports safe autocorrection (--autocorrect).
99
+ Lint/AmbiguousOperatorPrecedence:
100
+ Exclude:
101
+ - 'app/helpers/message_train/attachments_helper.rb'
102
+ - 'app/helpers/message_train/boxes_helper.rb'
103
+ - 'app/helpers/message_train/collectives_helper.rb'
104
+
105
+ # Offense count: 7
106
+ # This cop supports unsafe autocorrection (--autocorrect-all).
107
+ # Configuration parameters: RequireParenthesesForMethodChains.
108
+ Lint/AmbiguousRange:
109
+ Exclude:
110
+ - 'app/helpers/message_train/application_helper.rb'
111
+
112
+ # Offense count: 1
113
+ # Configuration parameters: DebuggerMethods, DebuggerRequires.
114
+ Lint/Debugger:
115
+ Exclude:
116
+ - 'spec/support/utilities.rb'
117
+
118
+ # Offense count: 1
119
+ # Configuration parameters: DelegatingMethods, AllowedCrossFilePaths.
120
+ # DelegatingMethods: delegate
121
+ Lint/DuplicateMethods:
122
+ Exclude:
123
+ - 'app/models/message_train/message.rb'
124
+
125
+ # Offense count: 2
126
+ # Configuration parameters: AllowComments.
127
+ Lint/EmptyFile:
128
+ Exclude:
129
+ - 'lib/tasks/message_train_tasks.rake'
130
+ - 'spec/dummy/db/seeds.rb'
131
+
132
+ # Offense count: 1
133
+ # This cop supports safe autocorrection (--autocorrect).
134
+ Lint/RedundantStringCoercion:
135
+ Exclude:
136
+ - 'app/models/message_train/conversation.rb'
137
+
138
+ # Offense count: 3
139
+ # This cop supports safe autocorrection (--autocorrect).
140
+ Lint/SendWithMixinArgument:
141
+ Exclude:
142
+ - 'lib/message_train.rb'
143
+ - 'lib/message_train/localization.rb'
144
+
145
+ # Offense count: 3
146
+ # This cop supports safe autocorrection (--autocorrect).
147
+ # Configuration parameters: EnforcedStyle.
148
+ # SupportedStyles: strict, consistent
149
+ Lint/SymbolConversion:
150
+ Exclude:
151
+ - 'app/models/message_train/box.rb'
152
+ - 'app/models/message_train/conversation.rb'
153
+ - 'app/models/message_train/receipt.rb'
154
+
155
+ # Offense count: 1
156
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
157
+ Metrics/AbcSize:
158
+ Max: 20
159
+
9
160
  # Offense count: 3
10
- # Configuration parameters: CountComments.
161
+ # Configuration parameters: CountComments, CountAsOne.
11
162
  Metrics/ClassLength:
12
163
  Max: 166
164
+
165
+ # Offense count: 3
166
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
167
+ Metrics/MethodLength:
168
+ Max: 13
169
+
170
+ # Offense count: 1
171
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
172
+ Metrics/ParameterLists:
173
+ Max: 6
174
+
175
+ # Offense count: 5
176
+ # This cop supports safe autocorrection (--autocorrect).
177
+ # Configuration parameters: EnforcedStyle, BlockForwardingName.
178
+ # SupportedStyles: anonymous, explicit
179
+ Naming/BlockForwarding:
180
+ Exclude:
181
+ - 'app/models/message_train/conversation.rb'
182
+ - 'app/models/message_train/message.rb'
183
+ - 'app/models/message_train/receipt.rb'
184
+
185
+ # Offense count: 1
186
+ # This cop supports unsafe autocorrection (--autocorrect-all).
187
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
188
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
189
+ Naming/MemoizedInstanceVariableName:
190
+ Exclude:
191
+ - 'app/controllers/concerns/message_train_support.rb'
192
+
193
+ # Offense count: 13
194
+ # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
195
+ # AllowedMethods: call
196
+ # WaywardPredicates: infinite?, nonzero?
197
+ Naming/PredicateMethod:
198
+ Exclude:
199
+ - 'app/controllers/concerns/message_train_authorization.rb'
200
+ - 'app/controllers/message_train/messages_controller.rb'
201
+ - 'app/controllers/message_train/unsubscribes_controller.rb'
202
+ - 'app/models/message_train/box.rb'
203
+ - 'app/models/message_train/ignore.rb'
204
+
205
+ # Offense count: 2
206
+ # This cop supports unsafe autocorrection (--autocorrect-all).
207
+ RSpec/BeEq:
208
+ Exclude:
209
+ - 'spec/models/message_train/attachment_spec.rb'
210
+
211
+ # Offense count: 3
212
+ # This cop supports safe autocorrection (--autocorrect).
213
+ # Configuration parameters: EnforcedStyle.
214
+ # SupportedStyles: be, be_nil
215
+ RSpec/BeNil:
216
+ Exclude:
217
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
218
+ - 'spec/helpers/message_train/collectives_helper_spec.rb'
219
+
220
+ # Offense count: 22
221
+ # This cop supports safe autocorrection (--autocorrect).
222
+ RSpec/ContextMethod:
223
+ Exclude:
224
+ - 'spec/helpers/message_train/boxes_helper_spec.rb'
225
+ - 'spec/helpers/message_train/collectives_helper_spec.rb'
226
+ - 'spec/models/message_train/message_spec.rb'
227
+
228
+ # Offense count: 114
229
+ # Configuration parameters: Prefixes, AllowedPatterns.
230
+ # Prefixes: when, with, without
231
+ RSpec/ContextWording:
232
+ Enabled: false
233
+
234
+ # Offense count: 49
235
+ # This cop supports unsafe autocorrection (--autocorrect-all).
236
+ # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
237
+ # SupportedStyles: described_class, explicit
238
+ RSpec/DescribedClass:
239
+ Exclude:
240
+ - 'spec/helpers/message_train/application_helper_spec.rb'
241
+ - 'spec/models/message_train/conversation_spec.rb'
242
+ - 'spec/models/message_train/ignore_spec.rb'
243
+ - 'spec/models/message_train/message_spec.rb'
244
+ - 'spec/models/message_train/receipt_spec.rb'
245
+
246
+ # Offense count: 31
247
+ # This cop supports safe autocorrection (--autocorrect).
248
+ # Configuration parameters: AllowConsecutiveOneLiners.
249
+ RSpec/EmptyLineAfterExample:
250
+ Exclude:
251
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
252
+ - 'spec/helpers/message_train/conversations_helper_spec.rb'
253
+ - 'spec/helpers/message_train/messages_helper_spec.rb'
254
+ - 'spec/models/message_train/box_spec.rb'
255
+
256
+ # Offense count: 231
257
+ # This cop supports safe autocorrection (--autocorrect).
258
+ RSpec/EmptyLineAfterExampleGroup:
259
+ Enabled: false
260
+
261
+ # Offense count: 23
262
+ # This cop supports safe autocorrection (--autocorrect).
263
+ RSpec/EmptyLineAfterFinalLet:
264
+ Exclude:
265
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
266
+ - 'spec/models/message_train/box_spec.rb'
267
+ - 'spec/models/message_train/conversation_spec.rb'
268
+ - 'spec/models/message_train/ignore_spec.rb'
269
+ - 'spec/models/message_train/message_spec.rb'
270
+ - 'spec/models/user_spec.rb'
271
+
272
+ # Offense count: 138
273
+ # This cop supports safe autocorrection (--autocorrect).
274
+ # Configuration parameters: AllowConsecutiveOneLiners.
275
+ RSpec/EmptyLineAfterHook:
276
+ Enabled: false
277
+
278
+ # Offense count: 187
279
+ # This cop supports safe autocorrection (--autocorrect).
280
+ RSpec/EmptyLineAfterSubject:
281
+ Enabled: false
282
+
283
+ # Offense count: 37
284
+ # Configuration parameters: CountAsOne.
285
+ RSpec/ExampleLength:
286
+ Max: 12
287
+
288
+ # Offense count: 1
289
+ # This cop supports safe autocorrection (--autocorrect).
290
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
291
+ # DisallowedExamples: works
292
+ RSpec/ExampleWording:
293
+ Exclude:
294
+ - 'spec/message_train_spec.rb'
295
+
296
+ # Offense count: 4
297
+ # This cop supports unsafe autocorrection (--autocorrect-all).
298
+ # Configuration parameters: EnforcedStyle, NegatedMatcher.
299
+ # SupportedStyles: method_call, block
300
+ RSpec/ExpectChange:
301
+ Exclude:
302
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
303
+
304
+ # Offense count: 2
305
+ # This cop supports safe autocorrection (--autocorrect).
306
+ # Configuration parameters: EnforcedStyle.
307
+ # SupportedStyles: implicit, each, example
308
+ RSpec/HookArgument:
309
+ Exclude:
310
+ - 'spec/rails_helper.rb'
311
+
312
+ # Offense count: 497
313
+ # This cop supports safe autocorrection (--autocorrect).
314
+ # Configuration parameters: EnforcedStyle.
315
+ # SupportedStyles: is_expected, should
316
+ RSpec/ImplicitExpect:
317
+ Enabled: false
318
+
319
+ # Offense count: 32
320
+ # This cop supports safe autocorrection (--autocorrect).
321
+ # Configuration parameters: EnforcedStyle.
322
+ # SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
323
+ RSpec/ImplicitSubject:
324
+ Exclude:
325
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
326
+ - 'spec/features/boxes_spec.rb'
327
+ - 'spec/helpers/message_train/attachment_helper_spec.rb'
328
+ - 'spec/helpers/message_train/conversations_helper_spec.rb'
329
+ - 'spec/helpers/message_train/messages_helper_spec.rb'
330
+ - 'spec/models/message_train/box_spec.rb'
331
+
332
+ # Offense count: 51
333
+ # This cop supports safe autocorrection (--autocorrect).
334
+ # Configuration parameters: EnforcedStyle.
335
+ # SupportedStyles: it_behaves_like, it_should_behave_like
336
+ RSpec/ItBehavesLike:
337
+ Exclude:
338
+ - 'spec/controllers/message_train/boxes_controller_spec.rb'
339
+ - 'spec/controllers/message_train/concerns_spec.rb'
340
+ - 'spec/controllers/message_train/conversations_controller_spec.rb'
341
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
342
+ - 'spec/controllers/message_train/participants_controller_spec.rb'
343
+ - 'spec/controllers/message_train/unsubscribes_controller_spec.rb'
344
+ - 'spec/support/controller_behaviors.rb'
345
+
346
+ # Offense count: 28
347
+ # This cop supports safe autocorrection (--autocorrect).
348
+ RSpec/LeadingSubject:
349
+ Exclude:
350
+ - 'spec/features/boxes_spec.rb'
351
+ - 'spec/helpers/message_train/application_helper_spec.rb'
352
+ - 'spec/helpers/message_train/conversations_helper_spec.rb'
353
+ - 'spec/helpers/message_train/messages_helper_spec.rb'
354
+ - 'spec/models/user_spec.rb'
355
+
356
+ # Offense count: 2
357
+ RSpec/LeakyLocalVariable:
358
+ Exclude:
359
+ - 'spec/support/feature_behaviors.rb'
360
+
361
+ # Offense count: 28
362
+ # This cop supports safe autocorrection (--autocorrect).
363
+ RSpec/MatchWithSimpleRegex:
364
+ Exclude:
365
+ - 'spec/helpers/message_train/conversations_helper_spec.rb'
366
+ - 'spec/helpers/message_train/messages_helper_spec.rb'
367
+ - 'spec/models/message_train/box_spec.rb'
368
+ - 'spec/models/message_train/ignore_spec.rb'
369
+
370
+ # Offense count: 6
371
+ # This cop supports safe autocorrection (--autocorrect).
372
+ # Configuration parameters: EnforcedStyle.
373
+ # SupportedStyles: hash, symbol
374
+ RSpec/MetadataStyle:
375
+ Exclude:
376
+ - 'spec/features/boxes_spec.rb'
377
+ - 'spec/features/conversations_spec.rb'
378
+ - 'spec/features/messages_spec.rb'
379
+
380
+ # Offense count: 3
381
+ RSpec/MultipleExpectations:
382
+ Max: 2
383
+
384
+ # Offense count: 70
385
+ # Configuration parameters: AllowSubject.
386
+ RSpec/MultipleMemoizedHelpers:
387
+ Max: 21
388
+
389
+ # Offense count: 160
390
+ # Configuration parameters: AllowedGroups.
391
+ RSpec/NestedGroups:
392
+ Max: 7
393
+
394
+ # Offense count: 1
395
+ # Configuration parameters: AllowedPatterns.
396
+ # AllowedPatterns: ^expect_, ^assert_
397
+ RSpec/NoExpectationExample:
398
+ Exclude:
399
+ - 'spec/message_train_spec.rb'
400
+
401
+ # Offense count: 1
402
+ # This cop supports safe autocorrection (--autocorrect).
403
+ # Configuration parameters: EnforcedStyle.
404
+ # SupportedStyles: not_to, to_not
405
+ RSpec/NotToNot:
406
+ Exclude:
407
+ - 'spec/controllers/message_train/messages_controller_spec.rb'
408
+
409
+ # Offense count: 6
410
+ # This cop supports unsafe autocorrection (--autocorrect-all).
411
+ RSpec/Output:
412
+ Exclude:
413
+ - 'spec/dummy/bin/setup'
414
+ - 'spec/support/utilities.rb'
415
+
416
+ # Offense count: 8
417
+ RSpec/RepeatedExampleGroupDescription:
418
+ Exclude:
419
+ - 'spec/models/message_train/box_spec.rb'
420
+ - 'spec/models/message_train/receipt_spec.rb'
421
+
422
+ # Offense count: 2
423
+ # This cop supports safe autocorrection (--autocorrect).
424
+ # Configuration parameters: EnforcedStyle.
425
+ # SupportedStyles: and_return, block
426
+ RSpec/ReturnFromStub:
427
+ Exclude:
428
+ - 'spec/helpers/message_train/application_helper_spec.rb'
429
+
430
+ # Offense count: 20
431
+ # This cop supports safe autocorrection (--autocorrect).
432
+ RSpec/ScatteredSetup:
433
+ Exclude:
434
+ - 'spec/helpers/message_train/messages_helper_spec.rb'
435
+
436
+ # Offense count: 2
437
+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
438
+ # SupportedInflectors: default, active_support
439
+ RSpec/SpecFilePathFormat:
440
+ Exclude:
441
+ - 'spec/controllers/message_train/concerns_spec.rb'
442
+ - 'spec/helpers/message_train/attachment_helper_spec.rb'
443
+
444
+ # Offense count: 9
445
+ # This cop supports unsafe autocorrection (--autocorrect-all).
446
+ Rails/ApplicationRecord:
447
+ Exclude:
448
+ - 'app/models/message_train/attachment.rb'
449
+ - 'app/models/message_train/conversation.rb'
450
+ - 'app/models/message_train/ignore.rb'
451
+ - 'app/models/message_train/message.rb'
452
+ - 'app/models/message_train/receipt.rb'
453
+ - 'app/models/message_train/unsubscribe.rb'
454
+ - 'spec/dummy/app/models/group.rb'
455
+ - 'spec/dummy/app/models/role.rb'
456
+ - 'spec/dummy/app/models/user.rb'
457
+
458
+ # Offense count: 6
459
+ # This cop supports unsafe autocorrection (--autocorrect-all).
460
+ # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
461
+ Rails/Blank:
462
+ Exclude:
463
+ - 'app/controllers/concerns/message_train_support.rb'
464
+ - 'app/models/message_train/box.rb'
465
+ - 'app/models/message_train/message.rb'
466
+ - 'lib/message_train/class_methods.rb'
467
+ - 'lib/message_train/configuration.rb'
468
+
469
+ # Offense count: 1
470
+ # This cop supports safe autocorrection (--autocorrect).
471
+ Rails/ContentTag:
472
+ Exclude:
473
+ - 'app/helpers/message_train/attachments_helper.rb'
474
+
475
+ # Offense count: 2
476
+ # This cop supports safe autocorrection (--autocorrect).
477
+ # Configuration parameters: EnforceForPrefixed.
478
+ Rails/Delegate:
479
+ Exclude:
480
+ - 'app/models/message_train/box.rb'
481
+ - 'app/models/message_train/conversation.rb'
482
+
483
+ # Offense count: 37
484
+ # This cop supports unsafe autocorrection (--autocorrect-all).
485
+ # Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
486
+ # Whitelist: find_by_sql, find_by_token_for
487
+ # AllowedMethods: find_by_sql, find_by_token_for
488
+ # AllowedReceivers: Gem::Specification, page
489
+ Rails/DynamicFindBy:
490
+ Exclude:
491
+ - 'app/models/message_train/box.rb'
492
+ - 'app/models/message_train/message.rb'
493
+ - 'spec/dummy/db/seeds/conversations.seeds.rb'
494
+ - 'spec/dummy/db/seeds/unsubscribes.seeds.rb'
495
+ - 'spec/models/message_train/conversation_spec.rb'
496
+ - 'spec/models/message_train/message_spec.rb'
497
+ - 'spec/models/message_train/receipt_spec.rb'
498
+ - 'spec/support/loaded_site/conversations.rb'
499
+ - 'spec/support/loaded_site/groups.rb'
500
+ - 'spec/support/loaded_site/roles.rb'
501
+
502
+ # Offense count: 3
503
+ # This cop supports safe autocorrection (--autocorrect).
504
+ # Configuration parameters: EnforcedStyle.
505
+ # SupportedStyles: slashes, arguments
506
+ Rails/FilePath:
507
+ Exclude:
508
+ - 'Rakefile'
509
+ - 'spec/rails_helper.rb'
510
+ - 'spec/support/utilities.rb'
511
+
512
+ # Offense count: 1
513
+ # This cop supports safe autocorrection (--autocorrect).
514
+ Rails/FindById:
515
+ Exclude:
516
+ - 'app/models/message_train/box.rb'
517
+
518
+ # Offense count: 1
519
+ # This cop supports unsafe autocorrection (--autocorrect-all).
520
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
521
+ # AllowedMethods: order, limit, select, lock
522
+ Rails/FindEach:
523
+ Exclude:
524
+ - 'app/models/message_train/receipt.rb'
525
+
526
+ # Offense count: 1
527
+ Rails/HasAndBelongsToMany:
528
+ Exclude:
529
+ - 'spec/dummy/app/models/role.rb'
530
+
531
+ # Offense count: 4
532
+ Rails/HasManyOrHasOneDependent:
533
+ Exclude:
534
+ - 'app/models/message_train/conversation.rb'
535
+ - 'app/models/message_train/message.rb'
536
+
537
+ # Offense count: 13
538
+ Rails/HelperInstanceVariable:
539
+ Exclude:
540
+ - 'app/helpers/message_train/boxes_helper.rb'
541
+ - 'app/helpers/message_train/conversations_helper.rb'
542
+ - 'app/helpers/message_train/messages_helper.rb'
543
+
544
+ # Offense count: 1
545
+ # This cop supports safe autocorrection (--autocorrect).
546
+ Rails/HttpStatusNameConsistency:
547
+ Exclude:
548
+ - 'app/controllers/concerns/message_train_support.rb'
549
+
550
+ # Offense count: 6
551
+ # Configuration parameters: IgnoreScopes.
552
+ Rails/InverseOf:
553
+ Exclude:
554
+ - 'app/models/message_train/conversation.rb'
555
+ - 'app/models/message_train/ignore.rb'
556
+ - 'app/models/message_train/message.rb'
557
+ - 'app/models/message_train/receipt.rb'
558
+
559
+ # Offense count: 1
560
+ # This cop supports unsafe autocorrection (--autocorrect-all).
561
+ Rails/OrderArguments:
562
+ Exclude:
563
+ - 'spec/support/loaded_site/users.rb'
564
+
565
+ # Offense count: 4
566
+ Rails/OutputSafety:
567
+ Exclude:
568
+ - 'app/helpers/message_train/attachments_helper.rb'
569
+ - 'app/helpers/message_train/boxes_helper.rb'
570
+ - 'app/helpers/message_train/collectives_helper.rb'
571
+ - 'lib/message_train/localization.rb'
572
+
573
+ # Offense count: 1
574
+ # This cop supports unsafe autocorrection (--autocorrect-all).
575
+ Rails/Pluck:
576
+ Exclude:
577
+ - 'app/models/message_train/box.rb'
578
+
579
+ # Offense count: 1
580
+ # This cop supports unsafe autocorrection (--autocorrect-all).
581
+ Rails/RakeEnvironment:
582
+ Exclude:
583
+ - 'Rakefile'
584
+
585
+ # Offense count: 7
586
+ # This cop supports unsafe autocorrection (--autocorrect-all).
587
+ # Configuration parameters: AllowedReceivers.
588
+ # AllowedReceivers: ActionMailer::Preview, ActiveSupport::TimeZone
589
+ Rails/RedundantActiveRecordAllMethod:
590
+ Exclude:
591
+ - 'spec/models/message_train/box_spec.rb'
592
+ - 'spec/models/message_train/ignore_spec.rb'
593
+
594
+ # Offense count: 1
595
+ # This cop supports unsafe autocorrection (--autocorrect-all).
596
+ Rails/RootPathnameMethods:
597
+ Exclude:
598
+ - 'spec/factories/attachment.rb'
599
+
600
+ # Offense count: 1
601
+ # This cop supports safe autocorrection (--autocorrect).
602
+ Rails/RootPublicPath:
603
+ Exclude:
604
+ - 'spec/support/utilities.rb'
605
+
606
+ # Offense count: 1
607
+ # This cop supports safe autocorrection (--autocorrect).
608
+ # Configuration parameters: EnforcedStyle.
609
+ # SupportedStyles: conservative, aggressive
610
+ Rails/ShortI18n:
611
+ Exclude:
612
+ - 'lib/message_train/localization.rb'
613
+
614
+ # Offense count: 4
615
+ # Configuration parameters: ForbiddenMethods, AllowedMethods.
616
+ # ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
617
+ Rails/SkipsModelValidations:
618
+ Exclude:
619
+ - 'app/models/message_train/message.rb'
620
+ - 'app/models/message_train/receipt.rb'
621
+
622
+ # Offense count: 7
623
+ # This cop supports unsafe autocorrection (--autocorrect-all).
624
+ Rails/StrongParametersExpect:
625
+ Exclude:
626
+ - 'app/controllers/concerns/message_train_support.rb'
627
+ - 'app/controllers/message_train/messages_controller.rb'
628
+ - 'app/controllers/message_train/participants_controller.rb'
629
+ - 'app/controllers/message_train/unsubscribes_controller.rb'
630
+
631
+ # Offense count: 4
632
+ # This cop supports unsafe autocorrection (--autocorrect-all).
633
+ # Configuration parameters: EnforcedStyle.
634
+ # SupportedStyles: strict, flexible
635
+ Rails/TimeZone:
636
+ Exclude:
637
+ - 'app/helpers/message_train/application_helper.rb'
638
+ - 'spec/models/message_train/box_spec.rb'
639
+
640
+ # Offense count: 4
641
+ # This cop supports safe autocorrection (--autocorrect).
642
+ Rails/Validation:
643
+ Exclude:
644
+ - 'app/models/message_train/ignore.rb'
645
+ - 'app/models/message_train/message.rb'
646
+ - 'app/models/message_train/receipt.rb'
647
+ - 'app/models/message_train/unsubscribe.rb'
648
+
649
+ # Offense count: 2
650
+ # This cop supports unsafe autocorrection (--autocorrect-all).
651
+ # Configuration parameters: EnforcedStyle.
652
+ # SupportedStyles: exists, where
653
+ Rails/WhereExists:
654
+ Exclude:
655
+ - 'lib/message_train/instance_methods.rb'
656
+
657
+ # Offense count: 24
658
+ # This cop supports safe autocorrection (--autocorrect).
659
+ # Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames.
660
+ # RedundantRestArgumentNames: args, arguments
661
+ # RedundantKeywordRestArgumentNames: kwargs, options, opts
662
+ # RedundantBlockArgumentNames: blk, block, proc
663
+ Style/ArgumentsForwarding:
664
+ Exclude:
665
+ - 'app/models/message_train/conversation.rb'
666
+ - 'app/models/message_train/message.rb'
667
+ - 'app/models/message_train/receipt.rb'
668
+ - 'lib/message_train/localization.rb'
669
+
670
+ # Offense count: 1
671
+ # This cop supports unsafe autocorrection (--autocorrect-all).
672
+ Style/CollectionQuerying:
673
+ Exclude:
674
+ - 'spec/factories/message.rb'
675
+
676
+ # Offense count: 1
677
+ # This cop supports unsafe autocorrection (--autocorrect-all).
678
+ Style/DirectiveScope:
679
+ Exclude:
680
+ - 'app/helpers/message_train/conversations_helper.rb'
681
+
682
+ # Offense count: 1
683
+ # This cop supports safe autocorrection (--autocorrect).
684
+ Style/Encoding:
685
+ Exclude:
686
+ - 'Rakefile'
687
+
688
+ # Offense count: 12
689
+ # This cop supports safe autocorrection (--autocorrect).
690
+ Style/ExpandPathArguments:
691
+ Exclude:
692
+ - 'Rakefile'
693
+ - 'lib/generators/message_train/install/install_generator.rb'
694
+ - 'spec/dummy/Rakefile'
695
+ - 'spec/dummy/bin/bundle'
696
+ - 'spec/dummy/bin/rails'
697
+ - 'spec/dummy/bin/setup'
698
+ - 'spec/dummy/config.ru'
699
+ - 'spec/dummy/config/boot.rb'
700
+ - 'spec/dummy/config/environment.rb'
701
+ - 'spec/rails_helper.rb'
702
+
703
+ # Offense count: 1
704
+ # This cop supports safe autocorrection (--autocorrect).
705
+ # Configuration parameters: AllowedVariables, DefaultToNil.
706
+ Style/FetchEnvVar:
707
+ Exclude:
708
+ - 'spec/dummy/config/environments/production.rb'
709
+
710
+ # Offense count: 133
711
+ # This cop supports unsafe autocorrection (--autocorrect-all).
712
+ # Configuration parameters: EnforcedStyle.
713
+ # SupportedStyles: always, always_true, never
714
+ Style/FrozenStringLiteralComment:
715
+ Enabled: false
716
+
717
+ # Offense count: 1
718
+ # This cop supports safe autocorrection (--autocorrect).
719
+ # Configuration parameters: EnforcedStyle.
720
+ # SupportedStyles: braces, no_braces
721
+ Style/HashAsLastArrayItem:
722
+ Exclude:
723
+ - 'spec/models/message_train/box_spec.rb'
724
+
725
+ # Offense count: 3
726
+ # This cop supports unsafe autocorrection (--autocorrect-all).
727
+ # Configuration parameters: AllowSplatArgument.
728
+ Style/HashConversion:
729
+ Exclude:
730
+ - 'lib/message_train/instance_methods.rb'
731
+
732
+ # Offense count: 9
733
+ # This cop supports safe autocorrection (--autocorrect).
734
+ Style/IfUnlessModifier:
735
+ Exclude:
736
+ - 'app/controllers/message_train/boxes_controller.rb'
737
+ - 'app/controllers/message_train/conversations_controller.rb'
738
+ - 'app/models/message_train/box.rb'
739
+ - 'app/models/message_train/conversation.rb'
740
+ - 'app/models/message_train/message.rb'
741
+ - 'lib/message_train/instance_methods.rb'
742
+ - 'lib/message_train/mixin.rb'
743
+ - 'spec/factories/message.rb'
744
+ - 'spec/support/controller_behaviors.rb'
745
+
746
+ # Offense count: 1
747
+ # This cop supports unsafe autocorrection (--autocorrect-all).
748
+ Style/MapIntoArray:
749
+ Exclude:
750
+ - 'app/helpers/message_train/conversations_helper.rb'
751
+
752
+ # Offense count: 1
753
+ # This cop supports safe autocorrection (--autocorrect).
754
+ Style/NegatedIfElseCondition:
755
+ Exclude:
756
+ - 'app/controllers/concerns/message_train_support.rb'
757
+
758
+ # Offense count: 1
759
+ # This cop supports unsafe autocorrection (--autocorrect-all).
760
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
761
+ # SupportedStyles: predicate, comparison
762
+ Style/NumericPredicate:
763
+ Exclude:
764
+ - 'app/helpers/message_train/boxes_helper.rb'
765
+
766
+ # Offense count: 1
767
+ # Configuration parameters: AllowedClasses.
768
+ Style/OneClassPerFile:
769
+ Exclude:
770
+ - 'lib/message_train/localization.rb'
771
+
772
+ # Offense count: 2
773
+ # This cop supports safe autocorrection (--autocorrect).
774
+ # Configuration parameters: PreferredDelimiters.
775
+ Style/PercentLiteralDelimiters:
776
+ Exclude:
777
+ - 'app/controllers/message_train/boxes_controller.rb'
778
+ - 'app/controllers/message_train/conversations_controller.rb'
779
+
780
+ # Offense count: 1
781
+ # This cop supports safe autocorrection (--autocorrect).
782
+ Style/RedundantBegin:
783
+ Exclude:
784
+ - 'spec/support/utilities.rb'
785
+
786
+ # Offense count: 1
787
+ # This cop supports safe autocorrection (--autocorrect).
788
+ Style/RedundantConstantBase:
789
+ Exclude:
790
+ - 'spec/dummy/config.ru'
791
+
792
+ # Offense count: 1
793
+ # This cop supports unsafe autocorrection (--autocorrect-all).
794
+ Style/RedundantFilterChain:
795
+ Exclude:
796
+ - 'lib/message_train/instance_methods.rb'
797
+
798
+ # Offense count: 1
799
+ # This cop supports safe autocorrection (--autocorrect).
800
+ Style/RedundantParentheses:
801
+ Exclude:
802
+ - 'spec/factories/message.rb'
803
+
804
+ # Offense count: 3
805
+ # This cop supports safe autocorrection (--autocorrect).
806
+ Style/RedundantRegexpEscape:
807
+ Exclude:
808
+ - 'spec/helpers/message_train/messages_helper_spec.rb'
809
+
810
+ # Offense count: 3
811
+ # This cop supports unsafe autocorrection (--autocorrect-all).
812
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
813
+ # AllowedMethods: present?, blank?, presence, try, try!
814
+ Style/SafeNavigation:
815
+ Exclude:
816
+ - 'app/helpers/message_train/boxes_helper.rb'
817
+ - 'app/helpers/message_train/collectives_helper.rb'
818
+
819
+ # Offense count: 2
820
+ # This cop supports safe autocorrection (--autocorrect).
821
+ Style/StderrPuts:
822
+ Exclude:
823
+ - 'Rakefile'
824
+
825
+ # Offense count: 1
826
+ # This cop supports unsafe autocorrection (--autocorrect-all).
827
+ # Configuration parameters: Mode.
828
+ Style/StringConcatenation:
829
+ Exclude:
830
+ - 'spec/message_train_spec.rb'
831
+
832
+ # Offense count: 14
833
+ # This cop supports safe autocorrection (--autocorrect).
834
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
835
+ # SupportedStyles: single_quotes, double_quotes
836
+ Style/StringLiterals:
837
+ Exclude:
838
+ - 'spec/dummy/bin/importmap'
839
+ - 'spec/dummy/config/importmap.rb'
840
+
841
+ # Offense count: 1
842
+ # This cop supports safe autocorrection (--autocorrect).
843
+ Style/SuperArguments:
844
+ Exclude:
845
+ - 'app/models/message_train/box.rb'
846
+
847
+ # Offense count: 1
848
+ # This cop supports safe autocorrection (--autocorrect).
849
+ Style/SuperWithArgsParentheses:
850
+ Exclude:
851
+ - 'app/models/message_train/box.rb'
852
+
853
+ # Offense count: 17
854
+ # This cop supports safe autocorrection (--autocorrect).
855
+ # Configuration parameters: EnforcedStyle, MinSize.
856
+ # SupportedStyles: percent, brackets
857
+ Style/SymbolArray:
858
+ Exclude:
859
+ - 'app/controllers/message_train/messages_controller.rb'
860
+ - 'app/models/message_train/conversation.rb'
861
+ - 'config/routes.rb'
862
+ - 'lib/message_train/instance_methods.rb'
863
+ - 'lib/message_train/mixin.rb'
864
+ - 'spec/dummy/app/models/group.rb'