Update rubocop to 1.25.1
This commit is contained in:
parent
10c6edcf8c
commit
f3815ad543
3 changed files with 101 additions and 153 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
# This configuration was generated by
|
# This configuration was generated by
|
||||||
# `rubocop --auto-gen-config`
|
# `rubocop --auto-gen-config`
|
||||||
# on 2021-08-13 12:49:18 UTC using RuboCop version 1.19.0.
|
# on 2022-02-10 16:47:29 UTC using RuboCop version 1.25.1.
|
||||||
# The point is for the user to remove these configuration records
|
# The point is for the user to remove these configuration records
|
||||||
# one by one as the offenses are removed from the code base.
|
# one by one as the offenses are removed from the code base.
|
||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
# versions of RuboCop, may require this file to be generated again.
|
# versions of RuboCop, may require this file to be generated again.
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
||||||
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
||||||
|
|
@ -14,13 +14,12 @@ Bundler/OrderedGems:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Gemfile'
|
- 'Gemfile'
|
||||||
|
|
||||||
# Offense count: 5
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: IndentationWidth.
|
# Configuration parameters: IndentationWidth.
|
||||||
Layout/AssignmentIndentation:
|
Layout/AssignmentIndentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/format_helper.rb'
|
- 'app/helpers/format_helper.rb'
|
||||||
- 'config/environments/development.rb'
|
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 4
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
|
@ -33,6 +32,7 @@ Layout/ClosingParenthesisIndentation:
|
||||||
|
|
||||||
# Offense count: 14
|
# Offense count: 14
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
# Configuration parameters: AllowForAlignment.
|
||||||
Layout/CommentIndentation:
|
Layout/CommentIndentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/admin/comments_controller.rb'
|
- 'app/controllers/admin/comments_controller.rb'
|
||||||
|
|
@ -62,7 +62,7 @@ Layout/EmptyLineAfterMagicComment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/models/conference_spec.rb'
|
- 'spec/models/conference_spec.rb'
|
||||||
|
|
||||||
# Offense count: 113
|
# Offense count: 108
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: empty_lines, no_empty_lines
|
# SupportedStyles: empty_lines, no_empty_lines
|
||||||
|
|
@ -75,17 +75,13 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/payment.rb'
|
- 'app/models/payment.rb'
|
||||||
|
|
||||||
# Offense count: 13
|
# Offense count: 6
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
||||||
Layout/ExtraSpacing:
|
Layout/ExtraSpacing:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Guardfile'
|
|
||||||
- 'app/controllers/application_controller.rb'
|
- 'app/controllers/application_controller.rb'
|
||||||
- 'app/views/admin/events/_all_with_comments.xlsx.axlsx'
|
- 'app/views/admin/events/_all_with_comments.xlsx.axlsx'
|
||||||
- 'bin/rails'
|
|
||||||
- 'config.ru'
|
|
||||||
- 'config/environments/test.rb'
|
|
||||||
- 'db/migrate/20140623101032_create_ahoy_events.rb'
|
- 'db/migrate/20140623101032_create_ahoy_events.rb'
|
||||||
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
||||||
- 'db/migrate/20140719160903_create_delayed_jobs.rb'
|
- 'db/migrate/20140719160903_create_delayed_jobs.rb'
|
||||||
|
|
@ -140,12 +136,11 @@ Layout/IndentationWidth:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/users_controller.rb'
|
- 'app/controllers/users_controller.rb'
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
||||||
Layout/LeadingCommentSpace:
|
Layout/LeadingCommentSpace:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Guardfile'
|
|
||||||
- 'app/models/comment.rb'
|
- 'app/models/comment.rb'
|
||||||
|
|
||||||
# Offense count: 32
|
# Offense count: 32
|
||||||
|
|
@ -179,14 +174,14 @@ Layout/MultilineHashBraceLayout:
|
||||||
- 'config/routes.rb'
|
- 'config/routes.rb'
|
||||||
- 'spec/models/event_spec.rb'
|
- 'spec/models/event_spec.rb'
|
||||||
|
|
||||||
# Offense count: 36
|
# Offense count: 35
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: symmetrical, new_line, same_line
|
# SupportedStyles: symmetrical, new_line, same_line
|
||||||
Layout/MultilineMethodCallBraceLayout:
|
Layout/MultilineMethodCallBraceLayout:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 56
|
# Offense count: 55
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
||||||
|
|
@ -241,14 +236,13 @@ Layout/SpaceAroundMethodCallOperator:
|
||||||
- 'spec/features/organizer_ability_spec.rb'
|
- 'spec/features/organizer_ability_spec.rb'
|
||||||
- 'spec/models/program_spec.rb'
|
- 'spec/models/program_spec.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
||||||
# SupportedStylesForExponentOperator: space, no_space
|
# SupportedStylesForExponentOperator: space, no_space
|
||||||
Layout/SpaceAroundOperators:
|
Layout/SpaceAroundOperators:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/views/admin/events/_all_with_comments.xlsx.axlsx'
|
- 'app/views/admin/events/_all_with_comments.xlsx.axlsx'
|
||||||
- 'config/environments/test.rb'
|
|
||||||
- 'lib/tasks/data.rake'
|
- 'lib/tasks/data.rake'
|
||||||
|
|
||||||
# Offense count: 139
|
# Offense count: 139
|
||||||
|
|
@ -278,12 +272,6 @@ Layout/SpaceBeforeFirstArg:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/admin/booths_controller.rb'
|
- 'app/controllers/admin/booths_controller.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Layout/SpaceBeforeSemicolon:
|
|
||||||
Exclude:
|
|
||||||
- 'Guardfile'
|
|
||||||
|
|
||||||
# Offense count: 8
|
# Offense count: 8
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
||||||
|
|
@ -339,7 +327,7 @@ Layout/SpaceInsideHashLiteralBraces:
|
||||||
# Offense count: 4
|
# Offense count: 4
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: space, no_space
|
# SupportedStyles: space, compact, no_space
|
||||||
Layout/SpaceInsideParens:
|
Layout/SpaceInsideParens:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/views/admin/registrations/index.xlsx.axlsx'
|
- 'app/views/admin/registrations/index.xlsx.axlsx'
|
||||||
|
|
@ -371,11 +359,17 @@ Lint/AmbiguousBlockAssociation:
|
||||||
- 'spec/controllers/schedules_controller_spec.rb'
|
- 'spec/controllers/schedules_controller_spec.rb'
|
||||||
- 'spec/models/user_spec.rb'
|
- 'spec/models/user_spec.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 13
|
||||||
# Configuration parameters: AllowSafeAssignment.
|
# Cop supports --auto-correct.
|
||||||
Lint/AssignmentInCondition:
|
Lint/AmbiguousOperatorPrecedence:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'bin/spring'
|
- 'app/controllers/application_controller.rb'
|
||||||
|
- 'app/helpers/conference_helper.rb'
|
||||||
|
- 'app/models/admin_ability.rb'
|
||||||
|
- 'app/models/commercial.rb'
|
||||||
|
- 'app/models/conference.rb'
|
||||||
|
- 'app/models/track.rb'
|
||||||
|
- 'app/pdfs/ticket_pdf.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Configuration parameters: AllowedMethods.
|
# Configuration parameters: AllowedMethods.
|
||||||
|
|
@ -409,31 +403,12 @@ Lint/IneffectiveAccessModifier:
|
||||||
- 'app/models/commercial.rb'
|
- 'app/models/commercial.rb'
|
||||||
- 'app/models/conference.rb'
|
- 'app/models/conference.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Lint/NonDeterministicRequireOrder:
|
|
||||||
Exclude:
|
|
||||||
- 'spec/spec_helper.rb'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Lint/RedundantCopDisableDirective:
|
Lint/RedundantCopDisableDirective:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'spec/support/save_feature_failures.rb'
|
- 'spec/support/save_feature_failures.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Lint/ScriptPermission:
|
|
||||||
Exclude:
|
|
||||||
- 'Guardfile'
|
|
||||||
- 'Rakefile'
|
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Configuration parameters: AllowComments, AllowNil.
|
|
||||||
Lint/SuppressedException:
|
|
||||||
Exclude:
|
|
||||||
- 'bin/rspec'
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
||||||
|
|
@ -455,16 +430,16 @@ Lint/UriRegexp:
|
||||||
- 'app/models/commercial.rb'
|
- 'app/models/commercial.rb'
|
||||||
- 'app/models/contact.rb'
|
- 'app/models/contact.rb'
|
||||||
|
|
||||||
# Offense count: 128
|
# Offense count: 127
|
||||||
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Max: 71
|
Max: 71
|
||||||
|
|
||||||
# Offense count: 315
|
# Offense count: 313
|
||||||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
||||||
# IgnoredMethods: refine
|
# IgnoredMethods: refine
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
Max: 1344
|
Max: 1341
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Configuration parameters: CountBlocks.
|
# Configuration parameters: CountBlocks.
|
||||||
|
|
@ -476,12 +451,12 @@ Metrics/BlockNesting:
|
||||||
Metrics/ClassLength:
|
Metrics/ClassLength:
|
||||||
Max: 652
|
Max: 652
|
||||||
|
|
||||||
# Offense count: 28
|
# Offense count: 29
|
||||||
# Configuration parameters: IgnoredMethods.
|
# Configuration parameters: IgnoredMethods.
|
||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Max: 16
|
Max: 16
|
||||||
|
|
||||||
# Offense count: 150
|
# Offense count: 152
|
||||||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Max: 56
|
Max: 56
|
||||||
|
|
@ -491,7 +466,7 @@ Metrics/MethodLength:
|
||||||
Metrics/ModuleLength:
|
Metrics/ModuleLength:
|
||||||
Max: 173
|
Max: 173
|
||||||
|
|
||||||
# Offense count: 25
|
# Offense count: 26
|
||||||
# Configuration parameters: IgnoredMethods.
|
# Configuration parameters: IgnoredMethods.
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/PerceivedComplexity:
|
||||||
Max: 19
|
Max: 19
|
||||||
|
|
@ -510,15 +485,6 @@ Naming/HeredocDelimiterNaming:
|
||||||
- 'spec/factories/users.rb'
|
- 'spec/factories/users.rb'
|
||||||
- 'spec/models/user_spec.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
|
# Offense count: 2
|
||||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||||
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
||||||
|
|
@ -618,7 +584,7 @@ RSpec/DescribedClass:
|
||||||
- 'spec/serializers/speaker_serializer_spec.rb'
|
- 'spec/serializers/speaker_serializer_spec.rb'
|
||||||
- 'spec/serializers/track_serializer_spec.rb'
|
- 'spec/serializers/track_serializer_spec.rb'
|
||||||
|
|
||||||
# Offense count: 13
|
# Offense count: 11
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowConsecutiveOneLiners.
|
# Configuration parameters: AllowConsecutiveOneLiners.
|
||||||
RSpec/EmptyLineAfterExample:
|
RSpec/EmptyLineAfterExample:
|
||||||
|
|
@ -649,7 +615,7 @@ RSpec/EmptyLineAfterFinalLet:
|
||||||
- 'spec/models/payment_spec.rb'
|
- 'spec/models/payment_spec.rb'
|
||||||
- 'spec/models/ticket_spec.rb'
|
- 'spec/models/ticket_spec.rb'
|
||||||
|
|
||||||
# Offense count: 16
|
# Offense count: 17
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
RSpec/EmptyLineAfterHook:
|
RSpec/EmptyLineAfterHook:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
@ -682,7 +648,7 @@ RSpec/EmptyLineAfterSubject:
|
||||||
RSpec/ExampleLength:
|
RSpec/ExampleLength:
|
||||||
Max: 187
|
Max: 187
|
||||||
|
|
||||||
# Offense count: 19
|
# Offense count: 18
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: CustomTransform, IgnoredWords.
|
# Configuration parameters: CustomTransform, IgnoredWords.
|
||||||
RSpec/ExampleWording:
|
RSpec/ExampleWording:
|
||||||
|
|
@ -829,7 +795,7 @@ RSpec/MultipleDescribes:
|
||||||
- 'spec/controllers/application_controller_spec.rb'
|
- 'spec/controllers/application_controller_spec.rb'
|
||||||
- 'spec/models/conference_spec.rb'
|
- 'spec/models/conference_spec.rb'
|
||||||
|
|
||||||
# Offense count: 279
|
# Offense count: 277
|
||||||
RSpec/MultipleExpectations:
|
RSpec/MultipleExpectations:
|
||||||
Max: 97
|
Max: 97
|
||||||
|
|
||||||
|
|
@ -951,7 +917,7 @@ Style/AccessorGrouping:
|
||||||
- 'app/models/payment.rb'
|
- 'app/models/payment.rb'
|
||||||
|
|
||||||
# Offense count: 12
|
# Offense count: 12
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct-all.
|
||||||
Style/CaseLikeIf:
|
Style/CaseLikeIf:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/admin/roles_controller.rb'
|
- 'app/controllers/admin/roles_controller.rb'
|
||||||
|
|
@ -1007,14 +973,6 @@ Style/ConditionalAssignment:
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: allowed_in_returns, forbidden
|
|
||||||
Style/DoubleNegation:
|
|
||||||
Exclude:
|
|
||||||
- 'config/environments/production.rb'
|
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/EmptyCaseCondition:
|
Style/EmptyCaseCondition:
|
||||||
|
|
@ -1042,37 +1000,23 @@ Style/EmptyMethod:
|
||||||
- 'db/migrate/20130206192339_rename_attending_social_events_with_partner.rb'
|
- 'db/migrate/20130206192339_rename_attending_social_events_with_partner.rb'
|
||||||
- 'db/migrate/20130216122155_set_registration_defaults_to_false.rb'
|
- 'db/migrate/20130216122155_set_registration_defaults_to_false.rb'
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 3
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/Encoding:
|
Style/Encoding:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/uploaders/picture_uploader.rb'
|
- 'app/uploaders/picture_uploader.rb'
|
||||||
- 'config/initializers/formtastic.rb'
|
- 'config/initializers/formtastic.rb'
|
||||||
- 'config/initializers/money.rb'
|
|
||||||
- 'spec/models/conference_spec.rb'
|
- 'spec/models/conference_spec.rb'
|
||||||
|
|
||||||
# Offense count: 11
|
# Offense count: 3
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/ExpandPathArguments:
|
Style/ExpandPathArguments:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Rakefile'
|
|
||||||
- 'bin/bundle'
|
- 'bin/bundle'
|
||||||
- 'bin/rails'
|
|
||||||
- 'bin/rspec'
|
- 'bin/rspec'
|
||||||
- 'bin/setup'
|
|
||||||
- 'bin/update'
|
|
||||||
- 'config.ru'
|
|
||||||
- 'config/application.rb'
|
|
||||||
- 'config/environment.rb'
|
|
||||||
- 'spec/spec_helper.rb'
|
- 'spec/spec_helper.rb'
|
||||||
|
|
||||||
# Offense count: 9
|
# Offense count: 41
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/ExplicitBlockArgument:
|
|
||||||
Exclude:
|
|
||||||
- 'Guardfile'
|
|
||||||
|
|
||||||
# Offense count: 48
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: always, always_true, never
|
# SupportedStyles: always, always_true, never
|
||||||
|
|
@ -1085,7 +1029,7 @@ Style/GlobalStdStream:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'config/environments/production.rb'
|
- 'config/environments/production.rb'
|
||||||
|
|
||||||
# Offense count: 28
|
# Offense count: 29
|
||||||
# Configuration parameters: MinBodyLength.
|
# Configuration parameters: MinBodyLength.
|
||||||
Style/GuardClause:
|
Style/GuardClause:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
@ -1114,25 +1058,22 @@ Style/HashLikeCase:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/versions_helper.rb'
|
- 'app/helpers/versions_helper.rb'
|
||||||
|
|
||||||
# Offense count: 7
|
# Offense count: 358
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
||||||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
||||||
|
# SupportedShorthandSyntax: always, never, either
|
||||||
Style/HashSyntax:
|
Style/HashSyntax:
|
||||||
Exclude:
|
Enabled: false
|
||||||
- 'Gemfile'
|
|
||||||
- 'app/views/admin/events/events.xlsx.axlsx'
|
|
||||||
- 'app/views/admin/registrations/index.xlsx.axlsx'
|
|
||||||
- 'lib/tasks/user.rake'
|
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct-all.
|
||||||
Style/HashTransformValues:
|
Style/HashTransformValues:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/admin/comments_controller.rb'
|
- 'app/controllers/admin/comments_controller.rb'
|
||||||
- 'app/helpers/chart_helper.rb'
|
- 'app/helpers/chart_helper.rb'
|
||||||
|
|
||||||
# Offense count: 59
|
# Offense count: 61
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/IfUnlessModifier:
|
Style/IfUnlessModifier:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
@ -1144,6 +1085,12 @@ Style/LineEndConcatenation:
|
||||||
- 'spec/features/conference_spec.rb'
|
- 'spec/features/conference_spec.rb'
|
||||||
- 'spec/features/registration_periods_spec.rb'
|
- 'spec/features/registration_periods_spec.rb'
|
||||||
|
|
||||||
|
# Offense count: 1
|
||||||
|
# Cop supports --auto-correct-all.
|
||||||
|
Style/MapToHash:
|
||||||
|
Exclude:
|
||||||
|
- 'app/controllers/admin/comments_controller.rb'
|
||||||
|
|
||||||
# Offense count: 9
|
# Offense count: 9
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
|
|
@ -1154,12 +1101,9 @@ Style/MethodDefParentheses:
|
||||||
- 'app/models/user.rb'
|
- 'app/models/user.rb'
|
||||||
- 'lib/tasks/demo_data_for_development.rake'
|
- 'lib/tasks/demo_data_for_development.rake'
|
||||||
|
|
||||||
# Offense count: 4
|
# Offense count: 1
|
||||||
Style/MixinUsage:
|
Style/MixinUsage:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'bin/setup'
|
|
||||||
- 'bin/update'
|
|
||||||
- 'config/application.rb'
|
|
||||||
- 'spec/spec_helper.rb'
|
- 'spec/spec_helper.rb'
|
||||||
|
|
||||||
# Offense count: 7
|
# Offense count: 7
|
||||||
|
|
@ -1213,12 +1157,12 @@ Style/NumericLiteralPrefix:
|
||||||
|
|
||||||
# Offense count: 7
|
# Offense count: 7
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: Strict.
|
# Configuration parameters: Strict, AllowedNumbers.
|
||||||
Style/NumericLiterals:
|
Style/NumericLiterals:
|
||||||
MinDigits: 15
|
MinDigits: 15
|
||||||
|
|
||||||
# Offense count: 36
|
# Offense count: 36
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct-all.
|
||||||
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
||||||
# SupportedStyles: predicate, comparison
|
# SupportedStyles: predicate, comparison
|
||||||
Style/NumericPredicate:
|
Style/NumericPredicate:
|
||||||
|
|
@ -1266,14 +1210,28 @@ Style/ParenthesesAroundCondition:
|
||||||
- 'app/controllers/application_controller.rb'
|
- 'app/controllers/application_controller.rb'
|
||||||
- 'app/helpers/format_helper.rb'
|
- 'app/helpers/format_helper.rb'
|
||||||
|
|
||||||
# Offense count: 21
|
# Offense count: 19
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: PreferredDelimiters.
|
# Configuration parameters: PreferredDelimiters.
|
||||||
Style/PercentLiteralDelimiters:
|
Style/PercentLiteralDelimiters:
|
||||||
Enabled: false
|
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'
|
||||||
|
- 'config/initializers/formtastic.rb'
|
||||||
|
- 'spec/models/program_spec.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct-all.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: short, verbose
|
# SupportedStyles: short, verbose
|
||||||
Style/PreferredHashMethods:
|
Style/PreferredHashMethods:
|
||||||
|
|
@ -1308,7 +1266,7 @@ Style/RedundantCondition:
|
||||||
- 'app/models/ticket.rb'
|
- 'app/models/ticket.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 3
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct-all.
|
||||||
# Configuration parameters: SafeForConstants.
|
# Configuration parameters: SafeForConstants.
|
||||||
Style/RedundantFetchBlock:
|
Style/RedundantFetchBlock:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
@ -1336,13 +1294,12 @@ Style/RedundantReturn:
|
||||||
- 'app/controllers/admin/events_controller.rb'
|
- 'app/controllers/admin/events_controller.rb'
|
||||||
- 'app/controllers/admin/organizations_controller.rb'
|
- 'app/controllers/admin/organizations_controller.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
||||||
# SupportedStyles: slashes, percent_r, mixed
|
# SupportedStyles: slashes, percent_r, mixed
|
||||||
Style/RegexpLiteral:
|
Style/RegexpLiteral:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Guardfile'
|
|
||||||
- 'app/uploaders/picture_uploader.rb'
|
- 'app/uploaders/picture_uploader.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
|
|
@ -1363,13 +1320,6 @@ Style/SignalException:
|
||||||
- 'lib/tasks/user.rake'
|
- 'lib/tasks/user.rake'
|
||||||
- 'spec/support/flash.rb'
|
- 'spec/support/flash.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
||||||
Style/SingleLineMethods:
|
|
||||||
Exclude:
|
|
||||||
- 'Guardfile'
|
|
||||||
|
|
||||||
# Offense count: 6
|
# Offense count: 6
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowModifier.
|
# Configuration parameters: AllowModifier.
|
||||||
|
|
@ -1382,13 +1332,20 @@ Style/SoleNestedConditional:
|
||||||
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
|
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
|
||||||
- 'db/migrate/20151018152439_create_programs_table.rb'
|
- 'db/migrate/20151018152439_create_programs_table.rb'
|
||||||
|
|
||||||
# Offense count: 31
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
# Configuration parameters: RequireEnglish.
|
||||||
|
# SupportedStyles: use_perl_names, use_english_names
|
||||||
|
Style/SpecialGlobalVars:
|
||||||
|
EnforcedStyle: use_perl_names
|
||||||
|
|
||||||
|
# Offense count: 31
|
||||||
|
# Cop supports --auto-correct-all.
|
||||||
# Configuration parameters: Mode.
|
# Configuration parameters: Mode.
|
||||||
Style/StringConcatenation:
|
Style/StringConcatenation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 31
|
# Offense count: 35
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
||||||
# SupportedStyles: single_quotes, double_quotes
|
# SupportedStyles: single_quotes, double_quotes
|
||||||
|
|
@ -1396,7 +1353,6 @@ Style/StringLiterals:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Gemfile'
|
- 'Gemfile'
|
||||||
- 'bin/rspec'
|
- 'bin/rspec'
|
||||||
- 'bin/spring'
|
|
||||||
- 'config/deploy.rb'
|
- 'config/deploy.rb'
|
||||||
- 'config/environments/production.rb'
|
- 'config/environments/production.rb'
|
||||||
- 'config/puma.rb'
|
- 'config/puma.rb'
|
||||||
|
|
@ -1416,7 +1372,7 @@ Style/StringLiteralsInInterpolation:
|
||||||
- 'app/views/admin/events/_confirmed_events.xlsx.axlsx'
|
- 'app/views/admin/events/_confirmed_events.xlsx.axlsx'
|
||||||
- 'lib/tasks/dump_db.rake'
|
- 'lib/tasks/dump_db.rake'
|
||||||
|
|
||||||
# Offense count: 108
|
# Offense count: 109
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, MinSize.
|
# Configuration parameters: EnforcedStyle, MinSize.
|
||||||
# SupportedStyles: percent, brackets
|
# SupportedStyles: percent, brackets
|
||||||
|
|
@ -1424,7 +1380,7 @@ Style/SymbolArray:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 10
|
# Offense count: 10
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct-all.
|
||||||
# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods.
|
# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods.
|
||||||
# IgnoredMethods: respond_to, define_method
|
# IgnoredMethods: respond_to, define_method
|
||||||
Style/SymbolProc:
|
Style/SymbolProc:
|
||||||
|
|
@ -1445,14 +1401,6 @@ Style/TernaryParentheses:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/format_helper.rb'
|
- 'app/helpers/format_helper.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyleForMultiline.
|
|
||||||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
||||||
Style/TrailingCommaInArrayLiteral:
|
|
||||||
Exclude:
|
|
||||||
- 'Guardfile'
|
|
||||||
|
|
||||||
# Offense count: 21
|
# Offense count: 21
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyleForMultiline.
|
# Configuration parameters: EnforcedStyleForMultiline.
|
||||||
|
|
@ -1476,9 +1424,9 @@ Style/WordArray:
|
||||||
EnforcedStyle: percent
|
EnforcedStyle: percent
|
||||||
MinSize: 6
|
MinSize: 6
|
||||||
|
|
||||||
# Offense count: 533
|
# Offense count: 532
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
||||||
# URISchemes: http, https
|
# URISchemes: http, https
|
||||||
Layout/LineLength:
|
Layout/LineLength:
|
||||||
Max: 619
|
Max: 619
|
||||||
|
|
|
||||||
18
Gemfile.lock
18
Gemfile.lock
|
|
@ -365,8 +365,8 @@ GEM
|
||||||
paper_trail (12.1.0)
|
paper_trail (12.1.0)
|
||||||
activerecord (>= 5.2)
|
activerecord (>= 5.2)
|
||||||
request_store (~> 1.1)
|
request_store (~> 1.1)
|
||||||
parallel (1.20.1)
|
parallel (1.21.0)
|
||||||
parser (3.0.2.0)
|
parser (3.1.0.0)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
pdf-core (0.9.0)
|
pdf-core (0.9.0)
|
||||||
pdf-inspector (1.3.0)
|
pdf-inspector (1.3.0)
|
||||||
|
|
@ -437,7 +437,7 @@ GEM
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.19.0, < 2.0)
|
thor (>= 0.19.0, < 2.0)
|
||||||
rainbow (3.0.0)
|
rainbow (3.1.1)
|
||||||
rake (13.0.6)
|
rake (13.0.6)
|
||||||
rb-fsevent (0.11.0)
|
rb-fsevent (0.11.0)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
|
|
@ -445,7 +445,7 @@ GEM
|
||||||
recaptcha (4.14.0)
|
recaptcha (4.14.0)
|
||||||
json
|
json
|
||||||
redcarpet (3.5.1)
|
redcarpet (3.5.1)
|
||||||
regexp_parser (2.1.1)
|
regexp_parser (2.2.0)
|
||||||
request_store (1.5.0)
|
request_store (1.5.0)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
|
|
@ -483,16 +483,16 @@ GEM
|
||||||
rspec-mocks (~> 3.6.0)
|
rspec-mocks (~> 3.6.0)
|
||||||
rspec-support (~> 3.6.0)
|
rspec-support (~> 3.6.0)
|
||||||
rspec-support (3.6.0)
|
rspec-support (3.6.0)
|
||||||
rubocop (1.19.1)
|
rubocop (1.25.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.0.0.0)
|
parser (>= 3.1.0.0)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml
|
rexml
|
||||||
rubocop-ast (>= 1.9.1, < 2.0)
|
rubocop-ast (>= 1.15.1, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.11.0)
|
rubocop-ast (1.15.1)
|
||||||
parser (>= 3.0.1.1)
|
parser (>= 3.0.1.1)
|
||||||
rubocop-rails (2.11.3)
|
rubocop-rails (2.11.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
|
|
@ -584,7 +584,7 @@ GEM
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.7)
|
unf_ext (0.0.7.7)
|
||||||
unicode-display_width (2.0.0)
|
unicode-display_width (2.1.0)
|
||||||
unicode_utils (1.4.0)
|
unicode_utils (1.4.0)
|
||||||
unobtrusive_flash (3.3.1)
|
unobtrusive_flash (3.3.1)
|
||||||
railties
|
railties
|
||||||
|
|
|
||||||
|
|
@ -406,8 +406,8 @@ GEM
|
||||||
paper_trail (12.0.0)
|
paper_trail (12.0.0)
|
||||||
activerecord (>= 5.2)
|
activerecord (>= 5.2)
|
||||||
request_store (~> 1.1)
|
request_store (~> 1.1)
|
||||||
parallel (1.20.1)
|
parallel (1.21.0)
|
||||||
parser (3.0.2.0)
|
parser (3.1.0.0)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
pdf-core (0.9.0)
|
pdf-core (0.9.0)
|
||||||
pdf-inspector (1.3.0)
|
pdf-inspector (1.3.0)
|
||||||
|
|
@ -480,12 +480,12 @@ GEM
|
||||||
rake (>= 12.2)
|
rake (>= 12.2)
|
||||||
thor (~> 1.0)
|
thor (~> 1.0)
|
||||||
zeitwerk (~> 2.5)
|
zeitwerk (~> 2.5)
|
||||||
rainbow (3.0.0)
|
rainbow (3.1.1)
|
||||||
rake (13.0.6)
|
rake (13.0.6)
|
||||||
recaptcha (5.8.1)
|
recaptcha (5.8.1)
|
||||||
json
|
json
|
||||||
redcarpet (3.5.1)
|
redcarpet (3.5.1)
|
||||||
regexp_parser (2.1.1)
|
regexp_parser (2.2.0)
|
||||||
request_store (1.5.0)
|
request_store (1.5.0)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
|
|
@ -523,16 +523,16 @@ GEM
|
||||||
rspec-mocks (~> 3.10)
|
rspec-mocks (~> 3.10)
|
||||||
rspec-support (~> 3.10)
|
rspec-support (~> 3.10)
|
||||||
rspec-support (3.10.2)
|
rspec-support (3.10.2)
|
||||||
rubocop (1.19.0)
|
rubocop (1.25.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.0.0.0)
|
parser (>= 3.1.0.0)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml
|
rexml
|
||||||
rubocop-ast (>= 1.9.1, < 2.0)
|
rubocop-ast (>= 1.15.1, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.10.0)
|
rubocop-ast (1.15.1)
|
||||||
parser (>= 3.0.1.1)
|
parser (>= 3.0.1.1)
|
||||||
rubocop-rails (2.11.3)
|
rubocop-rails (2.11.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
|
|
@ -620,7 +620,7 @@ GEM
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.7)
|
unf_ext (0.0.7.7)
|
||||||
unicode-display_width (2.0.0)
|
unicode-display_width (2.1.0)
|
||||||
unicode_utils (1.4.0)
|
unicode_utils (1.4.0)
|
||||||
unobtrusive_flash (3.3.1)
|
unobtrusive_flash (3.3.1)
|
||||||
railties
|
railties
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue