forked from e621ng/e621ng
[Rubocop] Regenerate todo file
6914 to go
This commit is contained in:
parent
b2e5d65bd5
commit
7edc54d679
@ -1,18 +1,17 @@
|
||||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 20000`
|
||||
# on 2023-03-10 09:04:34 UTC using RuboCop version 1.48.0.
|
||||
# on 2023-04-10 18:34:49 UTC using RuboCop version 1.48.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: 14
|
||||
# Offense count: 13
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: outdent, indent
|
||||
Layout/AccessModifierIndentation:
|
||||
Exclude:
|
||||
- 'app/controllers/artist_urls_controller.rb'
|
||||
- 'app/controllers/artists_controller.rb'
|
||||
- 'app/controllers/comments_controller.rb'
|
||||
- 'app/controllers/forum_post_votes_controller.rb'
|
||||
@ -92,20 +91,19 @@ Layout/ElseAlignment:
|
||||
- 'app/models/bulk_update_request.rb'
|
||||
- 'app/models/tag_implication.rb'
|
||||
|
||||
# Offense count: 12
|
||||
# Offense count: 10
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
||||
Layout/EmptyLineBetweenDefs:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/models/favorite.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/post_set.rb'
|
||||
- 'app/models/post_version.rb'
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 14
|
||||
# Offense count: 12
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Layout/EmptyLines:
|
||||
Exclude:
|
||||
@ -181,11 +179,10 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
||||
- 'app/logical/upload_service.rb'
|
||||
- 'app/models/bulk_update_request.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Offense count: 6
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Layout/EmptyLinesAroundMethodBody:
|
||||
Exclude:
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/logical/email_link_validator.rb'
|
||||
- 'app/logical/sources/alternates/base.rb'
|
||||
- 'app/models/post.rb'
|
||||
@ -212,7 +209,7 @@ Layout/EndAlignment:
|
||||
- 'app/models/bulk_update_request.rb'
|
||||
- 'app/models/tag_implication.rb'
|
||||
|
||||
# Offense count: 18
|
||||
# Offense count: 17
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
||||
Layout/ExtraSpacing:
|
||||
@ -223,7 +220,6 @@ Layout/ExtraSpacing:
|
||||
- 'app/logical/tag_name_validator.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/tag.rb'
|
||||
- 'app/models/user_feedback.rb'
|
||||
- 'app/views/post_approvals/index.html.erb'
|
||||
- 'app/views/tags/index.html.erb'
|
||||
- 'app/views/takedowns/show.html.erb'
|
||||
@ -257,7 +253,7 @@ Layout/FirstArrayElementIndentation:
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/models/mod_action.rb'
|
||||
|
||||
# Offense count: 64
|
||||
# Offense count: 62
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||
@ -271,7 +267,6 @@ Layout/FirstHashElementIndentation:
|
||||
- 'app/decorators/posts_decorator.rb'
|
||||
- 'app/indexes/post_version_index.rb'
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/models/edit_history.rb'
|
||||
- 'app/models/pool_version.rb'
|
||||
- 'app/models/post.rb'
|
||||
@ -306,7 +301,7 @@ Layout/IndentationConsistency:
|
||||
- 'app/logical/apng_inspector.rb'
|
||||
- 'app/models/tag.rb'
|
||||
|
||||
# Offense count: 11
|
||||
# Offense count: 10
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Width, AllowedPatterns.
|
||||
Layout/IndentationWidth:
|
||||
@ -319,10 +314,9 @@ Layout/IndentationWidth:
|
||||
- 'app/models/pool_version.rb'
|
||||
- 'app/models/tag_implication.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'app/models/user_feedback.rb'
|
||||
- 'test/unit/forum_topic_test.rb'
|
||||
|
||||
# Offense count: 35
|
||||
# Offense count: 34
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
||||
Layout/LeadingCommentSpace:
|
||||
@ -332,7 +326,6 @@ Layout/LeadingCommentSpace:
|
||||
- 'app/models/user.rb'
|
||||
- 'app/views/users/home.html.erb'
|
||||
- 'config/danbooru_default_config.rb'
|
||||
- 'config/unicorn/production.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
@ -360,7 +353,7 @@ Layout/MultilineMethodCallBraceLayout:
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/post_sets/favorites.rb'
|
||||
|
||||
# Offense count: 51
|
||||
# Offense count: 43
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
||||
@ -373,7 +366,6 @@ Layout/MultilineMethodCallIndentation:
|
||||
- 'app/logical/moderator/dashboard/queries/wiki_page.rb'
|
||||
- 'app/logical/tag_category.rb'
|
||||
- 'app/models/forum_topic.rb'
|
||||
- 'app/models/tag.rb'
|
||||
|
||||
# Offense count: 13
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
@ -400,7 +392,7 @@ Layout/SpaceAfterColon:
|
||||
- 'app/views/users/_statistics.html.erb'
|
||||
- 'app/views/users/home.html.erb'
|
||||
|
||||
# Offense count: 69
|
||||
# Offense count: 67
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Layout/SpaceAfterComma:
|
||||
Exclude:
|
||||
@ -419,20 +411,17 @@ Layout/SpaceAfterComma:
|
||||
- 'app/views/post_events/_search.html.erb'
|
||||
- 'app/views/post_events/index.html.erb'
|
||||
- 'app/views/posts/partials/show/_video.html.erb'
|
||||
- 'app/views/stats/index.html.erb'
|
||||
- 'app/views/users/edit.html.erb'
|
||||
- 'config/danbooru_default_config.rb'
|
||||
|
||||
# Offense count: 6
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: space, no_space
|
||||
Layout/SpaceAroundEqualsInParameterDefault:
|
||||
Exclude:
|
||||
- 'app/helpers/stats_helper.rb'
|
||||
- 'app/logical/storage_manager.rb'
|
||||
- 'app/models/artist.rb'
|
||||
- 'app/models/ticket.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
@ -441,7 +430,7 @@ Layout/SpaceAroundKeyword:
|
||||
- 'app/logical/danbooru_logger.rb'
|
||||
- 'test/functional/comments_controller_test.rb'
|
||||
|
||||
# Offense count: 57
|
||||
# Offense count: 40
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
||||
# SupportedStylesForExponentOperator: space, no_space
|
||||
@ -452,7 +441,6 @@ Layout/SpaceAroundOperators:
|
||||
- 'app/indexes/post_version_index.rb'
|
||||
- 'app/logical/apng_inspector.rb'
|
||||
- 'app/logical/danbooru/paginator/elasticsearch_extensions.rb'
|
||||
- 'app/logical/stats_updater.rb'
|
||||
- 'app/logical/user_throttle.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/tag_alias.rb'
|
||||
@ -462,7 +450,6 @@ Layout/SpaceAroundOperators:
|
||||
- 'app/views/edit_histories/show.html.erb'
|
||||
- 'app/views/forum_topics/_listing.html.erb'
|
||||
- 'app/views/static/_footer.html.erb'
|
||||
- 'app/views/stats/index.html.erb'
|
||||
- 'app/views/takedowns/show.html.erb'
|
||||
- 'app/views/uploads/new.html.erb'
|
||||
- 'config.ru'
|
||||
@ -537,7 +524,7 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
||||
Exclude:
|
||||
- 'config/environments/production.rb'
|
||||
|
||||
# Offense count: 463
|
||||
# Offense count: 443
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
||||
# SupportedStyles: space, no_space
|
||||
@ -606,7 +593,7 @@ Layout/SpaceInsideBlockBraces:
|
||||
- 'test/unit/tag_test.rb'
|
||||
- 'test/unit/user_test.rb'
|
||||
|
||||
# Offense count: 1381
|
||||
# Offense count: 1362
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
||||
# SupportedStyles: space, no_space, compact
|
||||
@ -645,7 +632,6 @@ Layout/SpaceInsideHashLiteralBraces:
|
||||
- 'app/jobs/takedown_job.rb'
|
||||
- 'app/logical/danbooru/paginator/elasticsearch_extensions.rb'
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/logical/moderator/ip_addr_search.rb'
|
||||
- 'app/logical/post_sets/favorites.rb'
|
||||
- 'app/logical/post_thumbnailer.rb'
|
||||
@ -758,7 +744,6 @@ Layout/SpaceInsideHashLiteralBraces:
|
||||
- 'test/functional/post_replacements_controller_test.rb'
|
||||
- 'test/functional/posts_controller_test.rb'
|
||||
- 'test/functional/sessions_controller_test.rb'
|
||||
- 'test/functional/user_feedbacks_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'
|
||||
@ -789,7 +774,7 @@ Layout/TrailingEmptyLines:
|
||||
- 'app/controllers/user_reverts_controller.rb'
|
||||
- 'app/jobs/index_rebuild_job.rb'
|
||||
|
||||
# Offense count: 17
|
||||
# Offense count: 15
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowInHeredoc.
|
||||
Layout/TrailingWhitespace:
|
||||
@ -798,9 +783,7 @@ Layout/TrailingWhitespace:
|
||||
- 'app/logical/sources/strategies/base.rb'
|
||||
- 'app/logical/storage_manager/match.rb'
|
||||
- 'app/models/destroyed_post.rb'
|
||||
- 'config/unicorn/development.rb'
|
||||
- 'test/functional/admin/dashboards_controller_test.rb'
|
||||
- 'test/unit/artist_test.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
@ -833,14 +816,13 @@ Lint/DeprecatedConstants:
|
||||
Exclude:
|
||||
- 'app/views/ads/_leaderboard.html.erb'
|
||||
|
||||
# Offense count: 19
|
||||
# Offense count: 18
|
||||
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
||||
Lint/DuplicateBranch:
|
||||
Exclude:
|
||||
- 'app/controllers/application_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/note_versions_helper.rb'
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/sources/alternates/pixiv.rb'
|
||||
- 'app/logical/storage_manager.rb'
|
||||
@ -889,7 +871,7 @@ Lint/IneffectiveAccessModifier:
|
||||
- 'app/logical/email_link_validator.rb'
|
||||
- 'app/logical/vote_manager.rb'
|
||||
|
||||
# Offense count: 25
|
||||
# Offense count: 24
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: standard_error, runtime_error
|
||||
@ -901,7 +883,6 @@ Lint/InheritException:
|
||||
- 'app/jobs/application_job.rb'
|
||||
- 'app/logical/danbooru/paginator/pagination_error.rb'
|
||||
- 'app/logical/downloads/file.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/logical/processing_error.rb'
|
||||
- 'app/logical/session_loader.rb'
|
||||
- 'app/logical/user_deletion.rb'
|
||||
@ -1073,7 +1054,7 @@ Lint/UnreachableCode:
|
||||
- 'app/controllers/artists_controller.rb'
|
||||
- 'app/controllers/static_controller.rb'
|
||||
|
||||
# Offense count: 66
|
||||
# Offense count: 62
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
||||
Lint/UnusedBlockArgument:
|
||||
@ -1090,7 +1071,6 @@ Lint/UnusedBlockArgument:
|
||||
- 'config/initializers/content_security_policy.rb'
|
||||
- 'config/routes.rb'
|
||||
- 'config/unicorn/production.rb'
|
||||
- 'config/unicorn/unicorn.rb'
|
||||
- 'test/factories/ban.rb'
|
||||
- 'test/factories/bulk_update_request.rb'
|
||||
- 'test/unit/storage_manager_test.rb'
|
||||
@ -1128,7 +1108,7 @@ Lint/UselessAccessModifier:
|
||||
- 'app/logical/email_link_validator.rb'
|
||||
- 'app/logical/vote_manager.rb'
|
||||
|
||||
# Offense count: 95
|
||||
# Offense count: 91
|
||||
Lint/UselessAssignment:
|
||||
Exclude:
|
||||
- 'app/controllers/upload_whitelists_controller.rb'
|
||||
@ -1140,9 +1120,6 @@ Lint/UselessAssignment:
|
||||
- 'app/logical/vote_manager.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/tag.rb'
|
||||
- 'config/unicorn/development.rb'
|
||||
- 'config/unicorn/production.rb'
|
||||
- 'config/unicorn/unicorn.rb'
|
||||
- 'db/fixes/101_migrate_mod_actions.rb'
|
||||
- 'test/functional/moderator/post/disapprovals_controller_test.rb'
|
||||
- 'test/models/upload_service_test.rb'
|
||||
@ -1211,12 +1188,11 @@ Naming/ConstantName:
|
||||
Exclude:
|
||||
- 'app/models/mod_action.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Offense count: 1
|
||||
# Configuration parameters: ForbiddenDelimiters.
|
||||
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
||||
Naming/HeredocDelimiterNaming:
|
||||
Exclude:
|
||||
- 'test/unit/comment_test.rb'
|
||||
- 'test/unit/user_feedback_test.rb'
|
||||
|
||||
# Offense count: 6
|
||||
@ -1379,16 +1355,13 @@ Rails/AssertNot:
|
||||
- 'test/unit/post_test.rb'
|
||||
- 'test/unit/user_test.rb'
|
||||
|
||||
# Offense count: 16
|
||||
# Offense count: 10
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
|
||||
Rails/Blank:
|
||||
Exclude:
|
||||
- 'app/controllers/help_controller.rb'
|
||||
- 'app/logical/downloads/file.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/models/application_record.rb'
|
||||
- 'app/models/help_page.rb'
|
||||
- 'app/models/note.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/post_flag.rb'
|
||||
@ -1425,7 +1398,7 @@ Rails/DuplicateAssociation:
|
||||
Exclude:
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 61
|
||||
# Offense count: 58
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
|
||||
# Whitelist: find_by_sql, find_by_token_for
|
||||
@ -1435,7 +1408,6 @@ Rails/DynamicFindBy:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/reowner_controller.rb'
|
||||
- 'app/controllers/favorites_controller.rb'
|
||||
- 'app/controllers/help_controller.rb'
|
||||
- 'app/controllers/pool_elements_controller.rb'
|
||||
- 'app/controllers/post_set_maintainers_controller.rb'
|
||||
- 'app/controllers/wiki_pages_controller.rb'
|
||||
@ -1446,7 +1418,6 @@ Rails/DynamicFindBy:
|
||||
- 'app/logical/session_creator.rb'
|
||||
- 'app/logical/session_loader.rb'
|
||||
- 'app/logical/user_name_validator.rb'
|
||||
- 'app/models/help_page.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/post_set.rb'
|
||||
- 'app/models/tag.rb'
|
||||
@ -1535,7 +1506,7 @@ Rails/Output:
|
||||
Exclude:
|
||||
- 'app/indexes/post_version_index.rb'
|
||||
|
||||
# Offense count: 85
|
||||
# Offense count: 83
|
||||
Rails/OutputSafety:
|
||||
Exclude:
|
||||
- 'app/decorators/posts_decorator.rb'
|
||||
@ -1605,13 +1576,12 @@ Rails/Presence:
|
||||
- 'app/views/post_replacements/index.html.erb'
|
||||
- 'app/views/tickets/show.html.erb'
|
||||
|
||||
# Offense count: 13
|
||||
# Offense count: 12
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
||||
Rails/Present:
|
||||
Exclude:
|
||||
- 'app/controllers/post_sets_controller.rb'
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/views/artists/index.html.erb'
|
||||
- 'app/views/posts/index.atom.erb'
|
||||
- 'app/views/takedowns/show.html.erb'
|
||||
@ -1624,7 +1594,7 @@ Rails/RedundantForeignKey:
|
||||
Exclude:
|
||||
- 'app/models/forum_topic.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Offense count: 6
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Rails/RedundantPresenceValidationOnBelongsTo:
|
||||
Exclude:
|
||||
@ -1633,17 +1603,15 @@ Rails/RedundantPresenceValidationOnBelongsTo:
|
||||
- 'app/models/dmail_filter.rb'
|
||||
- 'app/models/mod_action.rb'
|
||||
- 'app/models/note.rb'
|
||||
- 'app/models/user_feedback.rb'
|
||||
- 'app/models/user_name_change_request.rb'
|
||||
|
||||
# Offense count: 14
|
||||
# Offense count: 11
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, Include.
|
||||
# SupportedStyles: assert_not, refute
|
||||
# Include: **/test/**/*
|
||||
Rails/RefuteMethods:
|
||||
Exclude:
|
||||
- 'test/unit/artist_test.rb'
|
||||
- 'test/unit/dmail_test.rb'
|
||||
- 'test/unit/post_sets/favorites_test.rb'
|
||||
- 'test/unit/tag_implication_test.rb'
|
||||
@ -1654,12 +1622,6 @@ Rails/SquishedSQLHeredocs:
|
||||
Exclude:
|
||||
- 'app/indexes/post_index.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Rails/StripHeredoc:
|
||||
Exclude:
|
||||
- 'test/unit/comment_test.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Configuration parameters: Include.
|
||||
# Include: spec/**/*.rb, test/**/*.rb
|
||||
@ -1710,14 +1672,13 @@ Rails/WhereExists:
|
||||
- 'test/unit/post_test.rb'
|
||||
- 'test/unit/tag_implication_test.rb'
|
||||
|
||||
# Offense count: 15
|
||||
# Offense count: 14
|
||||
# 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/logical/stats_updater.rb'
|
||||
- 'app/models/artist.rb'
|
||||
- 'app/models/ban.rb'
|
||||
- 'app/models/forum_post_vote.rb'
|
||||
@ -1763,12 +1724,11 @@ Style/BlockComments:
|
||||
- 'app/models/ticket.rb'
|
||||
- 'app/presenters/tag_set_presenter.rb'
|
||||
|
||||
# Offense count: 10
|
||||
# Offense count: 9
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: MinBranchesCount.
|
||||
Style/CaseLikeIf:
|
||||
Exclude:
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/post_query_builder.rb'
|
||||
- 'app/models/forum_post_vote.rb'
|
||||
@ -1790,38 +1750,21 @@ Style/ClassAndModuleChildren:
|
||||
- 'test/functional/admin/users_controller_test.rb'
|
||||
- 'test/test_helper.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: is_a?, kind_of?
|
||||
Style/ClassCheck:
|
||||
Exclude:
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
|
||||
# Offense count: 12
|
||||
Style/ClassVars:
|
||||
Exclude:
|
||||
- 'app/logical/redis_client.rb'
|
||||
- 'app/logical/tag_category.rb'
|
||||
|
||||
# Offense count: 18
|
||||
# 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/post.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'config/routes.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
|
||||
# SupportedStyles: backticks, percent_x, mixed
|
||||
Style/CommandLiteral:
|
||||
Exclude:
|
||||
- 'config/application.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Keywords, RequireColon.
|
||||
@ -1879,11 +1822,10 @@ Style/EmptyElse:
|
||||
- 'app/models/user.rb'
|
||||
- 'app/presenters/post_set_presenters/popular.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/EmptyLiteral:
|
||||
Exclude:
|
||||
- 'app/logical/stats_updater.rb'
|
||||
- 'app/models/tag_implication.rb'
|
||||
|
||||
# Offense count: 1
|
||||
@ -1954,7 +1896,7 @@ Style/HashLikeCase:
|
||||
- 'app/models/post.rb'
|
||||
- 'config/initializers/core_extensions.rb'
|
||||
|
||||
# Offense count: 1305
|
||||
# Offense count: 1281
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
||||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
||||
@ -1963,7 +1905,6 @@ Style/HashSyntax:
|
||||
Exclude:
|
||||
- 'Gemfile'
|
||||
- 'app/controllers/application_controller.rb'
|
||||
- 'app/controllers/artist_urls_controller.rb'
|
||||
- 'app/controllers/artists_controller.rb'
|
||||
- 'app/controllers/bans_controller.rb'
|
||||
- 'app/controllers/comments_controller.rb'
|
||||
@ -2035,7 +1976,6 @@ Style/HashSyntax:
|
||||
- 'app/models/tag_relationship.rb'
|
||||
- 'app/models/upload.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'app/models/user_feedback.rb'
|
||||
- 'app/models/user_name_change_request.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
- 'app/models/wiki_page_version.rb'
|
||||
@ -2064,7 +2004,6 @@ Style/HashSyntax:
|
||||
- 'app/views/comments/_form.html.erb'
|
||||
- 'app/views/comments/_index_by_post.html.erb'
|
||||
- 'app/views/comments/_quick_search.html.erb'
|
||||
- 'app/views/comments/_search.html.erb'
|
||||
- 'app/views/comments/partials/index/_list.html.erb'
|
||||
- 'app/views/comments/partials/show/_comment.html.erb'
|
||||
- 'app/views/dmails/_form.html.erb'
|
||||
@ -2174,7 +2113,6 @@ Style/HashSyntax:
|
||||
- 'config/initializers/secret_token.rb'
|
||||
- 'config/initializers/unicorn.rb'
|
||||
- 'config/routes.rb'
|
||||
- 'config/unicorn/production.rb'
|
||||
- 'test/factories/mod_action.rb'
|
||||
- 'test/functional/dmails_controller_test.rb'
|
||||
- 'test/functional/favorites_controller_test.rb'
|
||||
@ -2194,12 +2132,10 @@ Style/HashSyntax:
|
||||
- 'test/functional/posts_controller_test.rb'
|
||||
- 'test/functional/sessions_controller_test.rb'
|
||||
- 'test/functional/tag_implication_requests_controller_test.rb'
|
||||
- 'test/functional/user_feedbacks_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/artist_test.rb'
|
||||
- 'test/unit/comment_test.rb'
|
||||
- 'test/unit/dmail_filter_test.rb'
|
||||
- 'test/unit/dmail_test.rb'
|
||||
@ -2255,13 +2191,12 @@ Style/IfWithBooleanLiteralBranches:
|
||||
Exclude:
|
||||
- 'config/danbooru_default_config.rb'
|
||||
|
||||
# Offense count: 20
|
||||
# Offense count: 19
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: InverseMethods, InverseBlocks.
|
||||
Style/InverseMethods:
|
||||
Exclude:
|
||||
- 'app/controllers/post_sets_controller.rb'
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/logical/downloads/file.rb'
|
||||
- 'app/logical/post_sets/post.rb'
|
||||
- 'app/logical/storage_manager/match.rb'
|
||||
@ -2390,14 +2325,13 @@ Style/NegatedIf:
|
||||
- 'app/models/user_password_reset_nonce.rb'
|
||||
- 'app/views/posts/partials/show/_options.html.erb'
|
||||
|
||||
# Offense count: 7
|
||||
# Offense count: 6
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/NegatedIfElseCondition:
|
||||
Exclude:
|
||||
- 'app/controllers/comment_votes_controller.rb'
|
||||
- 'app/controllers/post_votes_controller.rb'
|
||||
- 'app/models/dmail.rb'
|
||||
- 'app/models/user_feedback.rb'
|
||||
- 'app/views/posts/show.html.erb'
|
||||
- 'app/views/tickets/show.html.erb'
|
||||
- 'app/views/uploads/new.html.erb'
|
||||
@ -2491,7 +2425,7 @@ Style/ParenthesesAroundCondition:
|
||||
- 'app/controllers/users_controller.rb'
|
||||
- 'app/models/post_flag.rb'
|
||||
|
||||
# Offense count: 86
|
||||
# Offense count: 75
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: PreferredDelimiters.
|
||||
Style/PercentLiteralDelimiters:
|
||||
@ -2512,12 +2446,10 @@ Style/PercentLiteralDelimiters:
|
||||
- 'app/models/post_replacement.rb'
|
||||
- 'app/models/upload.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'app/models/user_feedback.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/comments/_search.html.erb'
|
||||
- 'app/views/uploads/index.html.erb'
|
||||
- 'config/danbooru_default_config.rb'
|
||||
- 'config/initializers/content_security_policy.rb'
|
||||
@ -2534,7 +2466,7 @@ Style/PreferredHashMethods:
|
||||
Exclude:
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
|
||||
# Offense count: 68
|
||||
# Offense count: 67
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
|
||||
# SupportedStyles: compact, exploded
|
||||
@ -2556,7 +2488,6 @@ Style/RaiseArgs:
|
||||
- 'app/logical/bulk_update_request_importer.rb'
|
||||
- 'app/logical/downloads/file.rb'
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/logical/post_query_builder.rb'
|
||||
- 'app/logical/post_thumbnailer.rb'
|
||||
- 'app/logical/session_loader.rb'
|
||||
@ -2593,7 +2524,7 @@ Style/RedundantAssignment:
|
||||
- 'app/models/post.rb'
|
||||
- 'config/initializers/core_extensions.rb'
|
||||
|
||||
# Offense count: 10
|
||||
# Offense count: 9
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/RedundantBegin:
|
||||
Exclude:
|
||||
@ -2601,7 +2532,6 @@ Style/RedundantBegin:
|
||||
- 'app/jobs/index_update_job.rb'
|
||||
- 'app/jobs/post_video_conversion_job.rb'
|
||||
- 'app/logical/email_link_validator.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/logical/session_loader.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'config/initializers/cache_store.rb'
|
||||
@ -2667,17 +2597,16 @@ Style/RedundantRegexpCharacterClass:
|
||||
- 'app/models/post_set.rb'
|
||||
- 'app/models/tag_alias.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Offense count: 7
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/RedundantRegexpEscape:
|
||||
Exclude:
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/logical/sources/alternates/furaffinity.rb'
|
||||
- 'app/models/pool.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/tag.rb'
|
||||
|
||||
# Offense count: 80
|
||||
# Offense count: 76
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowMultipleReturnValues.
|
||||
Style/RedundantReturn:
|
||||
@ -2713,11 +2642,10 @@ Style/RedundantReturn:
|
||||
- 'app/models/tag.rb'
|
||||
- 'app/models/takedown.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'app/models/user_feedback.rb'
|
||||
- 'app/models/user_name_change_request.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
|
||||
# Offense count: 91
|
||||
# Offense count: 87
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/RedundantSelf:
|
||||
Exclude:
|
||||
@ -2747,22 +2675,19 @@ Style/RedundantSort:
|
||||
Exclude:
|
||||
- 'app/logical/set_diff.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/RedundantStringEscape:
|
||||
Exclude:
|
||||
- 'app/models/ticket.rb'
|
||||
- 'test/unit/user_test.rb'
|
||||
|
||||
# Offense count: 29
|
||||
# Offense count: 26
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
||||
# SupportedStyles: slashes, percent_r, mixed
|
||||
Style/RegexpLiteral:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/posts_helper.rb'
|
||||
- 'app/logical/d_text.rb'
|
||||
- 'app/logical/sources/alternates/furaffinity.rb'
|
||||
- 'app/logical/sources/alternates/pixiv.rb'
|
||||
- 'app/logical/tag_name_validator.rb'
|
||||
@ -2877,7 +2802,7 @@ Style/SpecialGlobalVars:
|
||||
- 'app/helpers/forum_topics_helper.rb'
|
||||
- 'app/logical/sources/alternates/pixiv.rb'
|
||||
|
||||
# Offense count: 50
|
||||
# Offense count: 49
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: Mode.
|
||||
Style/StringConcatenation:
|
||||
@ -2910,7 +2835,7 @@ Style/StringConcatenation:
|
||||
- 'test/unit/bulk_update_request_test.rb'
|
||||
- 'test/unit/post_test.rb'
|
||||
|
||||
# Offense count: 1160
|
||||
# Offense count: 1014
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
||||
# SupportedStyles: single_quotes, double_quotes
|
||||
@ -2976,7 +2901,6 @@ Style/StringLiterals:
|
||||
- 'app/logical/pbkdf2.rb'
|
||||
- 'app/logical/post_thumbnailer.rb'
|
||||
- 'app/logical/session_loader.rb'
|
||||
- 'app/logical/stats_updater.rb'
|
||||
- 'app/logical/storage_manager.rb'
|
||||
- 'app/logical/storage_manager/local.rb'
|
||||
- 'app/logical/tags_preview.rb'
|
||||
@ -2992,7 +2916,6 @@ Style/StringLiterals:
|
||||
- 'app/models/email_blacklist.rb'
|
||||
- 'app/models/forum_category.rb'
|
||||
- 'app/models/forum_topic.rb'
|
||||
- 'app/models/help_page.rb'
|
||||
- 'app/models/mod_action.rb'
|
||||
- 'app/models/pool_version.rb'
|
||||
- 'app/models/post.rb'
|
||||
@ -3046,7 +2969,6 @@ Style/StringLiterals:
|
||||
- 'app/views/posts/show.html.erb'
|
||||
- 'app/views/static/discord.html.erb'
|
||||
- 'app/views/static/home.html.erb'
|
||||
- 'app/views/stats/index.html.erb'
|
||||
- 'app/views/tag_type_versions/index.html.erb'
|
||||
- 'app/views/takedowns/_editor.html.erb'
|
||||
- 'app/views/takedowns/_search.html.erb'
|
||||
@ -3070,9 +2992,6 @@ Style/StringLiterals:
|
||||
- 'config/initializers/sidekiq.rb'
|
||||
- 'config/initializers/simple_form.rb'
|
||||
- 'config/routes.rb'
|
||||
- 'config/unicorn/development.rb'
|
||||
- 'config/unicorn/production.rb'
|
||||
- 'config/unicorn/unicorn.rb'
|
||||
- 'db/fixes/100_new_iqdb_import.rb'
|
||||
- 'db/fixes/101_migrate_mod_actions.rb'
|
||||
- 'db/fixes/102_generate_missing_post_version_fields.rb'
|
||||
@ -3124,7 +3043,6 @@ Style/StringLiterals:
|
||||
- 'test/functional/tag_alias_requests_controller_test.rb'
|
||||
- 'test/functional/tag_implication_requests_controller_test.rb'
|
||||
- 'test/functional/tags_controller_test.rb'
|
||||
- 'test/functional/user_feedbacks_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'
|
||||
@ -3133,7 +3051,6 @@ Style/StringLiterals:
|
||||
- 'test/unit/api_key_test.rb'
|
||||
- 'test/unit/apng_inspector_test.rb'
|
||||
- 'test/unit/application_record.rb'
|
||||
- 'test/unit/artist_test.rb'
|
||||
- 'test/unit/artist_url_test.rb'
|
||||
- 'test/unit/ban_test.rb'
|
||||
- 'test/unit/bulk_update_importer_importer_test.rb'
|
||||
@ -3185,7 +3102,7 @@ Style/StringLiterals:
|
||||
- 'test/unit/user_test.rb'
|
||||
- 'test/unit/wiki_page_test.rb'
|
||||
|
||||
# Offense count: 50
|
||||
# Offense count: 43
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: single_quotes, double_quotes
|
||||
@ -3214,7 +3131,7 @@ Style/StructInheritance:
|
||||
- 'app/logical/moderator/dashboard/queries/upload.rb'
|
||||
- 'app/logical/moderator/dashboard/queries/wiki_page.rb'
|
||||
|
||||
# Offense count: 120
|
||||
# Offense count: 119
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, MinSize.
|
||||
# SupportedStyles: percent, brackets
|
||||
@ -3301,13 +3218,12 @@ Style/SymbolProc:
|
||||
- 'db/fixes/100_new_iqdb_import.rb'
|
||||
- 'test/factories/post.rb'
|
||||
|
||||
# Offense count: 38
|
||||
# Offense count: 36
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyleForMultiline.
|
||||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
||||
Style/TrailingCommaInArguments:
|
||||
Exclude:
|
||||
- 'app/controllers/artist_urls_controller.rb'
|
||||
- 'app/controllers/deleted_posts_controller.rb'
|
||||
- 'app/controllers/mod_actions_controller.rb'
|
||||
- 'app/controllers/post_events_controller.rb'
|
||||
@ -3323,7 +3239,6 @@ Style/TrailingCommaInArguments:
|
||||
- 'app/models/post_set_maintainer.rb'
|
||||
- 'app/models/tag_alias.rb'
|
||||
- 'app/models/tag_implication.rb'
|
||||
- 'app/models/ticket.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
- 'app/presenters/post_set_presenters/popular.rb'
|
||||
@ -3348,7 +3263,7 @@ Style/TrailingCommaInArrayLiteral:
|
||||
- 'app/models/user.rb'
|
||||
- 'config/initializers/filter_parameter_logging.rb'
|
||||
|
||||
# Offense count: 95
|
||||
# Offense count: 92
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyleForMultiline.
|
||||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
||||
@ -3366,7 +3281,6 @@ Style/TrailingCommaInHashLiteral:
|
||||
- 'app/indexes/post_version_index.rb'
|
||||
- 'app/logical/danbooru/paginator/elasticsearch_extensions.rb'
|
||||
- 'app/logical/elastic_post_query_builder.rb'
|
||||
- 'app/logical/iqdb_proxy.rb'
|
||||
- 'app/logical/related_tag_query.rb'
|
||||
- 'app/logical/tag_relationship_request.rb'
|
||||
- 'app/logical/upload_service/replacer.rb'
|
||||
@ -3428,7 +3342,7 @@ Style/WhileUntilModifier:
|
||||
Exclude:
|
||||
- 'app/logical/user_deletion.rb'
|
||||
|
||||
# Offense count: 84
|
||||
# Offense count: 83
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
||||
# SupportedStyles: percent, brackets
|
||||
@ -3439,7 +3353,6 @@ Style/WordArray:
|
||||
- 'app/logical/storage_manager.rb'
|
||||
- 'app/logical/storage_manager/local.rb'
|
||||
- 'app/logical/upload_service/utils.rb'
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/post_replacement.rb'
|
||||
- 'app/models/post_set_maintainer.rb'
|
||||
- 'app/models/takedown.rb'
|
||||
@ -3464,7 +3377,7 @@ Style/WordArray:
|
||||
- 'test/unit/related_tag_query_test.rb'
|
||||
- 'test/unit/tag_alias_test.rb'
|
||||
|
||||
# Offense count: 21
|
||||
# Offense count: 20
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Style/ZeroLengthPredicate:
|
||||
Exclude:
|
||||
@ -3479,7 +3392,6 @@ Style/ZeroLengthPredicate:
|
||||
- 'app/models/post.rb'
|
||||
- 'app/models/post_replacement.rb'
|
||||
- 'app/models/post_set.rb'
|
||||
- 'app/models/tag.rb'
|
||||
- 'app/models/tag_alias.rb'
|
||||
- 'app/views/post_disapprovals/_counts.html.erb'
|
||||
- 'app/views/post_versions/index.html.erb'
|
||||
|
Loading…
Reference in New Issue
Block a user