.rubocop_todo.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # This configuration was generated by
  2. # `rubocop --auto-gen-config --auto-gen-only-exclude --no-offense-counts --no-auto-gen-timestamp`
  3. # using RuboCop version 1.65.0.
  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. Lint/NonLocalExitFromIterator:
  9. Exclude:
  10. - 'app/helpers/jsonld_helper.rb'
  11. # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
  12. Metrics/AbcSize:
  13. Max: 82
  14. # Configuration parameters: CountBlocks, CountModifierForms, Max.
  15. Metrics/BlockNesting:
  16. Exclude:
  17. - 'lib/tasks/mastodon.rake'
  18. # Configuration parameters: AllowedMethods, AllowedPatterns.
  19. Metrics/CyclomaticComplexity:
  20. Max: 25
  21. # Configuration parameters: AllowedMethods, AllowedPatterns.
  22. Metrics/PerceivedComplexity:
  23. Max: 27
  24. Rails/OutputSafety:
  25. Exclude:
  26. - 'config/initializers/simple_form.rb'
  27. # This cop supports safe autocorrection (--autocorrect).
  28. # Configuration parameters: AllowedVars.
  29. Style/FetchEnvVar:
  30. Exclude:
  31. - 'app/lib/redis_configuration.rb'
  32. - 'app/lib/translation_service.rb'
  33. - 'config/environments/production.rb'
  34. - 'config/initializers/2_limited_federation_mode.rb'
  35. - 'config/initializers/3_omniauth.rb'
  36. - 'config/initializers/blacklists.rb'
  37. - 'config/initializers/cache_buster.rb'
  38. - 'config/initializers/devise.rb'
  39. - 'config/initializers/paperclip.rb'
  40. - 'config/initializers/vapid.rb'
  41. - 'lib/mastodon/redis_config.rb'
  42. - 'lib/tasks/repo.rake'
  43. # This cop supports safe autocorrection (--autocorrect).
  44. # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
  45. # SupportedStyles: annotated, template, unannotated
  46. # AllowedMethods: redirect
  47. Style/FormatStringToken:
  48. Exclude:
  49. - 'config/initializers/devise.rb'
  50. - 'lib/paperclip/color_extractor.rb'
  51. # This cop supports safe autocorrection (--autocorrect).
  52. # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
  53. Style/GuardClause:
  54. Enabled: false
  55. # This cop supports unsafe autocorrection (--autocorrect-all).
  56. Style/HashTransformValues:
  57. Exclude:
  58. - 'app/serializers/rest/web_push_subscription_serializer.rb'
  59. - 'app/services/import_service.rb'
  60. # This cop supports unsafe autocorrection (--autocorrect-all).
  61. Style/MapToHash:
  62. Exclude:
  63. - 'app/models/status.rb'
  64. # This cop supports unsafe autocorrection (--autocorrect-all).
  65. # Configuration parameters: EnforcedStyle.
  66. # SupportedStyles: literals, strict
  67. Style/MutableConstant:
  68. Exclude:
  69. - 'app/models/tag.rb'
  70. - 'app/services/delete_account_service.rb'
  71. - 'lib/mastodon/migration_warning.rb'
  72. # Configuration parameters: AllowedMethods.
  73. # AllowedMethods: respond_to_missing?
  74. Style/OptionalBooleanParameter:
  75. Exclude:
  76. - 'app/helpers/jsonld_helper.rb'
  77. - 'app/lib/admin/system_check/message.rb'
  78. - 'app/lib/request.rb'
  79. - 'app/lib/webfinger.rb'
  80. - 'app/services/block_domain_service.rb'
  81. - 'app/services/fetch_resource_service.rb'
  82. - 'app/workers/domain_block_worker.rb'
  83. - 'app/workers/unfollow_follow_worker.rb'
  84. - 'lib/mastodon/redis_config.rb'
  85. # This cop supports unsafe autocorrection (--autocorrect-all).
  86. # Configuration parameters: EnforcedStyle.
  87. # SupportedStyles: short, verbose
  88. Style/PreferredHashMethods:
  89. Exclude:
  90. - 'config/initializers/paperclip.rb'
  91. # This cop supports safe autocorrection (--autocorrect).
  92. Style/RedundantConstantBase:
  93. Exclude:
  94. - 'config/environments/production.rb'
  95. - 'config/initializers/sidekiq.rb'
  96. # This cop supports safe autocorrection (--autocorrect).
  97. # Configuration parameters: WordRegex.
  98. # SupportedStyles: percent, brackets
  99. Style/WordArray:
  100. EnforcedStyle: percent
  101. MinSize: 3