.rubocop_todo.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.66.1.
  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/translation_service.rb'
  32. - 'config/environments/production.rb'
  33. - 'config/initializers/2_limited_federation_mode.rb'
  34. - 'config/initializers/3_omniauth.rb'
  35. - 'config/initializers/cache_buster.rb'
  36. - 'config/initializers/devise.rb'
  37. - 'config/initializers/paperclip.rb'
  38. - 'config/initializers/vapid.rb'
  39. - 'lib/tasks/repo.rake'
  40. # This cop supports safe autocorrection (--autocorrect).
  41. # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
  42. # SupportedStyles: annotated, template, unannotated
  43. # AllowedMethods: redirect
  44. Style/FormatStringToken:
  45. Exclude:
  46. - 'config/initializers/devise.rb'
  47. - 'lib/paperclip/color_extractor.rb'
  48. # This cop supports safe autocorrection (--autocorrect).
  49. # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
  50. Style/GuardClause:
  51. Enabled: false
  52. # This cop supports unsafe autocorrection (--autocorrect-all).
  53. Style/HashTransformValues:
  54. Exclude:
  55. - 'app/serializers/rest/web_push_subscription_serializer.rb'
  56. - 'app/services/import_service.rb'
  57. # This cop supports unsafe autocorrection (--autocorrect-all).
  58. Style/MapToHash:
  59. Exclude:
  60. - 'app/models/status.rb'
  61. # This cop supports unsafe autocorrection (--autocorrect-all).
  62. # Configuration parameters: EnforcedStyle.
  63. # SupportedStyles: literals, strict
  64. Style/MutableConstant:
  65. Exclude:
  66. - 'app/models/tag.rb'
  67. - 'app/services/delete_account_service.rb'
  68. - 'lib/mastodon/migration_warning.rb'
  69. # Configuration parameters: AllowedMethods.
  70. # AllowedMethods: respond_to_missing?
  71. Style/OptionalBooleanParameter:
  72. Exclude:
  73. - 'app/helpers/jsonld_helper.rb'
  74. - 'app/lib/admin/system_check/message.rb'
  75. - 'app/lib/request.rb'
  76. - 'app/lib/webfinger.rb'
  77. - 'app/services/block_domain_service.rb'
  78. - 'app/services/fetch_resource_service.rb'
  79. - 'app/workers/domain_block_worker.rb'
  80. - 'app/workers/unfollow_follow_worker.rb'
  81. # This cop supports unsafe autocorrection (--autocorrect-all).
  82. # Configuration parameters: EnforcedStyle.
  83. # SupportedStyles: short, verbose
  84. Style/PreferredHashMethods:
  85. Exclude:
  86. - 'config/initializers/paperclip.rb'
  87. # This cop supports safe autocorrection (--autocorrect).
  88. Style/RedundantConstantBase:
  89. Exclude:
  90. - 'config/environments/production.rb'
  91. - 'config/initializers/sidekiq.rb'
  92. # This cop supports safe autocorrection (--autocorrect).
  93. # Configuration parameters: WordRegex.
  94. # SupportedStyles: percent, brackets
  95. Style/WordArray:
  96. EnforcedStyle: percent
  97. MinSize: 3