From 245e3795ec731e6ef6516362b492a366a562b45a Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 11 Mar 2024 22:47:12 -0700 Subject: [PATCH] Rerun rubocop --auto-gen-config --- .rubocop_todo.yml | 740 ++-------------------------------------------- 1 file changed, 30 insertions(+), 710 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e32398240..be9e93e84 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,10 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -<<<<<<< HEAD -# on 2024-03-04 16:04:49 UTC using RuboCop version 1.61.0. -======= -# on 2024-02-13 04:01:02 UTC using RuboCop version 1.60.2. ->>>>>>> main +# on 2024-03-12 05:45:42 UTC using RuboCop version 1.61.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 @@ -18,42 +14,28 @@ Bundler/OrderedGems: Exclude: - 'Gemfile' -<<<<<<< HEAD -# Offense count: 161 +# Offense count: 180 # Configuration parameters: EnforcedStyle. # SupportedStyles: link_or_button, strict Capybara/ClickLinkOrButtonStyle: Enabled: false -# Offense count: 350 +# Offense count: 77 # This cop supports safe autocorrection (--autocorrect). -Capybara/CurrentPathExpectation: +# Configuration parameters: EnforcedStyle. +# SupportedStyles: have_no, not_to +Capybara/NegationMatcher: Exclude: - - 'spec/features/base_controller_spec.rb' - 'spec/features/cfp_ability_spec.rb' - - 'spec/features/conference_registration_spec.rb' + - 'spec/features/code_of_conduct_spec.rb' - 'spec/features/info_desk_ability_spec.rb' - - 'spec/features/organization_admin_ability_spec.rb' - 'spec/features/organizer_ability_spec.rb' - 'spec/features/proposals_spec.rb' - - 'spec/features/registration_periods_spec.rb' - 'spec/features/splashpage_spec.rb' - - 'spec/features/ticket_purchases_spec.rb' + - 'spec/features/sponsor_spec.rb' - 'spec/features/track_organizer_ability_spec.rb' - - 'spec/features/user_ability_spec.rb' - -# Offense count: 3 -======= -# Offense count: 1 ->>>>>>> main -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: have_no, not_to -Capybara/NegationMatcher: - Exclude: - - 'spec/features/code_of_conduct_spec.rb' -# Offense count: 14 +# Offense count: 10 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: DefaultSelector. Capybara/RSpec/HaveSelector: @@ -67,18 +49,12 @@ Capybara/RSpec/HaveSelector: - 'spec/features/track_organizer_ability_spec.rb' - 'spec/features/voting_spec.rb' -# Offense count: 98 +# Offense count: 101 # This cop supports safe autocorrection (--autocorrect). Capybara/SpecificFinders: Enabled: false -<<<<<<< HEAD -# Offense count: 1 -Capybara/SpecificMatcher: - Exclude: - - 'spec/features/sponsor_spec.rb' - -# Offense count: 7 +# Offense count: 8 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle, NonImplicitAssociationMethodNames. # SupportedStyles: explicit, implicit @@ -90,21 +66,7 @@ FactoryBot/AssociationStyle: - 'spec/factories/surveys.rb' - 'spec/factories/tracks.rb' -# Offense count: 12 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: Include, EnforcedStyle, ExplicitOnly. -# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb -# SupportedStyles: require_parentheses, omit_parentheses -FactoryBot/ConsistentParenthesesStyle: - Exclude: - - 'spec/controllers/proposals_controller_spec.rb' - - 'spec/features/proposals_spec.rb' - - 'spec/features/roles_spec.rb' - - 'spec/features/surveys_spec.rb' - - 'spec/models/resource_spec.rb' - - 'spec/models/ticket_spec.rb' - -# Offense count: 3 +# Offense count: 4 # Configuration parameters: Include. # Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb FactoryBot/FactoryAssociationWithStrategy: @@ -112,352 +74,6 @@ FactoryBot/FactoryAssociationWithStrategy: - 'spec/factories/booths.rb' - 'spec/factories/users.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: IndentationWidth. -Layout/AssignmentIndentation: - Exclude: - - 'app/helpers/format_helper.rb' - -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -Layout/ClosingParenthesisIndentation: - Exclude: - - 'app/controllers/conference_registrations_controller.rb' - - 'app/controllers/proposals_controller.rb' - - 'app/models/commercial.rb' - - 'spec/controllers/users/omniauth_callbacks_controller_spec.rb' - -# Offense count: 5 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowForAlignment. -Layout/CommentIndentation: - Exclude: - - 'app/controllers/admin/comments_controller.rb' - - 'app/controllers/admin/difficulty_levels_controller.rb' - - 'app/models/conference.rb' - - 'app/models/program.rb' - - 'app/models/track.rb' - -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -Layout/EmptyLineAfterGuardClause: - Exclude: - - 'app/controllers/subscriptions_controller.rb' - - 'app/models/program.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Layout/EmptyLineAfterMagicComment: - Exclude: - - 'spec/models/conference_spec.rb' - -# Offense count: 100 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, no_empty_lines -Layout/EmptyLinesAroundBlockBody: - Enabled: false - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Layout/EmptyLinesAroundExceptionHandlingKeywords: - Exclude: - - 'app/models/payment.rb' - -# Offense count: 6 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. -Layout/ExtraSpacing: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/views/admin/events/_all_with_comments.xlsx.axlsx' - - 'db/migrate/20140623101032_create_ahoy_events.rb' - - 'db/migrate/20140701123203_add_events_per_week_to_conference.rb' - - 'db/migrate/20140719160903_create_delayed_jobs.rb' - - 'spec/models/conference_spec.rb' - -# Offense count: 43 -# 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: - Enabled: false - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_brackets -Layout/FirstArrayElementIndentation: - Exclude: - - 'app/models/conference.rb' - -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_braces -Layout/FirstHashElementIndentation: - Exclude: - - 'app/models/user.rb' - - 'config/routes.rb' - - 'db/migrate/20140701123203_add_events_per_week_to_conference.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: normal, indented_internal_methods -Layout/IndentationConsistency: - Exclude: - - 'app/controllers/users_controller.rb' - - 'app/models/event.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: IndentationWidth, EnforcedStyle. -# SupportedStyles: spaces, tabs -Layout/IndentationStyle: - Exclude: - - 'app/controllers/admin/resources_controller.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: Width, AllowedPatterns. -Layout/IndentationWidth: - Exclude: - - 'app/controllers/users_controller.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. -Layout/LeadingCommentSpace: - Exclude: - - 'app/models/comment.rb' - -# Offense count: 18 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: space, no_space -Layout/LineContinuationSpacing: - Exclude: - - 'app/controllers/admin/booths_controller.rb' - - 'app/controllers/admin/cfps_controller.rb' - - 'app/controllers/admin/commercials_controller.rb' - - 'app/controllers/admin/difficulty_levels_controller.rb' - - 'app/controllers/admin/event_types_controller.rb' - - 'app/controllers/admin/registrations_controller.rb' - - 'app/controllers/admin/splashpages_controller.rb' - - 'app/controllers/admin/venue_commercials_controller.rb' - - 'app/controllers/admin/venues_controller.rb' - - 'app/controllers/conference_registrations_controller.rb' - - 'app/models/cfp.rb' - -# Offense count: 32 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented -Layout/LineEndStringConcatenationIndentation: - Enabled: false - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineArrayBraceLayout: - Exclude: - - 'app/controllers/conference_registrations_controller.rb' - -# Offense count: 5 -# This cop supports safe autocorrection (--autocorrect). -Layout/MultilineBlockLayout: - Exclude: - - 'app/serializers/conference_serializer.rb' - -# Offense count: 7 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineHashBraceLayout: - Exclude: - - 'app/serializers/conference_serializer.rb' - - 'config/routes.rb' - - 'spec/models/event_spec.rb' - -# Offense count: 33 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineMethodCallBraceLayout: - Enabled: false - -# Offense count: 47 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented, indented_relative_to_receiver -Layout/MultilineMethodCallIndentation: - Enabled: false - -# Offense count: 18 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented -Layout/MultilineOperationIndentation: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/models/conference.rb' - - 'app/models/event.rb' - - 'db/migrate/20140701123203_add_events_per_week_to_conference.rb' - -# Offense count: 64 -# This cop supports safe autocorrection (--autocorrect). -Layout/SpaceAfterComma: - Exclude: - - 'app/views/admin/booths/_all_booths.xlsx.axlsx' - - 'app/views/admin/booths/_confirmed_booths.xlsx.axlsx' - - 'app/views/admin/events/_all_events.xlsx.axlsx' - - 'app/views/admin/events/_all_with_comments.xlsx.axlsx' - - 'app/views/admin/events/_confirmed_events.xlsx.axlsx' - - 'app/views/admin/tracks/_all_tracks.xlsx.axlsx' - - 'app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx' - - 'lib/tasks/data_demo.rake' - -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: space, no_space -Layout/SpaceAroundEqualsInParameterDefault: - Exclude: - - 'app/helpers/format_helper.rb' - - 'app/models/event.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Layout/SpaceAroundKeyword: - Exclude: - - 'config/initializers/feature.rb' - -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -Layout/SpaceAroundMethodCallOperator: - Exclude: - - 'spec/features/cfp_ability_spec.rb' - - 'spec/features/organization_admin_ability_spec.rb' - - 'spec/features/organizer_ability_spec.rb' - - 'spec/models/program_spec.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals. -# SupportedStylesForExponentOperator: space, no_space -# SupportedStylesForRationalLiterals: space, no_space -Layout/SpaceAroundOperators: - Exclude: - - 'app/views/admin/events/_all_with_comments.xlsx.axlsx' - - 'lib/tasks/data.rake' - -# Offense count: 139 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. -# SupportedStyles: space, no_space -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceBeforeBlockBraces: - Enabled: false - -# Offense count: 7 -# This cop supports safe autocorrection (--autocorrect). -Layout/SpaceBeforeComma: - Exclude: - - 'app/views/admin/booths/_all_booths.xlsx.axlsx' - - 'app/views/admin/booths/_confirmed_booths.xlsx.axlsx' - - 'app/views/admin/events/_all_events.xlsx.axlsx' - - 'app/views/admin/events/_confirmed_events.xlsx.axlsx' - - 'app/views/admin/tracks/_all_tracks.xlsx.axlsx' - - 'app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx' - - 'lib/tasks/data_demo.rake' - -# Offense count: 5 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowForAlignment. -Layout/SpaceBeforeFirstArg: - Exclude: - - 'app/controllers/admin/booths_controller.rb' - -# Offense count: 8 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. -# SupportedStyles: space, no_space, compact -# SupportedStylesForEmptyBrackets: space, no_space -Layout/SpaceInsideArrayLiteralBrackets: - Exclude: - - 'config/initializers/devise.rb' - - 'config/routes.rb' - -# Offense count: 44 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. -# SupportedStyles: space, no_space -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceInsideBlockBraces: - Exclude: - - 'app/controllers/admin/comments_controller.rb' - - 'app/controllers/admin/questions_controller.rb' - - 'app/helpers/application_helper.rb' - - 'app/models/program.rb' - - 'app/models/ticket.rb' - - 'app/models/user.rb' - - 'lib/tasks/events_registrations.rake' - - 'spec/ability/ability_spec.rb' - - 'spec/controllers/admin/event_schedules_controller_spec.rb' - - 'spec/controllers/admin/schedules_controller_spec.rb' - - 'spec/features/splashpage_spec.rb' - - 'spec/models/user_spec.rb' - -# Offense count: 37 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. -# SupportedStyles: space, no_space, compact -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceInsideHashLiteralBraces: - Exclude: - - 'app/controllers/api/v1/speakers_controller.rb' - - 'app/models/conference.rb' - - 'app/models/event_type.rb' - - 'app/models/user.rb' - - 'app/views/admin/booths/_all_booths.xlsx.axlsx' - - 'app/views/admin/booths/_confirmed_booths.xlsx.axlsx' - - 'app/views/admin/events/_all_events.xlsx.axlsx' - - 'app/views/admin/events/_confirmed_events.xlsx.axlsx' - - 'app/views/admin/events/events.xlsx.axlsx' - - 'app/views/admin/tracks/_all_tracks.xlsx.axlsx' - - 'app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx' - - 'config/routes.rb' - - 'spec/models/event_spec.rb' - - 'spec/models/payment_spec.rb' - -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: space, compact, no_space -Layout/SpaceInsideParens: - Exclude: - - 'app/views/admin/registrations/index.xlsx.axlsx' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Layout/SpaceInsidePercentLiteralDelimiters: - Exclude: - - 'Gemfile' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: final_newline, final_blank_line -Layout/TrailingEmptyLines: - Exclude: - - 'lib/tasks/event_attatchments.rake' - - 'lib/tasks/roles.rake' - -======= ->>>>>>> main # Offense count: 13 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowedMethods, AllowedPatterns. @@ -471,7 +87,7 @@ Lint/AmbiguousBlockAssociation: - 'spec/controllers/schedules_controller_spec.rb' - 'spec/models/user_spec.rb' -# Offense count: 5 +# Offense count: 3 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. Lint/DuplicateBranch: Exclude: @@ -484,65 +100,28 @@ Lint/IneffectiveAccessModifier: - 'app/models/commercial.rb' - 'app/models/conference.rb' -<<<<<<< HEAD -# Offense count: 4 -# This cop supports unsafe autocorrection (--autocorrect-all). -Lint/NonAtomicFileOperation: - Exclude: - - 'spec/support/save_feature_failures.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Lint/RedundantCopDisableDirective: - Exclude: - - 'spec/support/save_feature_failures.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments. -Lint/UnusedBlockArgument: - Exclude: - - 'lib/tasks/user.rake' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. -Lint/UnusedMethodArgument: - Exclude: - - 'config/initializers/fuckups.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Lint/UriRegexp: - Exclude: - - 'app/models/commercial.rb' - - 'app/models/contact.rb' - -# Offense count: 127 -======= -# Offense count: 111 ->>>>>>> main +# Offense count: 110 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 72 -# Offense count: 19 +# Offense count: 14 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode. # AllowedMethods: refine Metrics/BlockLength: - Max: 227 + Max: 99 # Offense count: 13 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 270 -# Offense count: 26 +# Offense count: 28 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 15 -# Offense count: 127 +# Offense count: 126 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 55 @@ -550,9 +129,9 @@ Metrics/MethodLength: # Offense count: 4 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: - Max: 168 + Max: 158 -# Offense count: 25 +# Offense count: 27 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/PerceivedComplexity: Max: 17 @@ -659,7 +238,7 @@ RSpec/Capybara/FeatureMethods: - 'spec/features/user_spec.rb' - 'spec/features/voting_spec.rb' -# Offense count: 338 +# Offense count: 339 # Configuration parameters: Prefixes, AllowedPatterns. # Prefixes: when, with, without RSpec/ContextWording: @@ -672,7 +251,7 @@ RSpec/ContextWording: RSpec/DescribedClass: Enabled: false -# Offense count: 248 +# Offense count: 251 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 222 @@ -726,51 +305,8 @@ RSpec/IdenticalEqualityAssertion: Exclude: - 'spec/controllers/admin/conferences_controller_spec.rb' -<<<<<<< HEAD -# Offense count: 140 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: is_expected, should -RSpec/ImplicitExpect: - Exclude: - - 'spec/ability/ability_spec.rb' - - 'spec/models/commercial_spec.rb' - - 'spec/models/conference_spec.rb' - - 'spec/models/event_schedule_spec.rb' - - 'spec/models/event_type_spec.rb' - - 'spec/models/organization_spec.rb' - - 'spec/models/registration_period_spec.rb' - - 'spec/models/room_spec.rb' - - 'spec/models/schedule_spec.rb' - - 'spec/models/sponsor_spec.rb' - - 'spec/models/sponsorship_level_spec.rb' - - 'spec/models/ticket_purchase_spec.rb' - - 'spec/models/ticket_spec.rb' - - 'spec/models/user_spec.rb' - -# Offense count: 39 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit -RSpec/ImplicitSubject: - Exclude: - - 'spec/ability/ability_spec.rb' - - 'spec/models/booth_spec.rb' - - 'spec/models/conference_spec.rb' - - 'spec/models/event_type_spec.rb' - - 'spec/models/organization_spec.rb' - - 'spec/models/registration_period_spec.rb' - - 'spec/models/sponsor_spec.rb' - - 'spec/models/sponsorship_level_spec.rb' - - 'spec/models/ticket_purchase_spec.rb' - - 'spec/models/ticket_spec.rb' - -# Offense count: 19 -# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns. -======= # Offense count: 53 -# Configuration parameters: Max. ->>>>>>> main +# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns. RSpec/IndexedLet: Exclude: - 'spec/controllers/admin/reports_controller_spec.rb' @@ -830,11 +366,11 @@ RSpec/MultipleDescribes: Exclude: - 'spec/models/conference_spec.rb' -# Offense count: 298 +# Offense count: 300 RSpec/MultipleExpectations: Max: 97 -# Offense count: 272 +# Offense count: 274 # Configuration parameters: AllowSubject. RSpec/MultipleMemoizedHelpers: Max: 32 @@ -969,14 +505,6 @@ Security/Open: Exclude: - 'app/pdfs/ticket_pdf.rb' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: separated, grouped -Style/AccessorGrouping: - Exclude: - - 'app/models/payment.rb' - # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). Style/ArrayIntersect: @@ -991,99 +519,12 @@ Style/CaseLikeIf: Exclude: - 'app/views/admin/events/events.xlsx.axlsx' -<<<<<<< HEAD -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: is_a?, kind_of? -Style/ClassCheck: - Exclude: - - 'app/models/email_settings.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Style/ColonMethodCall: - Exclude: - - 'app/models/commercial.rb' - - 'app/models/contact.rb' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/CombinableLoops: - Exclude: - - 'db/migrate/20140820093735_migrating_supporter_registrations_to_ticket_users.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: Keywords, RequireColon. -# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE -Style/CommentAnnotation: - Exclude: - - 'spec/controllers/admin/versions_controller_spec.rb' - -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. -# SupportedStyles: assign_to_condition, assign_inside_condition -Style/ConditionalAssignment: - Exclude: - - 'app/helpers/format_helper.rb' - - 'db/migrate/20140610165551_migrate_data_person_to_user.rb' - - 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb' - -# Offense count: 518 -======= -# Offense count: 103 ->>>>>>> main +# Offense count: 107 # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false -<<<<<<< HEAD -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Style/EmptyCaseCondition: - Exclude: - - 'app/helpers/format_helper.rb' - - 'app/helpers/versions_helper.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Style/EmptyLiteral: - Exclude: - - 'spec/models/conference_spec.rb' - -# Offense count: 7 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AutoCorrect, EnforcedStyle. -# SupportedStyles: compact, expanded -Style/EmptyMethod: - Exclude: - - 'app/controllers/admin/lodgings_controller.rb' - - 'app/controllers/users_controller.rb' - - 'db/migrate/20121223115125_create_tracks_table.rb' - - 'db/migrate/20121223115135_create_events_table.rb' - - 'db/migrate/20130103134212_create_registrations_table.rb' - - 'db/migrate/20130206192339_rename_attending_social_events_with_partner.rb' - - 'db/migrate/20130216122155_set_registration_defaults_to_false.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Style/Encoding: - Exclude: - - 'app/uploaders/picture_uploader.rb' - - 'spec/models/conference_spec.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Style/ExpandPathArguments: - Exclude: - - 'spec/spec_helper.rb' - -# Offense count: 36 -======= -# Offense count: 40 ->>>>>>> main +# Offense count: 43 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never @@ -1102,27 +543,6 @@ Style/GlobalStdStream: Style/GuardClause: Enabled: false -<<<<<<< HEAD -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: braces, no_braces -Style/HashAsLastArrayItem: - Exclude: - - 'app/controllers/admin/schedules_controller.rb' - - 'app/models/user.rb' - -# Offense count: 5 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: AllowSplatArgument. -Style/HashConversion: - Exclude: - - 'app/helpers/chart_helper.rb' - - 'app/models/conference.rb' - - 'spec/factories/event_users.rb' - -======= ->>>>>>> main # Offense count: 1 # Configuration parameters: MinBranchesCount. Style/HashLikeCase: @@ -1143,7 +563,7 @@ Style/IdenticalConditionalBranches: - 'app/controllers/admin/booths_controller.rb' - 'app/controllers/admin/events_controller.rb' -# Offense count: 32 +# Offense count: 34 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Enabled: false @@ -1219,55 +639,8 @@ Style/OptionalBooleanParameter: - 'app/helpers/format_helper.rb' - 'app/models/event.rb' -<<<<<<< HEAD -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Style/OrAssignment: - Exclude: - - 'app/controllers/schedules_controller.rb' - -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. -Style/ParenthesesAroundCondition: - Exclude: - - 'app/controllers/admin/base_controller.rb' - - 'app/controllers/application_controller.rb' - - 'app/helpers/format_helper.rb' - -# Offense count: 17 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: PreferredDelimiters. -Style/PercentLiteralDelimiters: - Exclude: - - 'Gemfile' - - 'app/controllers/admin/users_controller.rb' - - 'app/models/cfp.rb' - - 'app/models/comment.rb' - - 'app/models/commercial.rb' - - 'app/models/conference.rb' - - 'app/models/contact.rb' - - 'app/models/registration.rb' - - 'app/models/subscription.rb' - - 'app/models/track.rb' - - 'app/uploaders/picture_uploader.rb' - - 'config/deploy.rb' - - 'spec/models/program_spec.rb' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: short, verbose -Style/PreferredHashMethods: - Exclude: - - 'lib/tasks/migrate_config.rake' - -# Offense count: 6 -# This cop supports unsafe autocorrection (--autocorrect-all). -======= # Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). ->>>>>>> main +# This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: AllowedCompactTypes. # SupportedStyles: compact, exploded Style/RaiseArgs: @@ -1287,38 +660,6 @@ Style/RedundantFetchBlock: Exclude: - 'config/puma.rb' -<<<<<<< HEAD -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/RedundantFilterChain: - Exclude: - - 'app/models/program.rb' - -# Offense count: 12 -# This cop supports safe autocorrection (--autocorrect). -Style/RedundantParentheses: - Exclude: - - 'app/controllers/admin/base_controller.rb' - - 'app/controllers/application_controller.rb' - - 'app/helpers/application_helper.rb' - - 'app/helpers/format_helper.rb' - - 'app/models/admin_ability.rb' - - 'app/models/conference.rb' - - 'app/models/program.rb' - - 'app/models/venue.rb' - - 'lib/tasks/version.rake' - -# Offense count: 3 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowMultipleReturnValues. -Style/RedundantReturn: - Exclude: - - 'app/controllers/admin/booths_controller.rb' - - 'app/controllers/admin/events_controller.rb' - - 'app/controllers/admin/organizations_controller.rb' - -======= ->>>>>>> main # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Style/RedundantStringEscape: @@ -1344,28 +685,7 @@ Style/SymbolProc: - 'spec/controllers/admin/conferences_controller_spec.rb' - 'spec/support/flash.rb' -<<<<<<< HEAD -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, AllowSafeAssignment. -# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex -Style/TernaryParentheses: - Exclude: - - 'app/helpers/format_helper.rb' - -# Offense count: 21 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInHashLiteral: - Exclude: - - 'db/migrate/20140701123203_add_events_per_week_to_conference.rb' - - 'spec/models/conference_spec.rb' - -# Offense count: 4 -======= # Offense count: 1 ->>>>>>> main # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: WordRegex. # SupportedStyles: percent, brackets @@ -1373,7 +693,7 @@ Style/WordArray: EnforcedStyle: percent MinSize: 5 -# Offense count: 260 +# Offense count: 269 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https