.rubocop_todo.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config --auto-gen-only-exclude --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
  3. # using RuboCop version 1.57.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. # This cop supports safe autocorrection (--autocorrect).
  9. # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
  10. # Include: **/*.gemfile, **/Gemfile, **/gems.rb
  11. Bundler/OrderedGems:
  12. Exclude:
  13. - 'Gemfile'
  14. # This cop supports safe autocorrection (--autocorrect).
  15. # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
  16. # URISchemes: http, https
  17. Layout/LineLength:
  18. Exclude:
  19. - 'app/models/account.rb'
  20. Lint/NonLocalExitFromIterator:
  21. Exclude:
  22. - 'app/helpers/jsonld_helper.rb'
  23. # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
  24. Metrics/AbcSize:
  25. Max: 144
  26. # Configuration parameters: CountBlocks, Max.
  27. Metrics/BlockNesting:
  28. Exclude:
  29. - 'lib/tasks/mastodon.rake'
  30. # Configuration parameters: AllowedMethods, AllowedPatterns.
  31. Metrics/CyclomaticComplexity:
  32. Max: 25
  33. # Configuration parameters: AllowedMethods, AllowedPatterns.
  34. Metrics/PerceivedComplexity:
  35. Max: 27
  36. # Configuration parameters: CountAsOne.
  37. RSpec/ExampleLength:
  38. Max: 22
  39. RSpec/LetSetup:
  40. Exclude:
  41. - 'spec/controllers/api/v1/accounts/statuses_controller_spec.rb'
  42. - 'spec/controllers/api/v1/filters_controller_spec.rb'
  43. - 'spec/controllers/api/v2/admin/accounts_controller_spec.rb'
  44. - 'spec/controllers/api/v2/filters/keywords_controller_spec.rb'
  45. - 'spec/controllers/api/v2/filters/statuses_controller_spec.rb'
  46. - 'spec/controllers/auth/confirmations_controller_spec.rb'
  47. - 'spec/controllers/auth/passwords_controller_spec.rb'
  48. - 'spec/controllers/auth/sessions_controller_spec.rb'
  49. - 'spec/controllers/follower_accounts_controller_spec.rb'
  50. - 'spec/controllers/following_accounts_controller_spec.rb'
  51. - 'spec/controllers/oauth/authorized_applications_controller_spec.rb'
  52. - 'spec/controllers/oauth/tokens_controller_spec.rb'
  53. - 'spec/controllers/settings/imports_controller_spec.rb'
  54. - 'spec/lib/activitypub/activity/delete_spec.rb'
  55. - 'spec/lib/vacuum/applications_vacuum_spec.rb'
  56. - 'spec/lib/vacuum/preview_cards_vacuum_spec.rb'
  57. - 'spec/models/account_spec.rb'
  58. - 'spec/models/account_statuses_cleanup_policy_spec.rb'
  59. - 'spec/models/canonical_email_block_spec.rb'
  60. - 'spec/models/status_spec.rb'
  61. - 'spec/models/user_spec.rb'
  62. - 'spec/services/account_statuses_cleanup_service_spec.rb'
  63. - 'spec/services/activitypub/fetch_featured_collection_service_spec.rb'
  64. - 'spec/services/activitypub/fetch_remote_status_service_spec.rb'
  65. - 'spec/services/activitypub/process_account_service_spec.rb'
  66. - 'spec/services/activitypub/process_collection_service_spec.rb'
  67. - 'spec/services/batched_remove_status_service_spec.rb'
  68. - 'spec/services/block_domain_service_spec.rb'
  69. - 'spec/services/bulk_import_service_spec.rb'
  70. - 'spec/services/delete_account_service_spec.rb'
  71. - 'spec/services/import_service_spec.rb'
  72. - 'spec/services/notify_service_spec.rb'
  73. - 'spec/services/remove_status_service_spec.rb'
  74. - 'spec/services/report_service_spec.rb'
  75. - 'spec/services/resolve_account_service_spec.rb'
  76. - 'spec/services/suspend_account_service_spec.rb'
  77. - 'spec/services/unallow_domain_service_spec.rb'
  78. - 'spec/services/unsuspend_account_service_spec.rb'
  79. - 'spec/workers/scheduler/user_cleanup_scheduler_spec.rb'
  80. RSpec/MultipleExpectations:
  81. Max: 8
  82. # Configuration parameters: AllowSubject.
  83. RSpec/MultipleMemoizedHelpers:
  84. Max: 21
  85. # Configuration parameters: AllowedGroups.
  86. RSpec/NestedGroups:
  87. Max: 6
  88. # This cop supports unsafe autocorrection (--autocorrect-all).
  89. Rails/ApplicationController:
  90. Exclude:
  91. - 'app/controllers/health_controller.rb'
  92. # Configuration parameters: Include.
  93. # Include: app/models/**/*.rb
  94. Rails/HasAndBelongsToMany:
  95. Exclude:
  96. - 'app/models/concerns/account_associations.rb'
  97. - 'app/models/preview_card.rb'
  98. - 'app/models/status.rb'
  99. - 'app/models/tag.rb'
  100. # Configuration parameters: Include.
  101. # Include: app/models/**/*.rb
  102. Rails/HasManyOrHasOneDependent:
  103. Exclude:
  104. - 'app/models/concerns/account_counters.rb'
  105. - 'app/models/conversation.rb'
  106. - 'app/models/custom_emoji.rb'
  107. - 'app/models/custom_emoji_category.rb'
  108. - 'app/models/domain_block.rb'
  109. - 'app/models/invite.rb'
  110. - 'app/models/status.rb'
  111. - 'app/models/user.rb'
  112. - 'app/models/web/push_subscription.rb'
  113. # Configuration parameters: Include.
  114. # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
  115. Rails/LexicallyScopedActionFilter:
  116. Exclude:
  117. - 'app/controllers/auth/passwords_controller.rb'
  118. - 'app/controllers/auth/registrations_controller.rb'
  119. # This cop supports unsafe autocorrection (--autocorrect-all).
  120. Rails/NegateInclude:
  121. Exclude:
  122. - 'app/controllers/concerns/signature_verification.rb'
  123. - 'app/helpers/jsonld_helper.rb'
  124. - 'app/lib/activitypub/activity/create.rb'
  125. - 'app/lib/activitypub/activity/move.rb'
  126. - 'app/lib/feed_manager.rb'
  127. - 'app/lib/link_details_extractor.rb'
  128. - 'app/models/concerns/attachmentable.rb'
  129. - 'app/models/concerns/remotable.rb'
  130. - 'app/models/custom_filter.rb'
  131. - 'app/services/activitypub/process_status_update_service.rb'
  132. - 'app/services/fetch_link_card_service.rb'
  133. - 'app/workers/web/push_notification_worker.rb'
  134. - 'lib/paperclip/color_extractor.rb'
  135. Rails/OutputSafety:
  136. Exclude:
  137. - 'config/initializers/simple_form.rb'
  138. # This cop supports unsafe autocorrection (--autocorrect-all).
  139. # Configuration parameters: Include.
  140. # Include: **/Rakefile, **/*.rake
  141. Rails/RakeEnvironment:
  142. Exclude:
  143. - 'lib/tasks/auto_annotate_models.rake'
  144. - 'lib/tasks/db.rake'
  145. - 'lib/tasks/emojis.rake'
  146. - 'lib/tasks/mastodon.rake'
  147. - 'lib/tasks/repo.rake'
  148. - 'lib/tasks/statistics.rake'
  149. # Configuration parameters: ForbiddenMethods, AllowedMethods.
  150. # 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
  151. Rails/SkipsModelValidations:
  152. Exclude:
  153. - 'app/controllers/admin/invites_controller.rb'
  154. - 'app/controllers/concerns/session_tracking_concern.rb'
  155. - 'app/models/concerns/account_merging.rb'
  156. - 'app/models/concerns/expireable.rb'
  157. - 'app/models/status.rb'
  158. - 'app/models/trends/links.rb'
  159. - 'app/models/trends/preview_card_batch.rb'
  160. - 'app/models/trends/preview_card_provider_batch.rb'
  161. - 'app/models/trends/status_batch.rb'
  162. - 'app/models/trends/statuses.rb'
  163. - 'app/models/trends/tag_batch.rb'
  164. - 'app/models/trends/tags.rb'
  165. - 'app/models/user.rb'
  166. - 'app/services/activitypub/process_status_update_service.rb'
  167. - 'app/services/approve_appeal_service.rb'
  168. - 'app/services/block_domain_service.rb'
  169. - 'app/services/delete_account_service.rb'
  170. - 'app/services/process_mentions_service.rb'
  171. - 'app/services/unallow_domain_service.rb'
  172. - 'app/services/unblock_domain_service.rb'
  173. - 'app/services/update_status_service.rb'
  174. - 'app/workers/activitypub/post_upgrade_worker.rb'
  175. - 'app/workers/move_worker.rb'
  176. - 'app/workers/scheduler/ip_cleanup_scheduler.rb'
  177. - 'app/workers/scheduler/scheduled_statuses_scheduler.rb'
  178. - 'db/migrate/20161203164520_add_from_account_id_to_notifications.rb'
  179. - 'db/migrate/20170105224407_add_shortcode_to_media_attachments.rb'
  180. - 'db/migrate/20170209184350_add_reply_to_statuses.rb'
  181. - 'db/migrate/20170304202101_add_type_to_media_attachments.rb'
  182. - 'db/migrate/20180528141303_fix_accounts_unique_index.rb'
  183. - 'db/migrate/20180609104432_migrate_web_push_subscriptions2.rb'
  184. - 'db/migrate/20181207011115_downcase_custom_emoji_domains.rb'
  185. - 'db/migrate/20190511134027_add_silenced_at_suspended_at_to_accounts.rb'
  186. - 'db/migrate/20191007013357_update_pt_locales.rb'
  187. - 'db/migrate/20220316233212_update_kurdish_locales.rb'
  188. - 'db/post_migrate/20190511152737_remove_suspended_silenced_account_fields.rb'
  189. - 'db/post_migrate/20200917193528_migrate_notifications_type.rb'
  190. - 'db/post_migrate/20201017234926_fill_account_suspension_origin.rb'
  191. - 'db/post_migrate/20220617202502_migrate_roles.rb'
  192. - 'db/post_migrate/20221101190723_backfill_admin_action_logs.rb'
  193. - 'db/post_migrate/20221206114142_backfill_admin_action_logs_again.rb'
  194. - 'lib/mastodon/cli/accounts.rb'
  195. - 'lib/mastodon/cli/maintenance.rb'
  196. - 'spec/lib/activitypub/activity/follow_spec.rb'
  197. - 'spec/services/follow_service_spec.rb'
  198. - 'spec/services/update_account_service_spec.rb'
  199. # Configuration parameters: Include.
  200. # Include: app/models/**/*.rb
  201. Rails/UniqueValidationWithoutIndex:
  202. Exclude:
  203. - 'app/models/account_alias.rb'
  204. - 'app/models/custom_filter_status.rb'
  205. - 'app/models/identity.rb'
  206. - 'app/models/webauthn_credential.rb'
  207. # Configuration parameters: Include.
  208. # Include: app/models/**/*.rb
  209. Rails/UnusedIgnoredColumns:
  210. Exclude:
  211. - 'app/models/account.rb'
  212. - 'app/models/account_stat.rb'
  213. - 'app/models/admin/action_log.rb'
  214. - 'app/models/custom_filter.rb'
  215. - 'app/models/email_domain_block.rb'
  216. - 'app/models/report.rb'
  217. - 'app/models/status_edit.rb'
  218. - 'app/models/user.rb'
  219. # This cop supports unsafe autocorrection (--autocorrect-all).
  220. # Configuration parameters: EnforcedStyle.
  221. # SupportedStyles: exists, where
  222. Rails/WhereExists:
  223. Exclude:
  224. - 'app/controllers/activitypub/inboxes_controller.rb'
  225. - 'app/controllers/admin/email_domain_blocks_controller.rb'
  226. - 'app/controllers/auth/registrations_controller.rb'
  227. - 'app/lib/activitypub/activity/create.rb'
  228. - 'app/lib/delivery_failure_tracker.rb'
  229. - 'app/lib/feed_manager.rb'
  230. - 'app/lib/status_cache_hydrator.rb'
  231. - 'app/lib/suspicious_sign_in_detector.rb'
  232. - 'app/models/concerns/account_interactions.rb'
  233. - 'app/models/featured_tag.rb'
  234. - 'app/models/poll.rb'
  235. - 'app/models/session_activation.rb'
  236. - 'app/models/status.rb'
  237. - 'app/models/user.rb'
  238. - 'app/policies/status_policy.rb'
  239. - 'app/serializers/rest/announcement_serializer.rb'
  240. - 'app/serializers/rest/tag_serializer.rb'
  241. - 'app/services/activitypub/fetch_remote_status_service.rb'
  242. - 'app/services/app_sign_up_service.rb'
  243. - 'app/services/vote_service.rb'
  244. - 'app/validators/reaction_validator.rb'
  245. - 'app/validators/vote_validator.rb'
  246. - 'app/workers/move_worker.rb'
  247. - 'db/migrate/20190529143559_preserve_old_layout_for_existing_users.rb'
  248. - 'lib/tasks/tests.rake'
  249. - 'spec/models/account_spec.rb'
  250. - 'spec/services/activitypub/process_collection_service_spec.rb'
  251. - 'spec/services/purge_domain_service_spec.rb'
  252. - 'spec/services/unallow_domain_service_spec.rb'
  253. # This cop supports safe autocorrection (--autocorrect).
  254. # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
  255. Style/CaseEquality:
  256. Exclude:
  257. - 'config/initializers/trusted_proxies.rb'
  258. # This cop supports unsafe autocorrection (--autocorrect-all).
  259. # Configuration parameters: AllowedMethods, AllowedPatterns.
  260. # AllowedMethods: ==, equal?, eql?
  261. Style/ClassEqualityComparison:
  262. Exclude:
  263. - 'app/helpers/jsonld_helper.rb'
  264. - 'app/serializers/activitypub/outbox_serializer.rb'
  265. Style/ClassVars:
  266. Exclude:
  267. - 'config/initializers/devise.rb'
  268. # This cop supports safe autocorrection (--autocorrect).
  269. # Configuration parameters: AllowedVars.
  270. Style/FetchEnvVar:
  271. Exclude:
  272. - 'app/lib/redis_configuration.rb'
  273. - 'app/lib/translation_service.rb'
  274. - 'config/environments/development.rb'
  275. - 'config/environments/production.rb'
  276. - 'config/initializers/2_limited_federation_mode.rb'
  277. - 'config/initializers/3_omniauth.rb'
  278. - 'config/initializers/blacklists.rb'
  279. - 'config/initializers/cache_buster.rb'
  280. - 'config/initializers/devise.rb'
  281. - 'config/initializers/paperclip.rb'
  282. - 'config/initializers/vapid.rb'
  283. - 'lib/mastodon/premailer_webpack_strategy.rb'
  284. - 'lib/mastodon/redis_config.rb'
  285. - 'lib/tasks/repo.rake'
  286. - 'spec/features/profile_spec.rb'
  287. # This cop supports safe autocorrection (--autocorrect).
  288. # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
  289. # SupportedStyles: annotated, template, unannotated
  290. # AllowedMethods: redirect
  291. Style/FormatStringToken:
  292. Exclude:
  293. - 'app/models/privacy_policy.rb'
  294. - 'config/initializers/devise.rb'
  295. - 'lib/paperclip/color_extractor.rb'
  296. # This cop supports unsafe autocorrection (--autocorrect-all).
  297. Style/GlobalStdStream:
  298. Exclude:
  299. - 'config/boot.rb'
  300. - 'config/environments/development.rb'
  301. - 'config/environments/production.rb'
  302. # This cop supports safe autocorrection (--autocorrect).
  303. # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
  304. Style/GuardClause:
  305. Exclude:
  306. - 'app/controllers/admin/confirmations_controller.rb'
  307. - 'app/controllers/auth/confirmations_controller.rb'
  308. - 'app/controllers/auth/passwords_controller.rb'
  309. - 'app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb'
  310. - 'app/lib/activitypub/activity/block.rb'
  311. - 'app/lib/request.rb'
  312. - 'app/lib/request_pool.rb'
  313. - 'app/lib/webfinger.rb'
  314. - 'app/lib/webfinger_resource.rb'
  315. - 'app/models/concerns/account_counters.rb'
  316. - 'app/models/concerns/ldap_authenticable.rb'
  317. - 'app/models/tag.rb'
  318. - 'app/models/user.rb'
  319. - 'app/services/fan_out_on_write_service.rb'
  320. - 'app/services/post_status_service.rb'
  321. - 'app/services/process_hashtags_service.rb'
  322. - 'app/workers/move_worker.rb'
  323. - 'app/workers/redownload_avatar_worker.rb'
  324. - 'app/workers/redownload_header_worker.rb'
  325. - 'app/workers/redownload_media_worker.rb'
  326. - 'app/workers/remote_account_refresh_worker.rb'
  327. - 'config/initializers/devise.rb'
  328. - 'db/migrate/20170901141119_truncate_preview_cards.rb'
  329. - 'db/post_migrate/20220704024901_migrate_settings_to_user_roles.rb'
  330. - 'lib/devise/two_factor_ldap_authenticatable.rb'
  331. - 'lib/devise/two_factor_pam_authenticatable.rb'
  332. - 'lib/mastodon/cli/accounts.rb'
  333. - 'lib/mastodon/cli/maintenance.rb'
  334. - 'lib/mastodon/cli/media.rb'
  335. - 'lib/paperclip/attachment_extensions.rb'
  336. - 'lib/tasks/repo.rake'
  337. # This cop supports safe autocorrection (--autocorrect).
  338. # Configuration parameters: EnforcedStyle.
  339. # SupportedStyles: braces, no_braces
  340. Style/HashAsLastArrayItem:
  341. Exclude:
  342. - 'app/controllers/admin/statuses_controller.rb'
  343. - 'app/controllers/api/v1/statuses_controller.rb'
  344. - 'app/models/concerns/account_counters.rb'
  345. - 'app/models/concerns/status_threading_concern.rb'
  346. - 'app/models/status.rb'
  347. - 'app/services/batched_remove_status_service.rb'
  348. - 'app/services/notify_service.rb'
  349. - 'db/migrate/20181024224956_migrate_account_conversations.rb'
  350. # This cop supports unsafe autocorrection (--autocorrect-all).
  351. Style/HashTransformValues:
  352. Exclude:
  353. - 'app/serializers/rest/web_push_subscription_serializer.rb'
  354. - 'app/services/import_service.rb'
  355. # This cop supports safe autocorrection (--autocorrect).
  356. Style/IfUnlessModifier:
  357. Exclude:
  358. - 'config/environments/production.rb'
  359. - 'config/initializers/devise.rb'
  360. - 'config/initializers/ffmpeg.rb'
  361. # This cop supports unsafe autocorrection (--autocorrect-all).
  362. # Configuration parameters: InverseMethods, InverseBlocks.
  363. Style/InverseMethods:
  364. Exclude:
  365. - 'app/models/custom_filter.rb'
  366. - 'app/services/update_account_service.rb'
  367. - 'spec/controllers/activitypub/replies_controller_spec.rb'
  368. # This cop supports safe autocorrection (--autocorrect).
  369. # Configuration parameters: EnforcedStyle.
  370. # SupportedStyles: line_count_dependent, lambda, literal
  371. Style/Lambda:
  372. Exclude:
  373. - 'config/initializers/simple_form.rb'
  374. - 'config/routes.rb'
  375. # This cop supports unsafe autocorrection (--autocorrect-all).
  376. Style/MapToHash:
  377. Exclude:
  378. - 'app/models/status.rb'
  379. # This cop supports unsafe autocorrection (--autocorrect-all).
  380. # Configuration parameters: EnforcedStyle.
  381. # SupportedStyles: literals, strict
  382. Style/MutableConstant:
  383. Exclude:
  384. - 'app/models/tag.rb'
  385. - 'app/services/delete_account_service.rb'
  386. - 'lib/mastodon/migration_warning.rb'
  387. # This cop supports safe autocorrection (--autocorrect).
  388. Style/NilLambda:
  389. Exclude:
  390. - 'config/initializers/paperclip.rb'
  391. # Configuration parameters: AllowedMethods.
  392. # AllowedMethods: respond_to_missing?
  393. Style/OptionalBooleanParameter:
  394. Exclude:
  395. - 'app/helpers/admin/account_moderation_notes_helper.rb'
  396. - 'app/helpers/jsonld_helper.rb'
  397. - 'app/lib/admin/system_check/message.rb'
  398. - 'app/lib/request.rb'
  399. - 'app/lib/webfinger.rb'
  400. - 'app/services/block_domain_service.rb'
  401. - 'app/services/fetch_resource_service.rb'
  402. - 'app/workers/domain_block_worker.rb'
  403. - 'app/workers/unfollow_follow_worker.rb'
  404. - 'lib/mastodon/redis_config.rb'
  405. # This cop supports safe autocorrection (--autocorrect).
  406. # Configuration parameters: PreferredDelimiters.
  407. Style/PercentLiteralDelimiters:
  408. Exclude:
  409. - 'config/deploy.rb'
  410. - 'config/initializers/doorkeeper.rb'
  411. # This cop supports unsafe autocorrection (--autocorrect-all).
  412. # Configuration parameters: EnforcedStyle.
  413. # SupportedStyles: short, verbose
  414. Style/PreferredHashMethods:
  415. Exclude:
  416. - 'config/initializers/paperclip.rb'
  417. # This cop supports safe autocorrection (--autocorrect).
  418. Style/RedundantConstantBase:
  419. Exclude:
  420. - 'config/environments/production.rb'
  421. - 'config/initializers/sidekiq.rb'
  422. # This cop supports unsafe autocorrection (--autocorrect-all).
  423. # Configuration parameters: SafeForConstants.
  424. Style/RedundantFetchBlock:
  425. Exclude:
  426. - 'config/initializers/1_hosts.rb'
  427. - 'config/initializers/chewy.rb'
  428. - 'config/initializers/devise.rb'
  429. - 'config/initializers/paperclip.rb'
  430. - 'config/puma.rb'
  431. # This cop supports safe autocorrection (--autocorrect).
  432. # Configuration parameters: AllowMultipleReturnValues.
  433. Style/RedundantReturn:
  434. Exclude:
  435. - 'app/controllers/api/v1/directories_controller.rb'
  436. - 'app/controllers/auth/confirmations_controller.rb'
  437. - 'app/lib/ostatus/tag_manager.rb'
  438. - 'app/models/form/import.rb'
  439. # This cop supports unsafe autocorrection (--autocorrect-all).
  440. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
  441. # AllowedMethods: present?, blank?, presence, try, try!
  442. Style/SafeNavigation:
  443. Exclude:
  444. - 'app/models/concerns/account_finder_concern.rb'
  445. # This cop supports safe autocorrection (--autocorrect).
  446. # Configuration parameters: EnforcedStyle.
  447. # SupportedStyles: only_raise, only_fail, semantic
  448. Style/SignalException:
  449. Exclude:
  450. - 'lib/devise/two_factor_ldap_authenticatable.rb'
  451. - 'lib/devise/two_factor_pam_authenticatable.rb'
  452. # This cop supports unsafe autocorrection (--autocorrect-all).
  453. Style/SingleArgumentDig:
  454. Exclude:
  455. - 'lib/webpacker/manifest_extensions.rb'
  456. # This cop supports safe autocorrection (--autocorrect).
  457. Style/StderrPuts:
  458. Exclude:
  459. - 'config/boot.rb'
  460. # This cop supports unsafe autocorrection (--autocorrect-all).
  461. # Configuration parameters: Mode.
  462. Style/StringConcatenation:
  463. Exclude:
  464. - 'config/initializers/paperclip.rb'
  465. # This cop supports safe autocorrection (--autocorrect).
  466. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
  467. # SupportedStyles: single_quotes, double_quotes
  468. Style/StringLiterals:
  469. Exclude:
  470. - 'config/environments/production.rb'
  471. - 'config/initializers/backtrace_silencers.rb'
  472. - 'config/initializers/http_client_proxy.rb'
  473. - 'config/initializers/rack_attack.rb'
  474. - 'config/initializers/webauthn.rb'
  475. - 'config/routes.rb'
  476. # This cop supports unsafe autocorrection (--autocorrect-all).
  477. # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
  478. # AllowedMethods: define_method, mail, respond_to
  479. Style/SymbolProc:
  480. Exclude:
  481. - 'config/initializers/3_omniauth.rb'
  482. # This cop supports safe autocorrection (--autocorrect).
  483. # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
  484. # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
  485. Style/TernaryParentheses:
  486. Exclude:
  487. - 'config/environments/development.rb'
  488. # This cop supports safe autocorrection (--autocorrect).
  489. # Configuration parameters: EnforcedStyleForMultiline.
  490. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  491. Style/TrailingCommaInArguments:
  492. Exclude:
  493. - 'config/initializers/paperclip.rb'
  494. # This cop supports safe autocorrection (--autocorrect).
  495. # Configuration parameters: EnforcedStyleForMultiline.
  496. # SupportedStylesForMultiline: comma, consistent_comma, no_comma
  497. Style/TrailingCommaInHashLiteral:
  498. Exclude:
  499. - 'config/environments/production.rb'
  500. - 'config/environments/test.rb'
  501. # This cop supports safe autocorrection (--autocorrect).
  502. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
  503. # SupportedStyles: percent, brackets
  504. Style/WordArray:
  505. Exclude:
  506. - 'app/helpers/languages_helper.rb'