mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update rubocop-rspec to version 2.23.0
This commit is contained in:
parent
b39ad619c5
commit
74c2551ed8
3 changed files with 115 additions and 43 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2023-05-08 16:19:23 UTC using RuboCop version 1.50.2.
|
||||
# on 2024-03-04 16:04:49 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
|
||||
|
|
@ -14,6 +14,12 @@ Bundler/OrderedGems:
|
|||
Exclude:
|
||||
- 'Gemfile'
|
||||
|
||||
# Offense count: 161
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: link_or_button, strict
|
||||
Capybara/ClickLinkOrButtonStyle:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 350
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Capybara/CurrentPathExpectation:
|
||||
|
|
@ -31,13 +37,27 @@ Capybara/CurrentPathExpectation:
|
|||
- 'spec/features/track_organizer_ability_spec.rb'
|
||||
- 'spec/features/user_ability_spec.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Offense count: 3
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: have_no, not_to
|
||||
Capybara/NegationMatcher:
|
||||
Exclude:
|
||||
- 'spec/features/versions_spec.rb'
|
||||
- 'spec/features/code_of_conduct_spec.rb'
|
||||
|
||||
# Offense count: 14
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: DefaultSelector.
|
||||
Capybara/RSpec/HaveSelector:
|
||||
Exclude:
|
||||
- 'spec/features/cfp_ability_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/sponsor_spec.rb'
|
||||
- 'spec/features/track_organizer_ability_spec.rb'
|
||||
- 'spec/features/voting_spec.rb'
|
||||
|
||||
# Offense count: 82
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
|
|
@ -49,6 +69,40 @@ Capybara/SpecificMatcher:
|
|||
Exclude:
|
||||
- 'spec/features/sponsor_spec.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: EnforcedStyle, NonImplicitAssociationMethodNames.
|
||||
# SupportedStyles: explicit, implicit
|
||||
FactoryBot/AssociationStyle:
|
||||
Exclude:
|
||||
- 'spec/factories/comments.rb'
|
||||
- 'spec/factories/commercials.rb'
|
||||
- 'spec/factories/conferences.rb'
|
||||
- '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
|
||||
# Configuration parameters: Include.
|
||||
# Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
|
||||
FactoryBot/FactoryAssociationWithStrategy:
|
||||
Exclude:
|
||||
- 'spec/factories/booths.rb'
|
||||
- 'spec/factories/users.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: IndentationWidth.
|
||||
|
|
@ -283,8 +337,9 @@ Layout/SpaceAroundMethodCallOperator:
|
|||
|
||||
# Offense count: 2
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
||||
# 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'
|
||||
|
|
@ -393,6 +448,7 @@ Layout/TrailingEmptyLines:
|
|||
- 'lib/tasks/roles.rake'
|
||||
|
||||
# Offense count: 13
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
||||
Lint/AmbiguousBlockAssociation:
|
||||
Exclude:
|
||||
|
|
@ -456,14 +512,14 @@ Lint/RedundantCopDisableDirective:
|
|||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
||||
# Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
||||
Lint/UnusedBlockArgument:
|
||||
Exclude:
|
||||
- 'lib/tasks/user.rake'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
||||
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
||||
Lint/UnusedMethodArgument:
|
||||
Exclude:
|
||||
- 'config/initializers/fuckups.rb'
|
||||
|
|
@ -746,19 +802,6 @@ RSpec/ExpectChange:
|
|||
- 'spec/models/event_spec.rb'
|
||||
- 'spec/models/user_spec.rb'
|
||||
|
||||
# Offense count: 12
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: require_parentheses, omit_parentheses
|
||||
RSpec/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: 9
|
||||
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
||||
# Include: **/*_spec*rb*, **/spec/**/*
|
||||
|
|
@ -825,7 +868,7 @@ RSpec/ImplicitSubject:
|
|||
- 'spec/models/ticket_spec.rb'
|
||||
|
||||
# Offense count: 19
|
||||
# Configuration parameters: Max.
|
||||
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
|
||||
RSpec/IndexedLet:
|
||||
Exclude:
|
||||
- 'spec/controllers/admin/reports_controller_spec.rb'
|
||||
|
|
@ -962,6 +1005,12 @@ RSpec/Rails/InferredSpecType:
|
|||
- 'spec/helpers/users_helper_spec.rb'
|
||||
- 'spec/routing/routing_spec.rb'
|
||||
|
||||
# Offense count: 12
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
RSpec/ReceiveMessages:
|
||||
Exclude:
|
||||
- 'spec/models/track_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
RSpec/RepeatedDescription:
|
||||
Exclude:
|
||||
|
|
@ -1417,6 +1466,14 @@ 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:
|
||||
|
|
@ -1447,6 +1504,7 @@ Style/ColonMethodCall:
|
|||
- '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'
|
||||
|
|
@ -1489,7 +1547,7 @@ Style/EmptyLiteral:
|
|||
|
||||
# Offense count: 7
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
||||
# SupportedStyles: compact, expanded
|
||||
Style/EmptyMethod:
|
||||
Exclude:
|
||||
|
|
@ -1543,7 +1601,7 @@ Style/HashAsLastArrayItem:
|
|||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 5
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: AllowSplatArgument.
|
||||
Style/HashConversion:
|
||||
Exclude:
|
||||
|
|
@ -1743,7 +1801,7 @@ Style/PreferredHashMethods:
|
|||
- 'lib/tasks/migrate_config.rake'
|
||||
|
||||
# Offense count: 6
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: AllowedCompactTypes.
|
||||
# SupportedStyles: compact, exploded
|
||||
Style/RaiseArgs:
|
||||
|
|
@ -1784,17 +1842,24 @@ Style/RedundantFetchBlock:
|
|||
- 'config/puma.rb'
|
||||
|
||||
# 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'
|
||||
|
||||
# Offense count: 6
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
Style/RedundantRegexpEscape:
|
||||
Exclude:
|
||||
- 'spec/models/room_spec.rb'
|
||||
- 'spec/models/user_spec.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).
|
||||
|
|
@ -1919,7 +1984,7 @@ Style/TrailingCommaInHashLiteral:
|
|||
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
||||
- 'spec/models/conference_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Offense count: 4
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: WordRegex.
|
||||
# SupportedStyles: percent, brackets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue