eBooru/.rubocop_todo.yml

2790 lines
99 KiB
YAML

# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 20000`
# on 2024-04-05 12:02:56 UTC using RuboCop version 1.58.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: outdent, indent
Layout/AccessModifierIndentation:
Exclude:
- 'app/controllers/artists_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/forum_post_votes_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/maintenance/user/email_notifications_controller.rb'
- 'app/controllers/tag_alias_requests_controller.rb'
- 'app/controllers/tag_implication_requests_controller.rb'
- 'app/controllers/tag_implications_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/logical/session_loader.rb'
- 'config/state_checker.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
Exclude:
- 'app/models/user.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: start_of_line, begin
Layout/BeginEndAlignment:
Exclude:
- 'app/models/post_flag.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- 'test/unit/forum_topic_test.rb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
Layout/CaseIndentation:
Exclude:
- 'app/helpers/application_helper.rb'
# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
Layout/ClosingParenthesisIndentation:
Exclude:
- 'app/logical/moderator/dashboard/queries/mod_action.rb'
- 'app/logical/pbkdf2.rb'
- 'app/models/post_set_maintainer.rb'
- 'app/models/tag_alias.rb'
- 'db/fixes/102_generate_missing_post_version_fields.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment.
Layout/CommentIndentation:
Exclude:
- 'app/views/forum_posts/_listing.html.erb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Layout/ElseAlignment:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/tag_implication.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/models/favorite.rb'
- 'app/models/post.rb'
- 'app/models/post_set.rb'
- 'app/models/user.rb'
# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
Exclude:
- 'app/controllers/emails_controller.rb'
- 'app/controllers/post_report_reasons_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/logical/apng_inspector.rb'
- 'app/models/post.rb'
- 'app/models/post_approval.rb'
- 'app/models/post_report_reason.rb'
- 'app/models/tag_alias.rb'
- 'config/environments/development.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: around, only_before
Layout/EmptyLinesAroundAccessModifier:
Exclude:
- 'app/controllers/comments_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/helpers/application_helper.rb'
# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
Exclude:
- 'app/logical/tag_correction.rb'
- 'app/models/artist.rb'
- 'app/models/ban.rb'
- 'app/models/note.rb'
- 'app/models/upload.rb'
- 'app/models/wiki_page.rb'
- 'app/presenters/post_presenter.rb'
- 'app/presenters/post_set_presenters/post.rb'
- 'app/presenters/upload_presenter.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'config/routes.rb'
- 'test/unit/post_test.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
Layout/EmptyLinesAroundClassBody:
Exclude:
- 'app/controllers/email_blacklists_controller.rb'
- 'app/logical/apng_inspector.rb'
- 'app/logical/processing_error.rb'
- 'app/logical/sources/alternates/null.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLinesAroundExceptionHandlingKeywords:
Exclude:
- 'app/helpers/forum_topics_helper.rb'
- 'app/logical/upload_service.rb'
- 'app/models/bulk_update_request.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLinesAroundMethodBody:
Exclude:
- 'app/logical/email_link_validator.rb'
- 'app/logical/sources/alternates/base.rb'
- 'app/models/post.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/presenters/post_presenter.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Layout/EmptyLinesAroundModuleBody:
Exclude:
- 'app/logical/pbkdf2.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/helpers/application_helper.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/tag_implication.rb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/helpers/posts_helper.rb'
- 'app/models/post.rb'
- 'app/models/tag.rb'
- 'app/views/post_approvals/index.html.erb'
- 'app/views/tags/index.html.erb'
- 'app/views/takedowns/show.html.erb'
- 'app/views/upload_whitelists/index.html.erb'
- 'app/views/uploads/index.html.erb'
- 'app/views/user_votes/_common_index.html.erb'
- 'app/views/wiki_pages/show_or_new.html.erb'
- 'config.ru'
# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Layout/FirstArgumentIndentation:
Exclude:
- 'app/logical/moderator/dashboard/queries/mod_action.rb'
- 'app/logical/pbkdf2.rb'
- 'app/models/post_set_maintainer.rb'
- 'app/models/tag_alias.rb'
- 'db/fixes/102_generate_missing_post_version_fields.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/FirstArrayElementIndentation:
Exclude:
- 'app/models/mod_action.rb'
# Offense count: 50
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/FirstHashElementIndentation:
Exclude:
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/controllers/upload_whitelists_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/decorators/posts_decorator.rb'
- 'app/indexes/post_version_index.rb'
- 'app/models/edit_history.rb'
- 'app/models/pool_version.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_version.rb'
- 'app/models/user.rb'
- 'app/presenters/post_presenter.rb'
- 'app/serializers/post_serializer.rb'
- 'config/danbooru_default_config.rb'
- 'config/environments/production.rb'
# Offense count: 64
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'app/indexes/post_index.rb'
- 'config/initializers/secret_token.rb'
- 'config/initializers/simple_form.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: normal, indented_internal_methods
Layout/IndentationConsistency:
Exclude:
- 'app/logical/apng_inspector.rb'
- 'app/models/tag.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns.
Layout/IndentationWidth:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/logical/apng_inspector.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/tag_implication.rb'
- 'app/models/user.rb'
- 'test/unit/forum_topic_test.rb'
# Offense count: 27
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
Layout/LeadingCommentSpace:
Exclude:
- 'app/logical/apng_inspector.rb'
- 'app/models/post.rb'
- 'app/models/user.rb'
- 'app/views/users/home.html.erb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/LeadingEmptyLines:
Exclude:
- 'app/views/forum_post_votes/_add_vote.html.erb'
# Offense count: 40
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Exclude:
- 'app/logical/moderator/dashboard/queries/artist.rb'
- 'app/logical/moderator/dashboard/queries/comment.rb'
- 'app/logical/moderator/dashboard/queries/note.rb'
- 'app/logical/moderator/dashboard/queries/upload.rb'
- 'app/logical/moderator/dashboard/queries/wiki_page.rb'
- 'app/models/forum_topic.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Exclude:
- 'app/logical/sources/alternates/pixiv.rb'
- 'test/unit/bulk_update_importer_importer_test.rb'
- 'test/unit/bulk_update_request_test.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/RescueEnsureAlignment:
Exclude:
- 'app/models/post_flag.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterColon:
Exclude:
- 'app/views/users/_statistics.html.erb'
# Offense count: 28
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterComma:
Exclude:
- 'app/controllers/help_controller.rb'
- 'app/helpers/admin/users_helper.rb'
- 'app/indexes/post_index.rb'
- 'app/logical/storage_manager.rb'
- 'app/logical/storage_manager/local.rb'
- 'app/presenters/post_presenter.rb'
- 'app/serializers/post_serializer.rb'
- 'app/views/mod_actions/_search.html.erb'
- 'app/views/post_events/_search.html.erb'
- 'app/views/post_events/index.html.erb'
- 'app/views/users/edit.html.erb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/SpaceAroundEqualsInParameterDefault:
Exclude:
- 'app/logical/storage_manager.rb'
- 'app/models/artist.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAroundKeyword:
Exclude:
- 'test/functional/comments_controller_test.rb'
# Offense count: 38
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
# SupportedStylesForExponentOperator: space, no_space
# SupportedStylesForRationalLiterals: space, no_space
Layout/SpaceAroundOperators:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/helpers/posts_helper.rb'
- 'app/indexes/post_version_index.rb'
- 'app/logical/apng_inspector.rb'
- 'app/logical/user_throttle.rb'
- 'app/models/post.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/models/user.rb'
- 'app/views/edit_histories/index.html.erb'
- 'app/views/edit_histories/show.html.erb'
- 'app/views/forum_topics/_listing.html.erb'
- 'app/views/static/_footer.html.erb'
- 'app/views/takedowns/show.html.erb'
- 'app/views/uploads/new.html.erb'
- 'config.ru'
- 'test/unit/post_replacement_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/related_tag_calculator_test.rb'
# Offense count: 38
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceBeforeBlockBraces:
Exclude:
- 'app/controllers/posts_controller.rb'
- 'app/models/post.rb'
- 'app/models/tag_relationship.rb'
- 'app/models/user.rb'
- 'app/views/moderator/ip_addrs/_ip_listing.html.erb'
- 'test/unit/post_replacement_test.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment.
Layout/SpaceBeforeFirstArg:
Exclude:
- 'app/views/post_approvals/index.html.erb'
- 'app/views/uploads/index.html.erb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceBeforeSemicolon:
Exclude:
- 'app/controllers/blips_controller.rb'
- 'app/controllers/maintenance/user/email_notifications_controller.rb'
- 'app/jobs/application_job.rb'
- 'app/logical/downloads/file.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/user_revert.rb'
- 'app/models/artist.rb'
- 'app/models/note.rb'
- 'app/models/post.rb'
- 'app/models/upload.rb'
- 'app/models/user.rb'
- 'app/models/wiki_page.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
- 'config/environments/production.rb'
# Offense count: 294
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideBlockBraces:
Exclude:
- 'app/controllers/comments_controller.rb'
- 'app/controllers/post_flags_controller.rb'
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/indexes/post_index.rb'
- 'app/logical/post_sets/base.rb'
- 'app/logical/related_tag_calculator.rb'
- 'app/logical/sources/alternates.rb'
- 'app/models/artist.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/favorite.rb'
- 'app/models/forum_post_vote.rb'
- 'app/models/forum_topic.rb'
- 'app/models/note.rb'
- 'app/models/note_version.rb'
- 'app/models/post.rb'
- 'app/models/post_report_reason.rb'
- 'app/models/tag.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_relationship.rb'
- 'app/models/takedown.rb'
- 'app/models/ticket.rb'
- 'app/models/user.rb'
- 'app/models/wiki_page.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/presenters/user_presenter.rb'
- 'app/views/comments/_index_by_post.html.erb'
- 'app/views/forum_topics/index.html.erb'
- 'app/views/mod_actions/_search.html.erb'
- 'app/views/moderator/ip_addrs/_ip_listing.html.erb'
- 'app/views/moderator/ip_addrs/_ip_listing.json.erb'
- 'app/views/post_disapprovals/_counts.html.erb'
- 'app/views/post_events/_search.html.erb'
- 'config/application.rb'
- 'config/danbooru_default_config.rb'
- 'config/routes.rb'
- 'test/factories/tag.rb'
- 'test/factories/user.rb'
- 'test/functional/forum_topics_controller_test.rb'
- 'test/unit/post_replacement_test.rb'
- 'test/unit/tag_test.rb'
- 'test/unit/user_test.rb'
# Offense count: 810
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'app/controllers/staff_notes_controller.rb'
- 'app/controllers/admin/users_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/controllers/comment_votes_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/help_controller.rb'
- 'app/controllers/moderator/ip_addrs_controller.rb'
- 'app/controllers/note_previews_controller.rb'
- 'app/controllers/notes_controller.rb'
- 'app/controllers/post_flags_controller.rb'
- 'app/controllers/post_report_reasons_controller.rb'
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/post_votes_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/controllers/tag_corrections_controller.rb'
- 'app/controllers/takedowns_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/helpers/dmails_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/elastic_post_query_builder.rb'
- 'app/logical/moderator/ip_addr_search.rb'
- 'app/logical/post_thumbnailer.rb'
- 'app/logical/session_creator.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/sources/strategies/pixiv_slim.rb'
- 'app/logical/user_deletion.rb'
- 'app/models/ban.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/forum_post_vote.rb'
- 'app/models/forum_topic.rb'
- 'app/models/pool.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_set.rb'
- 'app/models/post_version.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/models/ticket.rb'
- 'app/models/upload_whitelist.rb'
- 'app/models/user.rb'
- 'app/models/wiki_page.rb'
- 'app/views/admin/users/edit_blacklist.html.erb'
- 'app/views/artist_versions/_standard_listing.html.erb'
- 'app/views/artists/_form.html.erb'
- 'app/views/blips/_form.html.erb'
- 'app/views/blips/index.html.erb'
- 'app/views/blips/partials/index/_list.html.erb'
- 'app/views/blips/partials/show/_blip.html.erb'
- 'app/views/blips/show.html.erb'
- 'app/views/comments/_form.html.erb'
- 'app/views/comments/_index_by_post.html.erb'
- 'app/views/comments/partials/index/_list.html.erb'
- 'app/views/dmails/index.html.erb'
- 'app/views/email_blacklists/index.html.erb'
- 'app/views/forum_posts/_forum_post.html.erb'
- 'app/views/forum_topics/_form.html.erb'
- 'app/views/forum_topics/index.html.erb'
- 'app/views/forum_topics/show.html.erb'
- 'app/views/maintenance/user/api_keys/show.html.erb'
- 'app/views/maintenance/user/passwords/edit.html.erb'
- 'app/views/moderator/dashboards/_activity_artist.html.erb'
- 'app/views/moderator/dashboards/_activity_note.html.erb'
- 'app/views/moderator/dashboards/_activity_tag.html.erb'
- 'app/views/moderator/dashboards/_activity_wiki_page.html.erb'
- 'app/views/moderator/ip_addrs/_ip_listing.html.erb'
- 'app/views/moderator/ip_addrs/_ip_listing.json.erb'
- 'app/views/moderator/ip_addrs/_user_listing.erb'
- 'app/views/note_versions/_revert_listing.html.erb'
- 'app/views/note_versions/_standard_listing.html.erb'
- 'app/views/notes/index.html.erb'
- 'app/views/pool_orders/edit.html.erb'
- 'app/views/pool_versions/_revert_listing.html.erb'
- 'app/views/pool_versions/_standard_listing.html.erb'
- 'app/views/pools/index.html.erb'
- 'app/views/post_replacements/index.html.erb'
- 'app/views/post_report_reasons/index.html.erb'
- 'app/views/post_set_maintainers/_invite_links.html.erb'
- 'app/views/post_sets/maintainers.html.erb'
- 'app/views/posts/partials/index/_posts.html.erb'
- 'app/views/posts/partials/show/_information.html.erb'
- 'app/views/posts/partials/show/_notices.html.erb'
- 'app/views/posts/partials/show/_options.html.erb'
- 'app/views/tag_relationships/_add_form.html.erb'
- 'app/views/tags/index.html.erb'
- 'app/views/takedowns/_editor.html.erb'
- 'app/views/takedowns/index.html.erb'
- 'app/views/upload_whitelists/index.html.erb'
- 'app/views/user_feedbacks/index.html.erb'
- 'app/views/users/_dmail_notice.html.erb'
- 'app/views/users/_statistics.html.erb'
- 'app/views/users/edit.html.erb'
- 'app/views/users/home.html.erb'
- 'app/views/users/index.html.erb'
- 'app/views/users/new.html.erb'
- 'app/views/wiki_pages/show_or_new.html.erb'
- 'config/danbooru_default_config.rb'
- 'test/factories/mod_action.rb'
- 'test/functional/artists_controller_test.rb'
- 'test/functional/bans_controller_test.rb'
- 'test/functional/bulk_update_requests_controller_test.rb'
- 'test/functional/comment_votes_controller_test.rb'
- 'test/functional/comments_controller_test.rb'
- 'test/functional/dmails_controller_test.rb'
- 'test/functional/favorites_controller_test.rb'
- 'test/functional/forum_posts_controller_test.rb'
- 'test/functional/forum_topics_controller_test.rb'
- 'test/functional/maintenance/user/api_keys_controller_test.rb'
- 'test/functional/maintenance/user/login_reminders_controller_test.rb'
- 'test/functional/maintenance/user/password_resets_controller_test.rb'
- 'test/functional/meta_searches_controller_test.rb'
- 'test/functional/note_versions_controller_test.rb'
- 'test/functional/notes_controller_test.rb'
- 'test/functional/pool_elements_controller_test.rb'
- 'test/functional/pool_versions_controller_test.rb'
- 'test/functional/pools_controller_test.rb'
- 'test/functional/post_flags_controller_test.rb'
- 'test/functional/post_replacements_controller_test.rb'
- 'test/functional/posts_controller_test.rb'
- 'test/functional/user_name_change_requests_controller_test.rb'
- 'test/functional/users_controller_test.rb'
- 'test/functional/wiki_page_versions_controller_test.rb'
- 'test/functional/wiki_pages_controller_test.rb'
- 'test/unit/pool_test.rb'
- 'test/unit/post_replacement_test.rb'
- 'test/unit/related_tag_calculator_test.rb'
# Offense count: 20
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, compact, no_space
Layout/SpaceInsideParens:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/logical/pbkdf2.rb'
- 'test/unit/post_test.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingEmptyLines:
Exclude:
- 'app/controllers/user_reverts_controller.rb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Exclude:
- 'app/logical/sources/strategies/base.rb'
- 'app/logical/storage_manager/match.rb'
- 'app/models/destroyed_post.rb'
- 'test/functional/admin/dashboards_controller_test.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Lint/AmbiguousOperator:
Exclude:
- 'app/views/layouts/blank.html.erb'
- 'app/views/layouts/default.html.erb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Lint/AmbiguousOperatorPrecedence:
Exclude:
- 'app/logical/user_throttle.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'app/logical/set_diff.rb'
# Offense count: 14
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/logical/elastic_post_query_builder.rb'
- 'app/logical/sources/alternates/pixiv.rb'
- 'app/logical/storage_manager.rb'
- 'app/logical/tag_name_validator.rb'
- 'app/models/ban.rb'
- 'app/models/post.rb'
- 'app/models/user.rb'
- 'config/initializers/core_extensions.rb'
# Offense count: 1
Lint/DuplicateCaseCondition:
Exclude:
- 'app/helpers/application_helper.rb'
# Offense count: 2
Lint/DuplicateMethods:
Exclude:
- 'app/models/bulk_update_request.rb'
- 'app/models/wiki_page.rb'
# Offense count: 3
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
Exclude:
- 'test/factories/forum_subscription.rb'
- 'test/factories/forum_topic_visit.rb'
- 'test/factories/upload_whitelist.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowComments.
Lint/EmptyConditionalBody:
Exclude:
- 'app/models/post_version.rb'
# Offense count: 2
Lint/IneffectiveAccessModifier:
Exclude:
- 'app/logical/email_link_validator.rb'
- 'app/logical/vote_manager.rb'
# Offense count: 22
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: standard_error, runtime_error
Lint/InheritException:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/blips_controller.rb'
- 'app/controllers/maintenance/user/email_notifications_controller.rb'
- 'app/jobs/application_job.rb'
- 'app/logical/danbooru/paginator/pagination_error.rb'
- 'app/logical/downloads/file.rb'
- 'app/logical/processing_error.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/user_deletion.rb'
- 'app/models/artist.rb'
- 'app/models/favorite.rb'
- 'app/models/note.rb'
- 'app/models/pool.rb'
- 'app/models/post.rb'
- 'app/models/post_flag.rb'
- 'app/models/upload.rb'
- 'app/models/user.rb'
- 'app/models/user_vote.rb'
- 'app/models/wiki_page.rb'
# Offense count: 7
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
Exclude:
- 'app/logical/storage_manager/hybrid.rb'
- 'app/logical/storage_manager/match.rb'
- 'app/models/user.rb'
- 'app/presenters/post_presenter.rb'
- 'app/presenters/post_set_presenters/post.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/presenters/upload_presenter.rb'
# Offense count: 2
Lint/NoReturnInBeginEndBlocks:
Exclude:
- 'app/models/post.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'app/models/post_version.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantStringCoercion:
Exclude:
- 'app/models/bulk_update_request.rb'
# Offense count: 5
Lint/RescueException:
Exclude:
- 'app/logical/upload_service.rb'
- 'app/logical/upload_service/replacer.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods.
# AllowedMethods: present?, blank?, presence, presence_in, try, try!, in?
Lint/SafeNavigationChain:
Exclude:
- 'app/views/blips/partials/show/_blip.html.erb'
- 'app/views/comments/partials/show/_comment.html.erb'
- 'app/views/forum_posts/_forum_post.html.erb'
# Offense count: 1
Lint/SelfAssignment:
Exclude:
- 'app/logical/storage_manager.rb'
# Offense count: 1
Lint/ShadowingOuterLocalVariable:
Exclude:
- 'app/logical/sources/alternates.rb'
# Offense count: 6
Lint/StructNewOverride:
Exclude:
- 'app/logical/moderator/dashboard/queries/artist.rb'
- 'app/logical/moderator/dashboard/queries/comment.rb'
- 'app/logical/moderator/dashboard/queries/note.rb'
- 'app/logical/moderator/dashboard/queries/tag.rb'
- 'app/logical/moderator/dashboard/queries/upload.rb'
- 'app/logical/moderator/dashboard/queries/wiki_page.rb'
# Offense count: 2
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
Exclude:
- 'app/models/forum_subscription.rb'
- 'app/models/tag.rb'
# Offense count: 67
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/views/artist_versions/_standard_listing.html.erb'
- 'app/views/artists/_quick_search.html.erb'
- 'app/views/blips/partials/show/_blip.html.erb'
- 'app/views/bulk_update_requests/_bur_edit_links.html.erb'
- 'app/views/comments/partials/index/_list.html.erb'
- 'app/views/favorites/index.html.erb'
- 'app/views/forum_post_votes/_add_vote.html.erb'
- 'app/views/forum_post_votes/_vote.html.erb'
- 'app/views/note_versions/_revert_listing.html.erb'
- 'app/views/pool_versions/_revert_listing.html.erb'
- 'app/views/post_replacements/index.html.erb'
- 'app/views/posts/index.html.erb'
- 'app/views/posts/partials/index/_related.html.erb'
- 'app/views/posts/partials/show/_notices.html.erb'
- 'app/views/posts/partials/show/_options.html.erb'
- 'app/views/posts/show.html.erb'
- 'app/views/static/home.html.erb'
- 'app/views/takedowns/_editor.html.erb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/ToJSON:
Exclude:
- 'app/logical/sources/strategies/base.rb'
# Offense count: 2
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'app/logical/post_sets/favorites.rb'
- 'app/logical/post_sets/post.rb'
# Offense count: 2
Lint/UnreachableCode:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/static_controller.rb'
# Offense count: 56
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/indexes/post_index.rb'
- 'app/models/post.rb'
- 'config/application.rb'
- 'config/initializers/content_security_policy.rb'
- 'config/routes.rb'
- 'config/unicorn/production.rb'
- 'test/factories/ban.rb'
- 'test/factories/bulk_update_request.rb'
- 'test/unit/storage_manager_test.rb'
# Offense count: 20
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'app/controllers/posts_controller.rb'
- 'app/indexes/post_version_index.rb'
- 'app/logical/maintenance.rb'
- 'app/logical/storage_manager.rb'
- 'app/models/application_record.rb'
- 'app/models/post.rb'
- 'app/models/ticket.rb'
- 'app/presenters/post_presenter.rb'
- 'app/presenters/user_presenter.rb'
- 'config/danbooru_default_config.rb'
# Offense count: 1
Lint/UriEscapeUnescape:
Exclude:
- 'app/presenters/presenter.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
Exclude:
- 'app/logical/email_link_validator.rb'
- 'app/logical/vote_manager.rb'
# Offense count: 83
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/UselessAssignment:
Exclude:
- 'app/controllers/upload_whitelists_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/indexes/post_index.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/logical/storage_manager.rb'
- 'app/logical/vote_manager.rb'
- 'app/models/post.rb'
- 'db/fixes/101_migrate_mod_actions.rb'
- 'test/functional/moderator/post/disapprovals_controller_test.rb'
- 'test/models/upload_service_test.rb'
- 'test/unit/artist_test.rb'
- 'test/unit/bulk_update_importer_importer_test.rb'
- 'test/unit/comment_test.rb'
- 'test/unit/dmail_test.rb'
- 'test/unit/email_blacklist_test.rb'
- 'test/unit/forum_post_test.rb'
- 'test/unit/post_replacement_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/related_tag_calculator_test.rb'
- 'test/unit/tag_alias_test.rb'
- 'test/unit/tag_implication_test.rb'
- 'test/unit/tag_test.rb'
# Offense count: 10
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
# AllowedMethods: refine
Metrics/BlockLength:
Exclude:
- 'app/controllers/posts_controller.rb'
- 'app/indexes/post_index.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/logical/storage_manager/match.rb'
- 'app/logical/upload_service/replacer.rb'
- 'app/models/application_record.rb'
- 'app/models/post.rb'
# Offense count: 2
# Configuration parameters: CountBlocks, Max.
Metrics/BlockNesting:
Exclude:
- 'app/decorators/mod_action_decorator.rb'
- 'app/models/tag.rb'
# Offense count: 4
# Configuration parameters: Max, CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
Exclude:
- 'app/logical/moderator/ip_addr_search.rb'
- 'app/logical/session_creator.rb'
- 'app/logical/storage_manager.rb'
# Offense count: 3
Naming/AccessorMethodName:
Exclude:
- 'app/helpers/title_helper.rb'
- 'app/models/post.rb'
- 'config/initializers/cache_store.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, BlockForwardingName.
# SupportedStyles: anonymous, explicit
Naming/BlockForwarding:
Exclude:
- 'app/logical/maintenance.rb'
- 'test/unit/post_event_test.rb'
# Offense count: 1
Naming/ConstantName:
Exclude:
- 'app/models/mod_action.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/logical/post_sets/post.rb'
- 'app/models/tag.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'config/danbooru_default_config.rb'
# Offense count: 17
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/logical/pbkdf2.rb'
- 'app/logical/tag_relationship_request.rb'
- 'app/logical/user_throttle.rb'
- 'app/models/application_record.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/tag.rb'
- 'app/models/tag_relationship.rb'
- 'app/models/ticket.rb'
- 'app/presenters/presenter.rb'
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
Exclude:
- 'app/controllers/comment_votes_controller.rb'
- 'app/controllers/favorites_controller.rb'
- 'app/controllers/post_votes_controller.rb'
- 'app/logical/maintenance.rb'
- 'app/logical/upload_service.rb'
- 'app/models/application_record.rb'
- 'app/models/artist_url.rb'
- 'app/models/bulk_update_request.rb'
# Offense count: 4
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'app/logical/pbkdf2.rb'
# Offense count: 25
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/maintenance/user/email_notifications_controller.rb'
- 'app/logical/elastic_post_query_builder.rb'
- 'test/functional/dmails_controller_test.rb'
- 'test/functional/note_versions_controller_test.rb'
- 'test/functional/pool_versions_controller_test.rb'
- 'test/functional/pools_controller_test.rb'
- 'test/functional/wiki_pages_controller_test.rb'
- 'test/unit/post_disapproval_test.rb'
- 'test/unit/post_sets/favorites_test.rb'
- 'test/unit/post_sets/post_test.rb'
- 'test/unit/related_tag_query_test.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ActionControllerFlashBeforeRender:
Exclude:
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/post_replacements_controller.rb'
- 'app/controllers/uploads_controller.rb'
# Offense count: 40
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: ExpectedOrder, Include.
# ExpectedOrder: index, show, new, edit, create, update, destroy
# Include: app/controllers/**/*.rb
Rails/ActionOrder:
Exclude:
- 'app/controllers/artists_controller.rb'
- 'app/controllers/bans_controller.rb'
- 'app/controllers/blips_controller.rb'
- 'app/controllers/bulk_update_requests_controller.rb'
- 'app/controllers/comment_votes_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/dmails_controller.rb'
- 'app/controllers/forum_categories_controller.rb'
- 'app/controllers/forum_posts_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/help_controller.rb'
- 'app/controllers/ip_bans_controller.rb'
- 'app/controllers/maintenance/user/password_resets_controller.rb'
- 'app/controllers/mascots_controller.rb'
- 'app/controllers/moderator/post/disapprovals_controller.rb'
- 'app/controllers/pools_controller.rb'
- 'app/controllers/post_flags_controller.rb'
- 'app/controllers/post_replacements_controller.rb'
- 'app/controllers/post_report_reasons_controller.rb'
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/post_votes_controller.rb'
- 'app/controllers/tag_aliases_controller.rb'
- 'app/controllers/tag_corrections_controller.rb'
- 'app/controllers/tag_implications_controller.rb'
- 'app/controllers/tags_controller.rb'
- 'app/controllers/takedowns_controller.rb'
- 'app/controllers/tickets_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/controllers/user_feedbacks_controller.rb'
- 'app/controllers/user_name_change_requests_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/ActiveRecordCallbacksOrder:
Exclude:
- 'app/models/ban.rb'
- 'app/models/forum_post.rb'
- 'app/models/forum_topic.rb'
- 'app/models/news_update.rb'
- 'app/models/pool.rb'
- 'app/models/post_set.rb'
- 'app/models/ticket.rb'
- 'app/models/user.rb'
- 'app/models/wiki_page.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationMailer:
Exclude:
- 'app/mailers/maintenance/user/email_confirmation_mailer.rb'
- 'app/mailers/maintenance/user/login_reminder_mailer.rb'
- 'app/mailers/maintenance/user/password_reset_mailer.rb'
- 'app/mailers/user_mailer.rb'
# Offense count: 23
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: **/test/**/*
Rails/AssertNot:
Exclude:
- 'test/functional/forum_topics_controller_test.rb'
- 'test/functional/post_replacements_controller_test.rb'
- 'test/unit/ban_test.rb'
- 'test/unit/maintenance/user/login_reminder_mailer_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/user_test.rb'
# Offense count: 10
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
Rails/Blank:
Exclude:
- 'app/logical/downloads/file.rb'
- 'app/models/application_record.rb'
- 'app/models/note.rb'
- 'app/models/post.rb'
- 'app/models/post_flag.rb'
- 'app/views/moderator/post/posts/confirm_delete.html.erb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/CompactBlank:
Exclude:
- 'app/controllers/posts_controller.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/models/post_replacement.rb'
- 'app/models/tag_alias.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforceForPrefixed.
Rails/Delegate:
Exclude:
- 'app/logical/sources/strategies/base.rb'
- 'app/models/user.rb'
# Offense count: 48
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
# Whitelist: find_by_sql, find_by_token_for
# AllowedMethods: find_by_sql, find_by_token_for
# AllowedReceivers: Gem::Specification, page
Rails/DynamicFindBy:
Exclude:
- 'app/controllers/admin/reowner_controller.rb'
- 'app/controllers/pool_elements_controller.rb'
- 'app/controllers/post_set_maintainers_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
- 'app/helpers/bulk_update_requests_helper.rb'
- 'app/jobs/tag_nuke_job.rb'
- 'app/logical/related_tag_query.rb'
- 'app/logical/session_creator.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/user_name_validator.rb'
- 'app/models/post.rb'
- 'app/models/tag.rb'
- 'app/models/tag_type_version.rb'
- 'app/models/user.rb'
- 'app/models/wiki_page.rb'
- 'test/functional/artists_controller_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/related_tag_calculator_test.rb'
- 'test/unit/related_tag_query_test.rb'
- 'test/unit/tag_test.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Rails/EnvironmentComparison:
Exclude:
- 'app/models/application_record.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'app/logical/storage_manager.rb'
- 'config/danbooru_default_config.rb'
- 'test/test_helper.rb'
- 'test/unit/storage_manager_test.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: order, limit, select, lock
Rails/FindEach:
Exclude:
- 'app/models/post_set.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: numeric, symbolic
Rails/HttpStatus:
Exclude:
- 'app/controllers/posts_controller.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Rails/IndexBy:
Exclude:
- 'app/logical/moderator/ip_addr_search.rb'
- 'app/presenters/tag_set_presenter.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/tickets_controller.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rails/LinkToBlank:
Exclude:
- 'app/views/static/_guest_warning.html.erb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/NegateInclude:
Exclude:
- 'app/logical/storage_manager/match.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'app/indexes/post_version_index.rb'
# Offense count: 58
Rails/OutputSafety:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/artists_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/helpers/tags_helper.rb'
- 'app/helpers/text_helper.rb'
- 'app/helpers/wiki_pages_helper.rb'
- 'app/javascript/src/javascripts/autocomplete.js.erb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/presenters/user_presenter.rb'
- 'app/views/ads/_leaderboard.html.erb'
- 'app/views/forum_topics/index.html.erb'
- 'app/views/layouts/_head.html.erb'
- 'app/views/moderator/ip_addrs/_ip_listing.json.erb'
- 'app/views/moderator/ip_addrs/_user_listing.json.erb'
- 'app/views/moderator/post/posts/confirm_delete.html.erb'
- 'app/views/post_disapprovals/_counts.html.erb'
- 'app/views/post_sets/_form.html.erb'
- 'app/views/posts/show.html.erb'
- 'app/views/static/_deferred_posts.html.erb'
- 'app/views/static/error.json.erb'
- 'app/views/static/home.html.erb'
- 'app/views/tickets/new_types/_post.html.erb'
- 'app/views/uploads/new.html.erb'
- 'app/views/users/custom_style.css.erb'
- 'app/views/users/edit.html.erb'
- 'app/views/users/home.html.erb'
- 'app/views/upload_whitelists/_form.html.erb'
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/Pluck:
Exclude:
- 'app/models/post.rb'
- 'test/functional/forum_topics_controller_test.rb'
- 'test/functional/post_events_controller_test.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Rails/PluralizationGrammar:
Exclude:
- 'app/controllers/post_set_maintainers_controller.rb'
- 'app/controllers/static_controller.rb'
- 'app/logical/storage_manager.rb'
- 'app/models/post_flag.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Rails/Presence:
Exclude:
- 'app/indexes/post_index.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/views/post_replacements/index.html.erb'
- 'app/views/tickets/show.html.erb'
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
Rails/Present:
Exclude:
- 'app/controllers/post_sets_controller.rb'
- 'app/views/artists/index.html.erb'
- 'app/views/posts/index.atom.erb'
- 'app/views/takedowns/show.html.erb'
- 'app/views/tickets/show.html.erb'
- 'db/fixes/103_fill_new_post_replacement_fields.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rails/RedundantForeignKey:
Exclude:
- 'app/models/forum_topic.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/RedundantPresenceValidationOnBelongsTo:
Exclude:
- 'app/models/ban.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/dmail_filter.rb'
- 'app/models/mod_action.rb'
- 'app/models/note.rb'
- 'app/models/user_name_change_request.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, Include.
# SupportedStyles: assert_not, refute
# Include: **/test/**/*
Rails/RefuteMethods:
Exclude:
- 'test/unit/post_sets/favorites_test.rb'
- 'test/unit/tag_implication_test.rb'
# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/SquishedSQLHeredocs:
Exclude:
- 'app/indexes/post_index.rb'
# Offense count: 4
# Configuration parameters: Include.
# Include: spec/**/*.rb, test/**/*.rb
Rails/TimeZoneAssignment:
Exclude:
- 'test/unit/post_test.rb'
# Offense count: 9
# Configuration parameters: TransactionMethods.
Rails/TransactionExitStatement:
Exclude:
- 'app/logical/favorite_manager.rb'
- 'app/logical/vote_manager.rb'
- 'app/models/post.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/Validation:
Exclude:
- 'app/models/forum_topic.rb'
# Offense count: 21
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: exists, where
Rails/WhereExists:
Exclude:
- 'app/models/ban.rb'
- 'app/models/dmail.rb'
- 'app/models/forum_post.rb'
- 'app/models/note.rb'
- 'app/models/post.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'test/unit/bulk_update_importer_importer_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/tag_implication_test.rb'
# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
Rails/WhereNot:
Exclude:
- 'app/concerns/user_warnable.rb'
- 'app/controllers/deleted_posts_controller.rb'
- 'app/logical/post_query_builder.rb'
- 'app/models/artist.rb'
- 'app/models/ban.rb'
- 'app/models/forum_post_vote.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/views/tickets/show.html.erb'
# Offense count: 1
Security/Open:
Exclude:
- 'app/logical/storage_manager.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Exclude:
- 'app/models/post.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ArrayIntersect:
Exclude:
- 'app/models/user_vote.rb'
- 'app/views/post_replacements/index.html.erb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
Exclude:
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/BlockComments:
Exclude:
- 'app/logical/storage_manager/match.rb'
- 'app/models/ticket.rb'
- 'app/presenters/tag_set_presenter.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: MinBranchesCount.
Style/CaseLikeIf:
Exclude:
- 'app/models/forum_post_vote.rb'
# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'app/helpers/admin/users_helper.rb'
- 'app/logical/meta_searches/tag.rb'
- 'app/logical/storage_manager/hybrid.rb'
- 'app/logical/storage_manager/local.rb'
- 'app/logical/storage_manager/match.rb'
- 'app/logical/storage_manager/null.rb'
- 'test/functional/admin/dashboards_controller_test.rb'
- 'test/functional/admin/users_controller_test.rb'
- 'test/test_helper.rb'
# Offense count: 16
# This cop supports safe autocorrection (--autocorrect).
Style/ColonMethodCall:
Exclude:
- 'app/jobs/upload_delete_files_job.rb'
- 'app/logical/pbkdf2.rb'
- 'app/models/user.rb'
- 'config/routes.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Keywords, RequireColon.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
Style/CommentAnnotation:
Exclude:
- 'app/logical/favorite_manager.rb'
- 'app/logical/post_sets/popular.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
Exclude:
- 'app/logical/downloads/file.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ComparableClamp:
Exclude:
- 'app/models/tag.rb'
# Offense count: 10
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ConcatArrayLiterals:
Exclude:
- 'app/logical/elastic_post_query_builder.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allowed_in_returns, forbidden
Style/DoubleNegation:
Exclude:
- 'test/unit/dmail_test.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/EachWithObject:
Exclude:
- 'app/controllers/concerns/deferred_posts.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowComments.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
Exclude:
- 'app/helpers/posts_helper.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/pool.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/models/user.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/EmptyLiteral:
Exclude:
- 'app/models/tag_implication.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
Exclude:
- 'Rakefile'
- 'config.ru'
- 'config/initializers/secret_token.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
Exclude:
- 'config/danbooru_default_config.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'app/presenters/tag_set_presenter.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: braces, no_braces
Style/HashAsLastArrayItem:
Exclude:
- 'app/controllers/post_versions_controller.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: Thread.current
Style/HashEachMethods:
Exclude:
- 'app/indexes/post_index.rb'
# Offense count: 2
# Configuration parameters: MinBranchesCount.
Style/HashLikeCase:
Exclude:
- 'app/models/post.rb'
- 'config/initializers/core_extensions.rb'
# Offense count: 1084
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
Style/HashSyntax:
Exclude:
- 'Gemfile'
- 'app/controllers/application_controller.rb'
- 'app/controllers/artists_controller.rb'
- 'app/controllers/bans_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/favorites_controller.rb'
- 'app/controllers/forum_posts_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/maintenance/user/deletions_controller.rb'
- 'app/controllers/maintenance/user/email_changes_controller.rb'
- 'app/controllers/maintenance/user/email_notifications_controller.rb'
- 'app/controllers/maintenance/user/password_resets_controller.rb'
- 'app/controllers/note_previews_controller.rb'
- 'app/controllers/notes_controller.rb'
- 'app/controllers/pool_elements_controller.rb'
- 'app/controllers/pools_controller.rb'
- 'app/controllers/post_flags_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/controllers/sessions_controller.rb'
- 'app/controllers/tag_alias_requests_controller.rb'
- 'app/controllers/tag_aliases_controller.rb'
- 'app/controllers/tag_corrections_controller.rb'
- 'app/controllers/tag_implication_requests_controller.rb'
- 'app/controllers/tag_implications_controller.rb'
- 'app/controllers/tags_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/controllers/user_feedbacks_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/logical/favorite_manager.rb'
- 'app/logical/forum_updater.rb'
- 'app/logical/post_thumbnailer.rb'
- 'app/logical/user_deletion.rb'
- 'app/mailers/maintenance/user/email_confirmation_mailer.rb'
- 'app/mailers/maintenance/user/login_reminder_mailer.rb'
- 'app/mailers/maintenance/user/password_reset_mailer.rb'
- 'app/mailers/user_mailer.rb'
- 'app/models/api_key.rb'
- 'app/models/artist.rb'
- 'app/models/artist_url.rb'
- 'app/models/artist_version.rb'
- 'app/models/ban.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/comment.rb'
- 'app/models/dmail.rb'
- 'app/models/forum_post.rb'
- 'app/models/forum_topic.rb'
- 'app/models/mod_action.rb'
- 'app/models/note.rb'
- 'app/models/pool.rb'
- 'app/models/pool_version.rb'
- 'app/models/post.rb'
- 'app/models/post_disapproval.rb'
- 'app/models/post_flag.rb'
- 'app/models/post_version.rb'
- 'app/models/tag.rb'
- 'app/models/tag_relationship.rb'
- 'app/models/upload.rb'
- 'app/models/user.rb'
- 'app/models/user_name_change_request.rb'
- 'app/models/wiki_page.rb'
- 'app/views/admin/dashboards/show.html.erb'
- 'app/views/admin/reowner/new.html.erb'
- 'app/views/artists/_form.html.erb'
- 'app/views/artists/_quick_search.html.erb'
- 'app/views/artists/_show.html.erb'
- 'app/views/bans/_form.html.erb'
- 'app/views/bans/new.html.erb'
- 'app/views/bans/show.html.erb'
- 'app/views/blips/_form.html.erb'
- 'app/views/blips/_quick_search.html.erb'
- 'app/views/bulk_update_requests/_bur_edit_links.html.erb'
- 'app/views/bulk_update_requests/_form.html.erb'
- 'app/views/bulk_update_requests/_listing.html.erb'
- 'app/views/bulk_update_requests/index.html.erb'
- 'app/views/comments/_form.html.erb'
- 'app/views/comments/_index_by_post.html.erb'
- 'app/views/comments/_quick_search.html.erb'
- 'app/views/comments/partials/index/_list.html.erb'
- 'app/views/comments/partials/show/_comment.html.erb'
- 'app/views/dmails/_quick_search.html.erb'
- 'app/views/dmails/index.html.erb'
- 'app/views/dmails/new.html.erb'
- 'app/views/dmails/show.html.erb'
- 'app/views/favorites/index.html.erb'
- 'app/views/forum_posts/_forum_post.html.erb'
- 'app/views/forum_posts/_listing.html.erb'
- 'app/views/forum_posts/_quick_search.html.erb'
- 'app/views/forum_posts/edit.html.erb'
- 'app/views/forum_posts/index.html.erb'
- 'app/views/forum_posts/new.html.erb'
- 'app/views/forum_posts/partials/new/_form.html.erb'
- 'app/views/forum_posts/show.html.erb'
- 'app/views/forum_topics/_form.html.erb'
- 'app/views/forum_topics/_listing.html.erb'
- 'app/views/forum_topics/edit.html.erb'
- 'app/views/forum_topics/index.html.erb'
- 'app/views/forum_topics/new.html.erb'
- 'app/views/forum_topics/show.html.erb'
- 'app/views/layouts/_head.html.erb'
- 'app/views/maintenance/user/api_keys/show.html.erb'
- 'app/views/maintenance/user/deletions/show.html.erb'
- 'app/views/maintenance/user/dmail_filters/edit.html.erb'
- 'app/views/maintenance/user/email_changes/new.html.erb'
- 'app/views/maintenance/user/email_notifications/show.html.erb'
- 'app/views/maintenance/user/login_reminders/new.html.erb'
- 'app/views/maintenance/user/password_reset_mailer/confirmation.html.erb'
- 'app/views/maintenance/user/password_reset_mailer/reset_request.html.erb'
- 'app/views/maintenance/user/password_resets/edit.html.erb'
- 'app/views/maintenance/user/password_resets/new.html.erb'
- 'app/views/maintenance/user/passwords/edit.html.erb'
- 'app/views/meta_searches/tags.html.erb'
- 'app/views/moderator/dashboards/_activity_artist.html.erb'
- 'app/views/moderator/dashboards/_activity_note.html.erb'
- 'app/views/moderator/dashboards/_activity_tag.html.erb'
- 'app/views/moderator/dashboards/_activity_upload.html.erb'
- 'app/views/moderator/dashboards/_activity_wiki_page.html.erb'
- 'app/views/moderator/dashboards/_search_activity.html.erb'
- 'app/views/moderator/dashboards/_search_ip_addr.html.erb'
- 'app/views/moderator/ip_addrs/_user_listing.erb'
- 'app/views/moderator/post/posts/confirm_delete.html.erb'
- 'app/views/moderator/post/posts/confirm_move_favorites.html.erb'
- 'app/views/news_updates/index.html.erb'
- 'app/views/note_versions/_revert_listing.html.erb'
- 'app/views/notes/_quick_search.html.erb'
- 'app/views/notes/_search.html.erb'
- 'app/views/pool_elements/_new.html.erb'
- 'app/views/pool_orders/edit.html.erb'
- 'app/views/pool_versions/_revert_listing.html.erb'
- 'app/views/pool_versions/_standard_listing.html.erb'
- 'app/views/pools/_quick_search.html.erb'
- 'app/views/pools/_search.html.erb'
- 'app/views/pools/edit.html.erb'
- 'app/views/pools/index.html.erb'
- 'app/views/pools/new.html.erb'
- 'app/views/post_favorites/index.html.erb'
- 'app/views/post_versions/index.html.erb'
- 'app/views/posts/_blank.html.erb'
- 'app/views/posts/index.html.erb'
- 'app/views/posts/partials/common/_search.html.erb'
- 'app/views/posts/partials/index/_blacklist.html.erb'
- 'app/views/posts/partials/index/_edit.html.erb'
- 'app/views/posts/partials/index/_related.html.erb'
- 'app/views/posts/partials/show/_edit.html.erb'
- 'app/views/posts/partials/show/_information.html.erb'
- 'app/views/posts/partials/show/_nav_links.html.erb'
- 'app/views/posts/partials/show/_options.html.erb'
- 'app/views/posts/partials/show/_search_seq.html.erb'
- 'app/views/posts/show.html.erb'
- 'app/views/related_tags/show.html.erb'
- 'app/views/sessions/new.html.erb'
- 'app/views/static/_footer.html.erb'
- 'app/views/static/access_denied.html.erb'
- 'app/views/tag_aliases/edit.html.erb'
- 'app/views/tag_corrections/new.html.erb'
- 'app/views/tag_implications/edit.html.erb'
- 'app/views/tags/_quick_search.html.erb'
- 'app/views/tags/edit.html.erb'
- 'app/views/tags/index.html.erb'
- 'app/views/tags/show.html.erb'
- 'app/views/user_feedbacks/index.html.erb'
- 'app/views/user_mailer/dmail_notice.html.erb'
- 'app/views/user_mailer/forum_notice.html.erb'
- 'app/views/users/_dmail_notice.html.erb'
- 'app/views/users/_post_summary.html.erb'
- 'app/views/users/_quick_search.html.erb'
- 'app/views/users/_statistics.html.erb'
- 'app/views/users/edit.html.erb'
- 'app/views/users/index.html.erb'
- 'app/views/users/new.html.erb'
- 'app/views/users/show.html.erb'
- 'app/views/wiki_page_versions/_page_listing.html.erb'
- 'app/views/wiki_pages/_form.html.erb'
- 'app/views/wiki_pages/_quick_search.html.erb'
- 'app/views/wiki_pages/_recent_changes.html.erb'
- 'app/views/wiki_pages/show.html.erb'
- 'app/views/wiki_pages/show_or_new.html.erb'
- 'config/initializers/secret_token.rb'
- 'config/routes.rb'
- 'test/factories/mod_action.rb'
- 'test/functional/dmails_controller_test.rb'
- 'test/functional/favorites_controller_test.rb'
- 'test/functional/forum_posts_controller_test.rb'
- 'test/functional/forum_topics_controller_test.rb'
- 'test/functional/maintenance/user/api_keys_controller_test.rb'
- 'test/functional/maintenance/user/dmail_filters_controller_test.rb'
- 'test/functional/maintenance/user/login_reminders_controller_test.rb'
- 'test/functional/maintenance/user/password_resets_controller_test.rb'
- 'test/functional/note_versions_controller_test.rb'
- 'test/functional/notes_controller_test.rb'
- 'test/functional/pool_elements_controller_test.rb'
- 'test/functional/pool_versions_controller_test.rb'
- 'test/functional/pools_controller_test.rb'
- 'test/functional/post_flags_controller_test.rb'
- 'test/functional/posts_controller_test.rb'
- 'test/functional/tag_implication_requests_controller_test.rb'
- 'test/functional/user_name_change_requests_controller_test.rb'
- 'test/functional/users_controller_test.rb'
- 'test/functional/wiki_page_versions_controller_test.rb'
- 'test/functional/wiki_pages_controller_test.rb'
- 'test/unit/dmail_filter_test.rb'
- 'test/unit/forum_post_test.rb'
- 'test/unit/forum_topic_test.rb'
- 'test/unit/meta_searches/tag_test.rb'
- 'test/unit/note_test.rb'
- 'test/unit/pool_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/related_tag_query_test.rb'
- 'test/unit/tag_alias_request_test.rb'
- 'test/unit/tag_implication_request_test.rb'
- 'test/unit/tag_implication_test.rb'
- 'test/unit/wiki_page_test.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/HashTransformKeys:
Exclude:
- 'app/views/tickets/show.html.erb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/HashTransformValues:
Exclude:
- 'app/indexes/post_index.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/IdenticalConditionalBranches:
Exclude:
- 'app/controllers/users_controller.rb'
- 'app/models/forum_post.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowIfModifier.
Style/IfInsideElse:
Exclude:
- 'app/controllers/static_controller.rb'
- 'app/decorators/mod_action_decorator.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods.
# AllowedMethods: nonzero?
Style/IfWithBooleanLiteralBranches:
Exclude:
- 'config/danbooru_default_config.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: InverseMethods, InverseBlocks.
Style/InverseMethods:
Exclude:
- 'app/logical/post_sets/post.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/KeywordParametersOrder:
Exclude:
- 'app/presenters/tag_set_presenter.rb'
# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/LineEndConcatenation:
Exclude:
- 'test/unit/bulk_update_importer_importer_test.rb'
- 'test/unit/bulk_update_request_test.rb'
# Offense count: 13
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/indexes/post_index.rb'
- 'app/logical/moderator/ip_addr_search.rb'
- 'app/models/post_flag.rb'
- 'app/models/tag.rb'
- 'app/models/tag_alias.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/presenters/user_presenter.rb'
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Style/MethodCallWithoutArgsParentheses:
Exclude:
- 'app/helpers/bulk_update_requests_helper.rb'
- 'app/indexes/post_version_index.rb'
- 'app/models/post.rb'
- 'app/models/post_set.rb'
- 'app/views/sessions/new.html.erb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MinMaxComparison:
Exclude:
- 'app/models/tag.rb'
# Offense count: 3
Style/MissingRespondToMissing:
Exclude:
- 'app/inputs/form_field_collector.rb'
- 'app/logical/current_user.rb'
- 'config/danbooru_default_config.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, Autocorrect.
# SupportedStyles: module_function, extend_self, forbidden
Style/ModuleFunction:
Exclude:
- 'app/logical/post_thumbnailer.rb'
- 'app/logical/upload_service/utils.rb'
# Offense count: 1
Style/MultilineBlockChain:
Exclude:
- 'app/models/wiki_page.rb'
# Offense count: 14
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Exclude:
- 'app/logical/downloads/file.rb'
- 'app/logical/storage_manager.rb'
- 'app/logical/upload_service/utils.rb'
- 'app/models/artist.rb'
- 'app/models/edit_history.rb'
- 'app/models/mod_action.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'test/unit/storage_manager_test.rb'
# Offense count: 27
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/artists_controller.rb'
- 'app/controllers/dmails_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/pools_controller.rb'
- 'app/logical/downloads/file.rb'
- 'app/logical/file_methods.rb'
- 'app/logical/storage_manager/match.rb'
- 'app/logical/upload_service/replacer.rb'
- 'app/logical/user_deletion.rb'
- 'app/logical/user_name_validator.rb'
- 'app/models/artist.rb'
- 'app/models/artist_url.rb'
- 'app/models/note.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/upload.rb'
- 'app/models/user_password_reset_nonce.rb'
- 'app/views/posts/partials/show/_options.html.erb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/NegatedIfElseCondition:
Exclude:
- 'app/controllers/comment_votes_controller.rb'
- 'app/controllers/post_votes_controller.rb'
- 'app/views/posts/show.html.erb'
- 'app/views/tickets/show.html.erb'
- 'app/views/uploads/new.html.erb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, MinBodyLength.
# SupportedStyles: skip_modifier_ifs, always
Style/Next:
Exclude:
- 'app/logical/apng_inspector.rb'
- 'app/logical/set_diff.rb'
- 'app/models/user.rb'
- 'app/presenters/tag_set_presenter.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: predicate, comparison
Style/NilComparison:
Exclude:
- 'app/logical/apng_inspector.rb'
- 'app/models/ban.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IncludeSemanticChanges.
Style/NonNilCheck:
Exclude:
- 'app/models/ban.rb'
- 'app/models/post.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Exclude:
- 'app/logical/storage_manager/local.rb'
# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinDigits, Strict, AllowedNumbers, AllowedPatterns.
Style/NumericLiterals:
Exclude:
- 'app/indexes/post_version_index.rb'
- 'app/logical/apng_inspector.rb'
- 'app/logical/pbkdf2.rb'
- 'app/views/ads/_leaderboard.html.erb'
- 'app/views/takedowns/new.html.erb'
- 'config/danbooru_default_config.rb'
- 'test/functional/application_controller_test.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'app/views/users/_statistics.html.erb'
# Offense count: 6
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'app/logical/session_creator.rb'
- 'app/logical/storage_manager.rb'
- 'app/models/artist.rb'
- 'app/models/post.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/ParallelAssignment:
Exclude:
- 'app/helpers/bulk_update_requests_helper.rb'
- 'app/logical/set_diff.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
# Offense count: 64
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'app/controllers/tag_alias_requests_controller.rb'
- 'app/controllers/tag_implication_requests_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/helpers/bulk_update_requests_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/sources/alternates/pixiv.rb'
- 'app/models/artist.rb'
- 'app/models/artist_url.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/pool.rb'
- 'app/models/post.rb'
- 'app/models/post_disapproval.rb'
- 'app/models/post_replacement.rb'
- 'app/models/upload.rb'
- 'app/models/user.rb'
- 'app/models/user_name_change_request.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/presenters/user_presenter.rb'
- 'app/views/blips/_search.html.erb'
- 'app/views/uploads/index.html.erb'
- 'config/danbooru_default_config.rb'
- 'config/initializers/content_security_policy.rb'
- 'test/unit/bulk_update_importer_importer_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/related_tag_query_test.rb'
- 'test/unit/tag_test.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: short, verbose
Style/PreferredHashMethods:
Exclude:
- 'app/helpers/posts_helper.rb'
# Offense count: 54
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/emails_controller.rb'
- 'app/controllers/forum_post_votes_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/maintenance/user/dmail_filters_controller.rb'
- 'app/controllers/post_versions_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/controllers/static_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/logical/downloads/file.rb'
- 'app/logical/post_thumbnailer.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/user_deletion.rb'
- 'app/logical/user_email_change.rb'
- 'app/logical/user_revert.rb'
- 'app/logical/vote_manager.rb'
- 'app/models/artist.rb'
- 'app/models/note.rb'
- 'app/models/pool.rb'
- 'app/models/post.rb'
- 'app/models/wiki_page.rb'
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Methods.
Style/RedundantArgument:
Exclude:
- 'app/decorators/posts_decorator.rb'
- 'app/helpers/posts_helper.rb'
- 'app/indexes/post_index.rb'
- 'app/models/post.rb'
- 'app/models/tag_alias.rb'
- 'app/presenters/post_presenter.rb'
- 'test/unit/tag_implication_test.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantAssignment:
Exclude:
- 'app/models/post.rb'
- 'config/initializers/core_extensions.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantBegin:
Exclude:
- 'app/helpers/forum_topics_helper.rb'
- 'app/logical/email_link_validator.rb'
- 'app/logical/session_loader.rb'
- 'app/models/post.rb'
- 'config/initializers/cache_store.rb'
- 'db/fixes/101_migrate_mod_actions.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantConstantBase:
Exclude:
- 'config.ru'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantException:
Exclude:
- 'app/logical/upload_service/utils.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SafeForConstants.
Style/RedundantFetchBlock:
Exclude:
- 'config/puma.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantInterpolation:
Exclude:
- 'app/decorators/post_event_decorator.rb'
- 'app/helpers/users_helper.rb'
- 'db/fixes/102_generate_missing_post_version_fields.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantParentheses:
Exclude:
- 'app/models/post.rb'
- 'app/views/takedowns/show.html.erb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantPercentQ:
Exclude:
- 'test/unit/bulk_update_request_test.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
Exclude:
- 'app/models/pool.rb'
- 'app/models/post.rb'
# Offense count: 58
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Exclude:
- 'app/helpers/forum_topics_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/apng_inspector.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/logical/downloads/file.rb'
- 'app/logical/email_link_validator.rb'
- 'app/logical/pbkdf2.rb'
- 'app/logical/post_thumbnailer.rb'
- 'app/logical/session_creator.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/sources/alternates.rb'
- 'app/logical/sources/alternates/pixiv.rb'
- 'app/logical/sources/strategies/base.rb'
- 'app/logical/upload_service.rb'
- 'app/models/application_record.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/dmail.rb'
- 'app/models/forum_post.rb'
- 'app/models/forum_post_vote.rb'
- 'app/models/forum_topic.rb'
- 'app/models/note.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_set_maintainer.rb'
- 'app/models/post_version.rb'
- 'app/models/tag.rb'
- 'app/models/takedown.rb'
- 'app/models/user.rb'
- 'app/models/user_name_change_request.rb'
- 'app/models/wiki_page.rb'
# Offense count: 78
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantSelf:
Exclude:
- 'app/models/application_record.rb'
- 'app/models/artist.rb'
- 'app/models/ban.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/note.rb'
- 'app/models/pool.rb'
- 'app/models/pool_version.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_report_reason.rb'
- 'app/models/post_set.rb'
- 'app/models/post_version.rb'
- 'app/models/tag_alias.rb'
- 'app/models/takedown.rb'
- 'app/models/upload.rb'
- 'app/models/upload_whitelist.rb'
- 'app/models/user.rb'
- 'config/initializers/core_extensions.rb'
- 'test/test_helper.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantSort:
Exclude:
- 'app/logical/set_diff.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantStringEscape:
Exclude:
- 'test/unit/user_test.rb'
# Offense count: 25
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/logical/sources/alternates/furaffinity.rb'
- 'app/logical/sources/alternates/pixiv.rb'
- 'app/logical/tag_name_validator.rb'
- 'app/models/artist.rb'
- 'app/models/artist_url.rb'
- 'app/views/takedowns/index.html.erb'
- 'app/views/takedowns/show.html.erb'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
Style/RescueModifier:
Exclude:
- 'app/controllers/iqdb_queries_controller.rb'
- 'app/logical/file_methods.rb'
- 'app/logical/sources/alternates/base.rb'
- 'app/logical/sources/alternates/pixiv.rb'
- 'app/logical/sources/strategies/base.rb'
- 'app/models/post_replacement.rb'
- 'app/models/upload.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'app/logical/email_link_validator.rb'
- 'app/logical/file_methods.rb'
- 'app/logical/session_loader.rb'
- 'app/models/post.rb'
- 'app/models/post_flag.rb'
- 'db/fixes/101_migrate_mod_actions.rb'
# Offense count: 22
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/sessions_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/logical/admin_route_constraint.rb'
- 'app/models/ban.rb'
- 'app/models/forum_topic.rb'
- 'app/models/post.rb'
- 'app/models/post_version.rb'
- 'app/models/tag.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/models/user.rb'
- 'app/serializers/post_serializer.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SelectByRegexp:
Exclude:
- 'app/models/post.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/SelfAssignment:
Exclude:
- 'app/models/takedown.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'app/logical/user_deletion.rb'
- 'app/models/pool.rb'
- 'app/models/post_flag.rb'
- 'db/migrate/20220810131625_remove_dev_prod_differences.rb'
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
Exclude:
- 'app/models/post.rb'
- 'app/models/tag_alias.rb'
- 'app/models/user.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Exclude:
- 'app/logical/favorite_manager.rb'
- 'app/models/application_record.rb'
- 'app/models/blip.rb'
- 'app/models/post.rb'
- 'app/models/tag.rb'
- 'app/models/tag_alias.rb'
# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireEnglish, EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
Style/SpecialGlobalVars:
Exclude:
- 'app/helpers/forum_topics_helper.rb'
- 'app/logical/sources/alternates/pixiv.rb'
# Offense count: 20
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'app/controllers/comments_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/helpers/title_helper.rb'
- 'app/logical/storage_manager/local.rb'
- 'app/models/artist.rb'
- 'app/models/artist_url.rb'
- 'app/models/pool.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/views/moderator/post/posts/confirm_delete.html.erb'
- 'app/views/posts/show.html.erb'
- 'config/environment.rb'
- 'test/unit/bulk_update_importer_importer_test.rb'
- 'test/unit/bulk_update_request_test.rb'
# Offense count: 629
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'app/controllers/staff_notes_controller.rb'
- 'app/controllers/blips_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/edit_histories_controller.rb'
- 'app/controllers/emails_controller.rb'
- 'app/controllers/favorites_controller.rb'
- 'app/controllers/forum_categories_controller.rb'
- 'app/controllers/forum_post_votes_controller.rb'
- 'app/controllers/forum_posts_controller.rb'
- 'app/controllers/help_controller.rb'
- 'app/controllers/maintenance/user/password_resets_controller.rb'
- 'app/controllers/post_report_reasons_controller.rb'
- 'app/controllers/post_set_maintainers_controller.rb'
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/controllers/static_controller.rb'
- 'app/controllers/tag_implications_controller.rb'
- 'app/controllers/takedowns_controller.rb'
- 'app/controllers/tickets_controller.rb'
- 'app/controllers/upload_whitelists_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/decorators/mod_action_decorator.rb'
- 'app/decorators/posts_decorator.rb'
- 'app/helpers/application_helper.rb'
- 'app/helpers/bulk_update_requests_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/apng_inspector.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/logical/elastic_post_query_builder.rb'
- 'app/logical/maintenance.rb'
- 'app/logical/pbkdf2.rb'
- 'app/logical/post_thumbnailer.rb'
- 'app/logical/session_loader.rb'
- 'app/logical/storage_manager.rb'
- 'app/logical/storage_manager/local.rb'
- 'app/logical/upload_service/replacer.rb'
- 'app/logical/user_deletion.rb'
- 'app/logical/user_email_change.rb'
- 'app/logical/user_name_validator.rb'
- 'app/models/application_record.rb'
- 'app/models/artist.rb'
- 'app/models/ban.rb'
- 'app/models/blip.rb'
- 'app/models/edit_history.rb'
- 'app/models/email_blacklist.rb'
- 'app/models/forum_category.rb'
- 'app/models/forum_topic.rb'
- 'app/models/mod_action.rb'
- 'app/models/pool_version.rb'
- 'app/models/post.rb'
- 'app/models/post_event.rb'
- 'app/models/post_flag.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_report_reason.rb'
- 'app/models/post_set.rb'
- 'app/models/post_set_maintainer.rb'
- 'app/models/tag_alias.rb'
- 'app/models/takedown.rb'
- 'app/models/ticket.rb'
- 'app/models/upload_whitelist.rb'
- 'app/models/user.rb'
- 'app/models/wiki_page.rb'
- 'app/presenters/post_presenter.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'app/serializers/post_serializer.rb'
- 'app/views/admin/reowner/new.html.erb'
- 'app/views/artists/_form.html.erb'
- 'app/views/bans/_form.html.erb'
- 'app/views/blips/partials/show/_blip.html.erb'
- 'app/views/comments/partials/index/_list.html.erb'
- 'app/views/comments/partials/show/_comment.html.erb'
- 'app/views/dmails/show.html.erb'
- 'app/views/forum_post_votes/_vote.html.erb'
- 'app/views/forum_posts/_forum_post.html.erb'
- 'app/views/help/_form.html.erb'
- 'app/views/moderator/ip_addrs/_ip_listing.html.erb'
- 'app/views/moderator/ip_addrs/_user_listing.erb'
- 'app/views/note_versions/_revert_listing.html.erb'
- 'app/views/pool_versions/_revert_listing.html.erb'
- 'app/views/post_replacements/index.html.erb'
- 'app/views/post_sets/_form.html.erb'
- 'app/views/post_sets/_search.html.erb'
- 'app/views/post_sets/index.html.erb'
- 'app/views/post_sets/post_list.erb'
- 'app/views/posts/index.html.erb'
- 'app/views/posts/partials/index/_posts.html.erb'
- 'app/views/posts/partials/show/_embedded.html.erb'
- 'app/views/posts/partials/show/_notices.html.erb'
- 'app/views/posts/partials/show/_options.html.erb'
- 'app/views/posts/show.html.erb'
- 'app/views/static/discord.html.erb'
- 'app/views/static/home.html.erb'
- 'app/views/tag_type_versions/index.html.erb'
- 'app/views/takedowns/_editor.html.erb'
- 'app/views/takedowns/_search.html.erb'
- 'app/views/takedowns/index.html.erb'
- 'app/views/takedowns/new.html.erb'
- 'app/views/tickets/index.html.erb'
- 'app/views/tickets/show.html.erb'
- 'app/views/uploads/new.html.erb'
- 'app/views/users/home.html.erb'
- 'app/views/users/new.html.erb'
- 'config.ru'
- 'config/danbooru_default_config.rb'
- 'config/environments/development.rb'
- 'config/initializers/content_security_policy.rb'
- 'config/initializers/core_extensions.rb'
- 'config/initializers/secret_token.rb'
- 'config/initializers/session_store.rb'
- 'config/initializers/simple_form.rb'
- 'config/routes.rb'
- 'db/fixes/100_new_iqdb_import.rb'
- 'db/fixes/101_migrate_mod_actions.rb'
- 'db/fixes/102_generate_missing_post_version_fields.rb'
- 'db/fixes/103_fill_new_post_replacement_fields.rb'
- 'db/fixes/104_1_add_elasticsearch_replacement_index.rb'
- 'db/fixes/104_2_add_elasticsearch_replacement_data.rb'
- 'db/fixes/105_modaction_to_postevents.rb'
- 'db/fixes/106_note_ranges.rb'
- 'db/fixes/107_remove_name_change_tickets.rb'
- 'test/factories/mod_action.rb'
- 'test/factories/upload.rb'
- 'test/functional/post_replacements_controller_test.rb'
- 'test/models/upload_service_test.rb'
- 'test/unit/apng_inspector_test.rb'
- 'test/unit/email_blacklist_test.rb'
- 'test/unit/post_replacement_test.rb'
- 'test/unit/post_test.rb'
- 'test/unit/post_vote_test.rb'
- 'test/unit/string_test.rb'
- 'test/unit/tag_alias_test.rb'
- 'test/unit/tag_implication_test.rb'
- 'test/unit/tag_test.rb'
- 'test/unit/user_test.rb'
# Offense count: 23
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation:
Exclude:
- 'app/controllers/users_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/helpers/bulk_update_requests_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/bulk_update_request_importer.rb'
- 'app/models/post.rb'
- 'app/presenters/tag_set_presenter.rb'
- 'config/danbooru_default_config.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StructInheritance:
Exclude:
- 'app/logical/moderator/dashboard/queries/artist.rb'
- 'app/logical/moderator/dashboard/queries/comment.rb'
- 'app/logical/moderator/dashboard/queries/note.rb'
- 'app/logical/moderator/dashboard/queries/tag.rb'
- 'app/logical/moderator/dashboard/queries/upload.rb'
- 'app/logical/moderator/dashboard/queries/wiki_page.rb'
# Offense count: 106
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/controllers/artists_controller.rb'
- 'app/controllers/bans_controller.rb'
- 'app/controllers/blips_controller.rb'
- 'app/controllers/bulk_update_requests_controller.rb'
- 'app/controllers/comment_votes_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/deleted_posts_controller.rb'
- 'app/controllers/forum_categories_controller.rb'
- 'app/controllers/forum_posts_controller.rb'
- 'app/controllers/forum_topics_controller.rb'
- 'app/controllers/help_controller.rb'
- 'app/controllers/notes_controller.rb'
- 'app/controllers/pools_controller.rb'
- 'app/controllers/post_flags_controller.rb'
- 'app/controllers/post_replacements_controller.rb'
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/post_votes_controller.rb'
- 'app/controllers/tag_aliases_controller.rb'
- 'app/controllers/tag_corrections_controller.rb'
- 'app/controllers/tag_implications_controller.rb'
- 'app/controllers/tags_controller.rb'
- 'app/controllers/upload_whitelists_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/controllers/user_feedbacks_controller.rb'
- 'app/controllers/user_name_change_requests_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/logical/post_sets/base.rb'
- 'app/models/application_record.rb'
- 'app/models/ban.rb'
- 'app/models/comment.rb'
- 'app/models/mod_action.rb'
- 'app/models/pool.rb'
- 'app/models/post.rb'
- 'app/models/tag.rb'
- 'app/models/takedown.rb'
- 'app/models/user.rb'
- 'app/models/user_name_change_request.rb'
- 'app/models/wiki_page.rb'
- 'app/views/takedowns/_editor.html.erb'
- 'config/initializers/filter_parameter_logging.rb'
- 'config/routes.rb'
- 'test/factories/user.rb'
- 'test/unit/post_event_test.rb'
- 'test/unit/storage_manager_test.rb'
# Offense count: 14
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
# AllowedMethods: define_method, mail, respond_to
Style/SymbolProc:
Exclude:
- 'app/controllers/pools_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/logical/post_sets/base.rb'
- 'app/logical/post_sets/post.rb'
- 'app/models/artist_url.rb'
- 'app/models/post.rb'
- 'app/models/user.rb'
- 'app/views/comments/_index_by_post.html.erb'
- 'db/fixes/100_new_iqdb_import.rb'
- 'test/factories/post.rb'
# Offense count: 23
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments:
Exclude:
- 'app/controllers/post_events_controller.rb'
- 'app/logical/moderator/dashboard/queries/mod_action.rb'
- 'app/logical/pbkdf2.rb'
- 'app/logical/tag_relationship_request.rb'
- 'app/models/artist.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/note.rb'
- 'app/models/post.rb'
- 'app/models/post_set_maintainer.rb'
- 'app/models/tag_alias.rb'
- 'app/models/tag_implication.rb'
- 'app/models/wiki_page.rb'
- 'db/fixes/102_generate_missing_post_version_fields.rb'
- 'test/functional/user_name_change_requests_controller_test.rb'
- 'test/unit/tag_implication_test.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'app/controllers/help_controller.rb'
- 'app/helpers/moderator/dashboards_helper.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/elastic_post_query_builder.rb'
- 'app/logical/sources/alternates.rb'
- 'app/logical/sources/strategies.rb'
- 'app/models/user.rb'
- 'config/initializers/filter_parameter_logging.rb'
# Offense count: 76
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Exclude:
- 'app/controllers/post_sets_controller.rb'
- 'app/controllers/posts_controller.rb'
- 'app/controllers/upload_whitelists_controller.rb'
- 'app/controllers/uploads_controller.rb'
- 'app/decorators/posts_decorator.rb'
- 'app/helpers/application_helper.rb'
- 'app/indexes/post_index.rb'
- 'app/indexes/post_version_index.rb'
- 'app/logical/tag_relationship_request.rb'
- 'app/logical/upload_service/replacer.rb'
- 'app/models/edit_history.rb'
- 'app/models/pool_version.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_version.rb'
- 'app/models/ticket.rb'
- 'app/models/user.rb'
- 'app/presenters/post_presenter.rb'
- 'app/serializers/post_serializer.rb'
- 'config/application.rb'
- 'config/danbooru_default_config.rb'
- 'config/environments/development.rb'
- 'config/environments/production.rb'
- 'config/environments/test.rb'
- 'config/initializers/secret_token.rb'
- 'test/functional/artist_urls_controller_test.rb'
- 'test/functional/iqdb_queries_controller_test.rb'
- 'test/functional/maintenance/user/dmail_filters_controller_test.rb'
- 'test/functional/notes_controller_test.rb'
- 'test/functional/post_replacements_controller_test.rb'
- 'test/functional/tag_implication_requests_controller_test.rb'
- 'test/unit/ban_test.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
Style/TrivialAccessors:
Exclude:
- 'app/models/ban.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/WhileUntilModifier:
Exclude:
- 'app/logical/user_deletion.rb'
# Offense count: 78
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
Exclude:
- 'app/controllers/post_set_maintainers_controller.rb'
- 'app/helpers/posts_helper.rb'
- 'app/logical/storage_manager.rb'
- 'app/logical/storage_manager/local.rb'
- 'app/logical/upload_service/utils.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_set_maintainer.rb'
- 'app/models/takedown.rb'
- 'app/views/artist_urls/index.html.erb'
- 'app/views/bulk_update_requests/_search.html.erb'
- 'app/views/notes/_search.html.erb'
- 'app/views/pools/_search.html.erb'
- 'app/views/pools/edit.html.erb'
- 'app/views/pools/new.html.erb'
- 'app/views/post_flags/_search.html.erb'
- 'app/views/post_replacements/_search.html.erb'
- 'app/views/post_sets/maintainers.html.erb'
- 'app/views/tag_relationships/_search.html.erb'
- 'app/views/tags/edit.html.erb'
- 'app/views/takedowns/_editor.html.erb'
- 'app/views/user_feedbacks/_form.html.erb'
- 'app/views/users/edit.html.erb'
- 'test/unit/post_test.rb'
- 'test/unit/related_tag_query_test.rb'
- 'test/unit/tag_alias_test.rb'
# Offense count: 16
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ZeroLengthPredicate:
Exclude:
- 'app/controllers/bulk_update_requests_controller.rb'
- 'app/controllers/forum_post_votes_controller.rb'
- 'app/controllers/post_flags_controller.rb'
- 'app/controllers/wiki_pages_controller.rb'
- 'app/models/bulk_update_request.rb'
- 'app/models/pool.rb'
- 'app/models/post.rb'
- 'app/models/post_replacement.rb'
- 'app/models/post_set.rb'
- 'app/models/tag_alias.rb'
- 'app/views/post_disapprovals/_counts.html.erb'
- 'app/views/post_versions/index.html.erb'