mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update rubocop-rspec to version 2.4.0
This commit is contained in:
parent
9e7310c335
commit
8b9e4d1288
5 changed files with 456 additions and 723 deletions
|
|
@ -1,34 +1,26 @@
|
|||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2019-10-16 20:30:53 -0700 using RuboCop version 0.75.1.
|
||||
# on 2021-08-13 12:49:18 UTC using RuboCop version 1.19.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: 351
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Capybara/CurrentPathExpectation:
|
||||
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
||||
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
||||
Bundler/OrderedGems:
|
||||
Exclude:
|
||||
- 'spec/features/base_controller_spec.rb'
|
||||
- 'spec/features/cfp_ability_spec.rb'
|
||||
- 'spec/features/commercials_spec.rb'
|
||||
- 'spec/features/conference_registration_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/track_organizer_ability_spec.rb'
|
||||
- 'spec/features/user_ability_spec.rb'
|
||||
- 'Gemfile'
|
||||
|
||||
# Offense count: 161
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnabledMethods.
|
||||
Capybara/FeatureMethods:
|
||||
Enabled: false
|
||||
# Configuration parameters: IndentationWidth.
|
||||
Layout/AssignmentIndentation:
|
||||
Exclude:
|
||||
- 'app/helpers/format_helper.rb'
|
||||
- 'config/environments/development.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
|
|
@ -57,13 +49,20 @@ Layout/EmptyComment:
|
|||
Exclude:
|
||||
- 'config/initializers/formtastic.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLineAfterGuardClause:
|
||||
Exclude:
|
||||
- 'app/controllers/subscriptions_controller.rb'
|
||||
- 'app/models/program.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Layout/EmptyLineAfterMagicComment:
|
||||
Exclude:
|
||||
- 'spec/models/conference_spec.rb'
|
||||
|
||||
# Offense count: 118
|
||||
# Offense count: 113
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: empty_lines, no_empty_lines
|
||||
|
|
@ -76,7 +75,7 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|||
Exclude:
|
||||
- 'app/models/payment.rb'
|
||||
|
||||
# Offense count: 14
|
||||
# Offense count: 13
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
||||
Layout/ExtraSpacing:
|
||||
|
|
@ -87,32 +86,23 @@ Layout/ExtraSpacing:
|
|||
- 'bin/rails'
|
||||
- 'config.ru'
|
||||
- 'config/environments/test.rb'
|
||||
- 'config/initializers/airbrake.rb'
|
||||
- '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: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: IndentationWidth.
|
||||
Layout/IndentAssignment:
|
||||
Exclude:
|
||||
- 'app/helpers/format_helper.rb'
|
||||
- 'config/environments/development.rb'
|
||||
|
||||
# Offense count: 43
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
||||
Layout/IndentFirstArgument:
|
||||
Layout/FirstArgumentIndentation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
||||
Layout/IndentFirstArrayElement:
|
||||
Layout/FirstArrayElementIndentation:
|
||||
Exclude:
|
||||
- 'app/models/conference.rb'
|
||||
|
||||
|
|
@ -120,7 +110,7 @@ Layout/IndentFirstArrayElement:
|
|||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||
Layout/IndentFirstHashElement:
|
||||
Layout/FirstHashElementIndentation:
|
||||
Exclude:
|
||||
- 'app/models/user.rb'
|
||||
- 'config/routes.rb'
|
||||
|
|
@ -135,6 +125,14 @@ Layout/IndentationConsistency:
|
|||
- 'app/controllers/users_controller.rb'
|
||||
- 'app/models/event.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: IndentationWidth, EnforcedStyle.
|
||||
# SupportedStyles: spaces, tabs
|
||||
Layout/IndentationStyle:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/resources_controller.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Width, IgnoredPatterns.
|
||||
|
|
@ -144,12 +142,19 @@ Layout/IndentationWidth:
|
|||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowDoxygenCommentStyle.
|
||||
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
||||
Layout/LeadingCommentSpace:
|
||||
Exclude:
|
||||
- 'Guardfile'
|
||||
- 'app/models/comment.rb'
|
||||
|
||||
# Offense count: 32
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||
# SupportedStyles: aligned, indented
|
||||
Layout/LineEndStringConcatenationIndentation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
@ -229,15 +234,24 @@ Layout/SpaceAroundKeyword:
|
|||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment.
|
||||
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: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
||||
# SupportedStylesForExponentOperator: space, no_space
|
||||
Layout/SpaceAroundOperators:
|
||||
Exclude:
|
||||
- 'app/views/admin/events/_all_with_comments.xlsx.axlsx'
|
||||
- 'config/environments/test.rb'
|
||||
- 'config/initializers/airbrake.rb'
|
||||
- 'lib/tasks/data.rake'
|
||||
|
||||
# Offense count: 138
|
||||
# Offense count: 139
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
||||
# SupportedStyles: space, no_space
|
||||
|
|
@ -257,6 +271,13 @@ Layout/SpaceBeforeComma:
|
|||
- 'app/views/admin/tracks/_confirmed_tracks.xlsx.axlsx'
|
||||
- 'lib/tasks/data_demo.rake'
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowForAlignment.
|
||||
Layout/SpaceBeforeFirstArg:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/booths_controller.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Layout/SpaceBeforeSemicolon:
|
||||
|
|
@ -329,32 +350,17 @@ Layout/SpaceInsidePercentLiteralDelimiters:
|
|||
Exclude:
|
||||
- 'Gemfile'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: space, no_space
|
||||
Layout/SpaceInsideStringInterpolation:
|
||||
Exclude:
|
||||
- 'config/initializers/active_record_log_subscriber.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: IndentationWidth.
|
||||
Layout/Tab:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/resources_controller.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: final_newline, final_blank_line
|
||||
Layout/TrailingBlankLines:
|
||||
Layout/TrailingEmptyLines:
|
||||
Exclude:
|
||||
- 'app/views/admin/registrations/index.xlsx.axlsx'
|
||||
- 'lib/tasks/event_attatchments.rake'
|
||||
- 'lib/tasks/roles.rake'
|
||||
|
||||
# Offense count: 13
|
||||
# Configuration parameters: IgnoredMethods.
|
||||
Lint/AmbiguousBlockAssociation:
|
||||
Exclude:
|
||||
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
||||
|
|
@ -371,17 +377,31 @@ Lint/AssignmentInCondition:
|
|||
Exclude:
|
||||
- 'bin/spring'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: AllowedMethods.
|
||||
# AllowedMethods: enums
|
||||
Lint/ConstantDefinitionInBlock:
|
||||
Exclude:
|
||||
- 'lib/tasks/data.rake'
|
||||
|
||||
# Offense count: 5
|
||||
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
||||
Lint/DuplicateBranch:
|
||||
Exclude:
|
||||
- 'app/helpers/format_helper.rb'
|
||||
- 'app/uploaders/picture_uploader.rb'
|
||||
|
||||
# Offense count: 2
|
||||
Lint/DuplicatedKey:
|
||||
Lint/DuplicateHashKey:
|
||||
Exclude:
|
||||
- 'db/migrate/20140801164901_move_conference_media_to_commercial.rb'
|
||||
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: AllowComments.
|
||||
Lint/HandleExceptions:
|
||||
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
||||
Lint/EmptyBlock:
|
||||
Exclude:
|
||||
- 'bin/rspec'
|
||||
- 'spec/features/user_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
Lint/IneffectiveAccessModifier:
|
||||
|
|
@ -389,6 +409,18 @@ Lint/IneffectiveAccessModifier:
|
|||
- 'app/models/commercial.rb'
|
||||
- 'app/models/conference.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Lint/NonDeterministicRequireOrder:
|
||||
Exclude:
|
||||
- 'spec/spec_helper.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Lint/RedundantCopDisableDirective:
|
||||
Exclude:
|
||||
- 'spec/support/save_feature_failures.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Lint/ScriptPermission:
|
||||
|
|
@ -397,10 +429,10 @@ Lint/ScriptPermission:
|
|||
- 'Rakefile'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Lint/SendWithMixinArgument:
|
||||
# Configuration parameters: AllowComments, AllowNil.
|
||||
Lint/SuppressedException:
|
||||
Exclude:
|
||||
- 'config/initializers/active_record_log_subscriber.rb'
|
||||
- 'bin/rspec'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
|
|
@ -411,18 +443,26 @@ Lint/UnusedBlockArgument:
|
|||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
||||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
||||
Lint/UnusedMethodArgument:
|
||||
Exclude:
|
||||
- 'config/initializers/fuckups.rb'
|
||||
|
||||
# Offense count: 139
|
||||
Metrics/AbcSize:
|
||||
Max: 70
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Lint/UriRegexp:
|
||||
Exclude:
|
||||
- 'app/models/commercial.rb'
|
||||
- 'app/models/contact.rb'
|
||||
|
||||
# Offense count: 314
|
||||
# Configuration parameters: CountComments, ExcludedMethods.
|
||||
# ExcludedMethods: refine
|
||||
# Offense count: 128
|
||||
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
||||
Metrics/AbcSize:
|
||||
Max: 71
|
||||
|
||||
# Offense count: 315
|
||||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
||||
# IgnoredMethods: refine
|
||||
Metrics/BlockLength:
|
||||
Max: 1344
|
||||
|
||||
|
|
@ -431,28 +471,30 @@ Metrics/BlockLength:
|
|||
Metrics/BlockNesting:
|
||||
Max: 4
|
||||
|
||||
# Offense count: 13
|
||||
# Configuration parameters: CountComments.
|
||||
# Offense count: 14
|
||||
# Configuration parameters: CountComments, CountAsOne.
|
||||
Metrics/ClassLength:
|
||||
Max: 652
|
||||
|
||||
# Offense count: 33
|
||||
# Offense count: 28
|
||||
# Configuration parameters: IgnoredMethods.
|
||||
Metrics/CyclomaticComplexity:
|
||||
Max: 14
|
||||
Max: 16
|
||||
|
||||
# Offense count: 147
|
||||
# Configuration parameters: CountComments, ExcludedMethods.
|
||||
# Offense count: 150
|
||||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
||||
Metrics/MethodLength:
|
||||
Max: 56
|
||||
|
||||
# Offense count: 5
|
||||
# Configuration parameters: CountComments.
|
||||
# Configuration parameters: CountComments, CountAsOne.
|
||||
Metrics/ModuleLength:
|
||||
Max: 173
|
||||
|
||||
# Offense count: 22
|
||||
# Offense count: 25
|
||||
# Configuration parameters: IgnoredMethods.
|
||||
Metrics/PerceivedComplexity:
|
||||
Max: 16
|
||||
Max: 19
|
||||
|
||||
# Offense count: 13
|
||||
Naming/AccessorMethodName:
|
||||
|
|
@ -461,22 +503,37 @@ Naming/AccessorMethodName:
|
|||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: Blacklist.
|
||||
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
||||
# Configuration parameters: ForbiddenDelimiters.
|
||||
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
||||
Naming/HeredocDelimiterNaming:
|
||||
Exclude:
|
||||
- 'spec/factories/users.rb'
|
||||
- 'spec/models/user_spec.rb'
|
||||
|
||||
# Offense count: 10
|
||||
# Configuration parameters: CheckIdentifiers, CheckConstants, CheckVariables, CheckStrings, CheckSymbols, CheckComments, CheckFilepaths, FlaggedTerms.
|
||||
Naming/InclusiveLanguage:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/contacts_controller.rb'
|
||||
- 'app/controllers/users_controller.rb'
|
||||
- 'app/uploaders/picture_uploader.rb'
|
||||
- 'config/application.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
||||
Naming/MethodParameterName:
|
||||
Exclude:
|
||||
- 'app/models/conference.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
||||
# NamePrefix: is_, has_, have_
|
||||
# NamePrefixBlacklist: is_, has_, have_
|
||||
# NameWhitelist: is_a?
|
||||
# ForbiddenPrefixes: is_, has_, have_
|
||||
# AllowedMethods: is_a?
|
||||
# MethodDefinitionMacros: define_method, define_singleton_method
|
||||
Naming/PredicateName:
|
||||
Exclude:
|
||||
- 'spec/**/*'
|
||||
- 'app/models/comment.rb'
|
||||
- 'app/models/contact.rb'
|
||||
|
||||
|
|
@ -488,18 +545,15 @@ Naming/RescuedExceptionsVariableName:
|
|||
- 'app/models/commercial.rb'
|
||||
- 'app/models/payment.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
||||
Naming/UncommunicativeMethodParamName:
|
||||
Exclude:
|
||||
- 'app/models/conference.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# Offense count: 9
|
||||
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
|
||||
# SupportedStyles: snake_case, normalcase, non_integer
|
||||
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
||||
Naming/VariableNumber:
|
||||
Exclude:
|
||||
- 'app/models/program.rb'
|
||||
- 'spec/factories/rooms.rb'
|
||||
- 'spec/models/payment_spec.rb'
|
||||
- 'spec/models/ticket_purchase_spec.rb'
|
||||
|
||||
# Offense count: 28
|
||||
|
|
@ -513,7 +567,31 @@ RSpec/AnyInstance:
|
|||
- 'spec/controllers/proposals_controller_spec.rb'
|
||||
- 'spec/controllers/tracks_controller_spec.rb'
|
||||
|
||||
# Offense count: 317
|
||||
# Offense count: 351
|
||||
# Cop supports --auto-correct.
|
||||
RSpec/Capybara/CurrentPathExpectation:
|
||||
Exclude:
|
||||
- 'spec/features/base_controller_spec.rb'
|
||||
- 'spec/features/cfp_ability_spec.rb'
|
||||
- 'spec/features/commercials_spec.rb'
|
||||
- 'spec/features/conference_registration_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/track_organizer_ability_spec.rb'
|
||||
- 'spec/features/user_ability_spec.rb'
|
||||
|
||||
# Offense count: 162
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnabledMethods.
|
||||
RSpec/Capybara/FeatureMethods:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 318
|
||||
# Configuration parameters: Prefixes.
|
||||
# Prefixes: when, with, without
|
||||
RSpec/ContextWording:
|
||||
|
|
@ -599,12 +677,12 @@ RSpec/EmptyLineAfterSubject:
|
|||
- 'spec/models/survey_spec.rb'
|
||||
- 'spec/models/track_spec.rb'
|
||||
|
||||
# Offense count: 220
|
||||
# Configuration parameters: Max.
|
||||
# Offense count: 218
|
||||
# Configuration parameters: CountAsOne.
|
||||
RSpec/ExampleLength:
|
||||
Enabled: false
|
||||
Max: 187
|
||||
|
||||
# Offense count: 18
|
||||
# Offense count: 19
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: CustomTransform, IgnoredWords.
|
||||
RSpec/ExampleWording:
|
||||
|
|
@ -641,22 +719,34 @@ RSpec/ExpectChange:
|
|||
- 'spec/models/event_spec.rb'
|
||||
- 'spec/models/user_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Configuration parameters: CustomTransform, IgnoreMethods.
|
||||
# Offense count: 10
|
||||
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
||||
# Include: **/*_spec*rb*, **/spec/**/*
|
||||
RSpec/FilePath:
|
||||
Exclude:
|
||||
- 'spec/controllers/conference_registration_controller_spec.rb'
|
||||
- 'spec/controllers/physical_ticket_controller_spec.rb'
|
||||
- 'spec/features/email_spec.rb'
|
||||
- 'spec/features/omniauth_spec.rb'
|
||||
- 'spec/features/proposals_spec.rb'
|
||||
- 'spec/features/ticket_purchases_spec.rb'
|
||||
- 'spec/features/venues_spec.rb'
|
||||
- 'spec/features/volunteers_spec.rb'
|
||||
- 'spec/models/comment_spec.rb'
|
||||
- 'spec/models/openid.rb'
|
||||
|
||||
# Offense count: 171
|
||||
# Offense count: 169
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: implicit, each, example
|
||||
RSpec/HookArgument:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 2
|
||||
RSpec/IdenticalEqualityAssertion:
|
||||
Exclude:
|
||||
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
||||
|
||||
# Offense count: 140
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
@ -723,7 +813,7 @@ RSpec/LeadingSubject:
|
|||
- 'spec/models/conference_spec.rb'
|
||||
- 'spec/models/ticket_spec.rb'
|
||||
|
||||
# Offense count: 55
|
||||
# Offense count: 59
|
||||
RSpec/LetSetup:
|
||||
Enabled: false
|
||||
|
||||
|
|
@ -733,17 +823,22 @@ RSpec/LetSetup:
|
|||
RSpec/MessageSpies:
|
||||
EnforcedStyle: receive
|
||||
|
||||
# Offense count: 1
|
||||
# Offense count: 2
|
||||
RSpec/MultipleDescribes:
|
||||
Exclude:
|
||||
- 'spec/controllers/application_controller_spec.rb'
|
||||
- 'spec/models/conference_spec.rb'
|
||||
|
||||
# Offense count: 278
|
||||
# Configuration parameters: AggregateFailuresByDefault.
|
||||
# Offense count: 279
|
||||
RSpec/MultipleExpectations:
|
||||
Max: 97
|
||||
|
||||
# Offense count: 387
|
||||
# Offense count: 247
|
||||
# Configuration parameters: AllowSubject.
|
||||
RSpec/MultipleMemoizedHelpers:
|
||||
Max: 32
|
||||
|
||||
# Offense count: 396
|
||||
# Configuration parameters: IgnoreSharedExamples.
|
||||
RSpec/NamedSubject:
|
||||
Exclude:
|
||||
|
|
@ -752,7 +847,7 @@ RSpec/NamedSubject:
|
|||
- 'spec/models/room_spec.rb'
|
||||
- 'spec/models/track_spec.rb'
|
||||
|
||||
# Offense count: 206
|
||||
# Offense count: 208
|
||||
RSpec/NestedGroups:
|
||||
Max: 7
|
||||
|
||||
|
|
@ -770,12 +865,19 @@ RSpec/OverwritingSetup:
|
|||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Strict, EnforcedStyle.
|
||||
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
||||
# SupportedStyles: inflected, explicit
|
||||
RSpec/PredicateMatcher:
|
||||
Exclude:
|
||||
- 'spec/features/code_of_conduct_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
RSpec/Rails/AvoidSetupHook:
|
||||
Exclude:
|
||||
- 'spec/features/versions_spec.rb'
|
||||
- 'spec/helpers/events_helper_spec.rb'
|
||||
|
||||
# Offense count: 4
|
||||
RSpec/RepeatedDescription:
|
||||
Exclude:
|
||||
|
|
@ -786,6 +888,11 @@ RSpec/RepeatedExample:
|
|||
Exclude:
|
||||
- 'spec/models/conference_spec.rb'
|
||||
|
||||
# Offense count: 2
|
||||
RSpec/RepeatedExampleGroupBody:
|
||||
Exclude:
|
||||
- 'spec/models/conference_spec.rb'
|
||||
|
||||
# Offense count: 10
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
@ -795,6 +902,7 @@ RSpec/ReturnFromStub:
|
|||
- 'spec/helpers/events_helper_spec.rb'
|
||||
|
||||
# Offense count: 19
|
||||
# Cop supports --auto-correct.
|
||||
RSpec/ScatteredLet:
|
||||
Exclude:
|
||||
- 'spec/ability/ability_spec.rb'
|
||||
|
|
@ -805,6 +913,11 @@ RSpec/ScatteredSetup:
|
|||
Exclude:
|
||||
- 'spec/models/payment_spec.rb'
|
||||
|
||||
# Offense count: 9
|
||||
RSpec/StubbedMock:
|
||||
Exclude:
|
||||
- 'spec/helpers/events_helper_spec.rb'
|
||||
|
||||
# Offense count: 7
|
||||
RSpec/SubjectStub:
|
||||
Exclude:
|
||||
|
|
@ -829,6 +942,28 @@ Security/Open:
|
|||
Exclude:
|
||||
- 'app/pdfs/ticket_pdf.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: separated, grouped
|
||||
Style/AccessorGrouping:
|
||||
Exclude:
|
||||
- 'app/models/payment.rb'
|
||||
|
||||
# Offense count: 12
|
||||
# Cop supports --auto-correct.
|
||||
Style/CaseLikeIf:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/roles_controller.rb'
|
||||
- 'app/controllers/admin/users_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/versions_helper.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'app/views/admin/booths/booths.xlsx.axlsx'
|
||||
- 'app/views/admin/events/events.xlsx.axlsx'
|
||||
- 'app/views/admin/tracks/tracks.xlsx.axlsx'
|
||||
- 'lib/tasks/version.rake'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
|
@ -837,11 +972,6 @@ Style/ClassCheck:
|
|||
Exclude:
|
||||
- 'app/models/email_settings.rb'
|
||||
|
||||
# Offense count: 1
|
||||
Style/ClassVars:
|
||||
Exclude:
|
||||
- 'spec/support/kneet_connections.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/ColonMethodCall:
|
||||
|
|
@ -849,22 +979,38 @@ Style/ColonMethodCall:
|
|||
- 'app/models/commercial.rb'
|
||||
- 'app/models/contact.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Offense count: 1
|
||||
Style/CombinableLoops:
|
||||
Exclude:
|
||||
- 'db/migrate/20140820093735_migrating_supporter_registrations_to_ticket_users.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Keywords, RequireColon.
|
||||
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
||||
Style/CommentAnnotation:
|
||||
Exclude:
|
||||
- 'spec/controllers/admin/versions_controller_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
||||
# SupportedStyles: assign_to_condition, assign_inside_condition
|
||||
Style/ConditionalAssignment:
|
||||
Exclude:
|
||||
- 'app/helpers/format_helper.rb'
|
||||
- 'config/initializers/airbrake.rb'
|
||||
- 'db/migrate/20140610165551_migrate_data_person_to_user.rb'
|
||||
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
|
||||
|
||||
# Offense count: 516
|
||||
# Offense count: 501
|
||||
# Configuration parameters: AllowedConstants.
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: allowed_in_returns, forbidden
|
||||
Style/DoubleNegation:
|
||||
Exclude:
|
||||
- 'config/environments/production.rb'
|
||||
|
|
@ -905,7 +1051,7 @@ Style/Encoding:
|
|||
- 'config/initializers/money.rb'
|
||||
- 'spec/models/conference_spec.rb'
|
||||
|
||||
# Offense count: 10
|
||||
# Offense count: 11
|
||||
# Cop supports --auto-correct.
|
||||
Style/ExpandPathArguments:
|
||||
Exclude:
|
||||
|
|
@ -915,29 +1061,59 @@ Style/ExpandPathArguments:
|
|||
- 'bin/rspec'
|
||||
- 'bin/setup'
|
||||
- 'bin/update'
|
||||
- 'config.ru'
|
||||
- 'config/application.rb'
|
||||
- 'config/environment.rb'
|
||||
- 'spec/spec_helper.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: annotated, template, unannotated
|
||||
Style/FormatStringToken:
|
||||
# Offense count: 9
|
||||
# Cop supports --auto-correct.
|
||||
Style/ExplicitBlockArgument:
|
||||
Exclude:
|
||||
- 'app/uploaders/picture_uploader.rb'
|
||||
- 'Guardfile'
|
||||
|
||||
# Offense count: 49
|
||||
# Offense count: 48
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: always, never
|
||||
# SupportedStyles: always, always_true, never
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 29
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/GlobalStdStream:
|
||||
Exclude:
|
||||
- 'config/environments/production.rb'
|
||||
|
||||
# Offense count: 28
|
||||
# Configuration parameters: MinBodyLength.
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: braces, no_braces
|
||||
Style/HashAsLastArrayItem:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/schedules_controller.rb'
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 5
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowSplatArgument.
|
||||
Style/HashConversion:
|
||||
Exclude:
|
||||
- 'app/helpers/chart_helper.rb'
|
||||
- 'app/models/conference.rb'
|
||||
- 'spec/factories/event_users.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: MinBranchesCount.
|
||||
Style/HashLikeCase:
|
||||
Exclude:
|
||||
- 'app/helpers/versions_helper.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
||||
|
|
@ -949,7 +1125,14 @@ Style/HashSyntax:
|
|||
- 'app/views/admin/registrations/index.xlsx.axlsx'
|
||||
- 'lib/tasks/user.rake'
|
||||
|
||||
# Offense count: 58
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/HashTransformValues:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/comments_controller.rb'
|
||||
- 'app/helpers/chart_helper.rb'
|
||||
|
||||
# Offense count: 59
|
||||
# Cop supports --auto-correct.
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
|
|
@ -1000,8 +1183,8 @@ Style/MutableConstant:
|
|||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Whitelist.
|
||||
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
||||
# Configuration parameters: AllowedMethods.
|
||||
# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
||||
Style/NestedParenthesizedCalls:
|
||||
Exclude:
|
||||
- 'spec/features/conference_spec.rb'
|
||||
|
|
@ -1014,7 +1197,7 @@ Style/NestedParenthesizedCalls:
|
|||
Style/Next:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 120
|
||||
# Offense count: 115
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedOctalStyle.
|
||||
# SupportedOctalStyles: zero_with_o, zero_only
|
||||
|
|
@ -1022,14 +1205,13 @@ Style/NumericLiteralPrefix:
|
|||
Exclude:
|
||||
- 'config/environments/test.rb'
|
||||
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
||||
- 'spec/controllers/conference_registration_controller_spec.rb'
|
||||
- 'spec/helpers/date_time_helper_spec.rb'
|
||||
- 'spec/models/conference_spec.rb'
|
||||
- 'spec/models/email_settings_spec.rb'
|
||||
- 'spec/serializers/conference_serializer_spec.rb'
|
||||
- 'spec/serializers/event_serializer_spec.rb'
|
||||
|
||||
# Offense count: 8
|
||||
# Offense count: 7
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Strict.
|
||||
Style/NumericLiterals:
|
||||
|
|
@ -1037,11 +1219,10 @@ Style/NumericLiterals:
|
|||
|
||||
# Offense count: 36
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
||||
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
||||
# SupportedStyles: predicate, comparison
|
||||
Style/NumericPredicate:
|
||||
Exclude:
|
||||
- 'spec/**/*'
|
||||
- 'app/controllers/admin/conferences_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/date_time_helper.rb'
|
||||
|
|
@ -1060,6 +1241,16 @@ Style/OptionalArguments:
|
|||
Exclude:
|
||||
- 'app/models/event.rb'
|
||||
|
||||
# Offense count: 8
|
||||
# Configuration parameters: AllowedMethods.
|
||||
# AllowedMethods: respond_to_missing?
|
||||
Style/OptionalBooleanParameter:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/events_controller.rb'
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/format_helper.rb'
|
||||
- 'app/models/event.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/OrAssignment:
|
||||
|
|
@ -1075,7 +1266,7 @@ Style/ParenthesesAroundCondition:
|
|||
- 'app/controllers/application_controller.rb'
|
||||
- 'app/helpers/format_helper.rb'
|
||||
|
||||
# Offense count: 22
|
||||
# Offense count: 21
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: PreferredDelimiters.
|
||||
Style/PercentLiteralDelimiters:
|
||||
|
|
@ -1091,7 +1282,7 @@ Style/PreferredHashMethods:
|
|||
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: .
|
||||
# Configuration parameters: AllowedCompactTypes.
|
||||
# SupportedStyles: compact, exploded
|
||||
Style/RaiseArgs:
|
||||
EnforcedStyle: compact
|
||||
|
|
@ -1102,13 +1293,50 @@ Style/RandomWithOffset:
|
|||
Exclude:
|
||||
- 'spec/factories/sponsors.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantAssignment:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/helpers/format_helper.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantCondition:
|
||||
Exclude:
|
||||
- 'app/helpers/versions_helper.rb'
|
||||
- 'app/models/ticket.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: SafeForConstants.
|
||||
Style/RedundantFetchBlock:
|
||||
Exclude:
|
||||
- 'config/puma.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantParentheses:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/base_controller.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantRegexpEscape:
|
||||
Exclude:
|
||||
- 'spec/models/room_spec.rb'
|
||||
- 'spec/models/user_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowMultipleReturnValues.
|
||||
Style/RedundantReturn:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/booths_controller.rb'
|
||||
- 'app/controllers/admin/events_controller.rb'
|
||||
- 'app/controllers/admin/organizations_controller.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
||||
# SupportedStyles: slashes, percent_r, mixed
|
||||
|
|
@ -1116,7 +1344,6 @@ Style/RegexpLiteral:
|
|||
Exclude:
|
||||
- 'Guardfile'
|
||||
- 'app/uploaders/picture_uploader.rb'
|
||||
- 'config/initializers/airbrake.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
|
|
@ -1143,7 +1370,25 @@ Style/SingleLineMethods:
|
|||
Exclude:
|
||||
- 'Guardfile'
|
||||
|
||||
# Offense count: 611
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowModifier.
|
||||
Style/SoleNestedConditional:
|
||||
Exclude:
|
||||
- 'app/controllers/admin/users_controller.rb'
|
||||
- 'app/models/event.rb'
|
||||
- 'app/models/user.rb'
|
||||
- 'db/migrate/20140801164901_move_conference_media_to_commercial.rb'
|
||||
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
|
||||
- 'db/migrate/20151018152439_create_programs_table.rb'
|
||||
|
||||
# Offense count: 31
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Mode.
|
||||
Style/StringConcatenation:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 31
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
||||
# SupportedStyles: single_quotes, double_quotes
|
||||
|
|
@ -1171,7 +1416,7 @@ Style/StringLiteralsInInterpolation:
|
|||
- 'app/views/admin/events/_confirmed_events.xlsx.axlsx'
|
||||
- 'lib/tasks/dump_db.rake'
|
||||
|
||||
# Offense count: 110
|
||||
# Offense count: 108
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, MinSize.
|
||||
# SupportedStyles: percent, brackets
|
||||
|
|
@ -1180,7 +1425,7 @@ Style/SymbolArray:
|
|||
|
||||
# Offense count: 10
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: IgnoredMethods.
|
||||
# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods.
|
||||
# IgnoredMethods: respond_to, define_method
|
||||
Style/SymbolProc:
|
||||
Exclude:
|
||||
|
|
@ -1223,24 +1468,17 @@ Style/UnlessElse:
|
|||
Exclude:
|
||||
- 'config/routes.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Style/UnneededCondition:
|
||||
Exclude:
|
||||
- 'app/helpers/versions_helper.rb'
|
||||
- 'app/models/ticket.rb'
|
||||
|
||||
# Offense count: 9
|
||||
# Offense count: 3
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: WordRegex.
|
||||
# SupportedStyles: percent, brackets
|
||||
Style/WordArray:
|
||||
EnforcedStyle: percent
|
||||
MinSize: 8
|
||||
MinSize: 6
|
||||
|
||||
# Offense count: 2915
|
||||
# Offense count: 533
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||
# URISchemes: http, https
|
||||
Metrics/LineLength:
|
||||
Layout/LineLength:
|
||||
Max: 619
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue