435 lines
13 KiB
YAML
435 lines
13 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2015-10-22 14:30:43 +0200 using RuboCop version 0.34.2.
|
|
# 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: 2
|
|
Lint/DuplicatedKey:
|
|
Exclude:
|
|
- 'db/migrate/20140801164901_move_conference_media_to_commercial.rb'
|
|
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
|
|
|
|
# Offense count: 83
|
|
Metrics/AbcSize:
|
|
Max: 73
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 200
|
|
|
|
# Offense count: 9
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 12
|
|
|
|
# Offense count: 863
|
|
# Configuration parameters: AllowURI, URISchemes.
|
|
Metrics/LineLength:
|
|
Max: 207
|
|
|
|
# Offense count: 87
|
|
# Configuration parameters: CountComments.
|
|
Metrics/MethodLength:
|
|
Max: 56
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ModuleLength:
|
|
Max: 243
|
|
|
|
# Offense count: 5
|
|
Metrics/PerceivedComplexity:
|
|
Max: 15
|
|
|
|
# Offense count: 18
|
|
Style/AccessorMethodName:
|
|
Exclude:
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/models/campaign.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/target.rb'
|
|
- 'app/models/user.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/ClassCheck:
|
|
Exclude:
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/email_settings.rb'
|
|
- 'app/models/revision_observer.rb'
|
|
|
|
# Offense count: 1
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'spec/support/kneet_connections.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/ColonMethodCall:
|
|
Exclude:
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Keywords.
|
|
Style/CommentAnnotation:
|
|
Exclude:
|
|
- 'app/models/event_user.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/CommentIndentation:
|
|
Exclude:
|
|
- 'app/controllers/admin/comments_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/track.rb'
|
|
|
|
# Offense count: 341
|
|
# Configuration parameters: Exclude.
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 97
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/DotPosition:
|
|
Enabled: false
|
|
|
|
# Offense count: 5
|
|
Style/DoubleNegation:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Exclude.
|
|
Style/FileName:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 15
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Exclude:
|
|
- 'app/controllers/admin/base_controller.rb'
|
|
- 'app/controllers/admin/questions_controller.rb'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'app/controllers/tickets_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/ability.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/registration.rb'
|
|
- 'app/models/ticket.rb'
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
|
|
|
|
# Offense count: 27
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MaxLineLength.
|
|
Style/IfUnlessModifier:
|
|
Exclude:
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/controllers/admin/schedules_controller.rb'
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'app/controllers/proposal_controller.rb'
|
|
- 'app/controllers/users/omniauth_callbacks_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/datatable.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/ticket_purchase.rb'
|
|
- 'app/models/user.rb'
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/features/omniauth_spec.rb'
|
|
- 'spec/support/flash.rb'
|
|
- 'spec/support/save_feature_failures.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/IndentArray:
|
|
Exclude:
|
|
- 'app/controllers/admin/registrations_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/IndentHash:
|
|
Enabled: false
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/IndentationConsistency:
|
|
Exclude:
|
|
- 'app/controllers/conference_controller.rb'
|
|
- 'app/controllers/users_controller.rb'
|
|
- 'app/models/event.rb'
|
|
- 'spec/controllers/subscriptions_controller_spec.rb'
|
|
- 'spec/models/cfp_spec.rb'
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Width.
|
|
Style/IndentationWidth:
|
|
Exclude:
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
- 'db/migrate/20141031225545_add_require_handicapped_access_to_questions.rb'
|
|
- 'db/migrate/20141031225606_add_attending_with_partner_to_questions.rb'
|
|
- 'db/migrate/20141031225620_add_staying_at_suggested_hotel_to_questions.rb'
|
|
- 'db/migrate/20141031225635_add_attending_social_events_to_questions.rb'
|
|
- 'db/migrate/20141118162030_change_lodging_association_to_conference.rb'
|
|
- 'spec/features/event_types_spec.rb'
|
|
- 'spec/models/cfp_spec.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Style/LeadingCommentSpace:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'app/controllers/admin/commercials_controller.rb'
|
|
- 'app/controllers/commercials_controller.rb'
|
|
- 'app/models/comment.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
Style/LineEndConcatenation:
|
|
Exclude:
|
|
- 'spec/features/cfp_spec.rb'
|
|
- 'spec/features/conference_spec.rb'
|
|
- 'spec/features/registration_periods_spec.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/MethodDefParentheses:
|
|
Enabled: false
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
Style/NegatedIf:
|
|
Exclude:
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'app/controllers/proposal_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/datatable.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/venue.rb'
|
|
- 'db/migrate/20140820093735_migrating_supporter_registrations_to_ticket_users.rb'
|
|
|
|
# Offense count: 18
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
|
Style/Next:
|
|
Exclude:
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'db/migrate/20140610173021_change_person_id_to_user_id_in_registrations.rb'
|
|
- 'db/migrate/20140611123926_change_person_id_to_user_id_in_votes.rb'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
- 'db/migrate/20140731165107_move_conference_contact_details_to_contact.rb'
|
|
- 'db/migrate/20140801164901_move_conference_media_to_commercial.rb'
|
|
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
|
|
- 'db/migrate/20140812065531_move_conference_registration_data_to_registration_periods.rb'
|
|
- 'db/migrate/20140820093735_migrating_supporter_registrations_to_ticket_users.rb'
|
|
- 'db/migrate/20140821103643_split_ticket_price_in_price_and_currency.rb'
|
|
- 'db/migrate/20140825093132_move_splashpage_attributes_from_conference_to_splashpage.rb'
|
|
- 'db/migrate/20141104131625_generate_username.rb'
|
|
- 'db/migrate/20141118162030_change_lodging_association_to_conference.rb'
|
|
- 'db/migrate/20141128073306_migrate_data_remove_column_include_cfp_in_splash_add_column_include_cfp.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/NumericLiterals:
|
|
MinDigits: 15
|
|
|
|
# Offense count: 3
|
|
Style/OptionalArguments:
|
|
Exclude:
|
|
- 'app/models/event.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Style/ParenthesesAroundCondition:
|
|
Exclude:
|
|
- 'app/controllers/admin/base_controller.rb'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
Exclude:
|
|
- 'app/serializers/event_serializer.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
|
|
Style/PredicateName:
|
|
Exclude:
|
|
- 'app/models/comment.rb'
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: SupportedStyles.
|
|
Style/RaiseArgs:
|
|
EnforcedStyle: compact
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantBegin:
|
|
Exclude:
|
|
- 'app/models/revision_observer.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
Style/RedundantReturn:
|
|
Exclude:
|
|
- 'app/helpers/application_helper.rb'
|
|
|
|
# Offense count: 33
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Exclude:
|
|
- 'app/models/call_for_paper.rb'
|
|
- 'app/models/comment.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/question.rb'
|
|
- 'app/models/ticket.rb'
|
|
- 'app/models/user.rb'
|
|
- 'app/models/venue.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
|
Style/RegexpLiteral:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/SelfAssignment:
|
|
Exclude:
|
|
- 'app/models/event.rb'
|
|
- 'db/migrate/20141104131625_generate_username.rb'
|
|
- 'spec/support/save_feature_failures.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/SignalException:
|
|
Exclude:
|
|
- 'app/controllers/admin/base_controller.rb'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20140730104658_migrate_roles_for_cancancan.rb'
|
|
- 'db/migrate/20140820123503_assign_users_to_events.rb'
|
|
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
|
|
- 'db/migrate/20150929142405_change_postalcode_format_in_venues.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
Style/SingleLineMethods:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 20
|
|
# Cop supports --auto-correct.
|
|
Style/SingleSpaceBeforeFirstArg:
|
|
Exclude:
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'db/migrate/20121223110942_devise_create_users.rb'
|
|
- 'db/migrate/20130107114930_create_versions.rb'
|
|
- 'db/migrate/20140719160903_create_delayed_jobs.rb'
|
|
- 'spec/features/venues_spec.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/SpaceAroundEqualsInParameterDefault:
|
|
Enabled: false
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MultiSpaceAllowedForOperators.
|
|
Style/SpaceAroundOperators:
|
|
Exclude:
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/models/call_for_paper.rb'
|
|
- 'app/models/datatable.rb'
|
|
- 'db/migrate/20141128073306_migrate_data_remove_column_include_cfp_in_splash_add_column_include_cfp.rb'
|
|
|
|
# Offense count: 220
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
Style/SpaceBeforeBlockBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/SpaceBeforeSemicolon:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 28
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
Style/SpaceInsideBlockBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 15
|
|
# Cop supports --auto-correct.
|
|
Style/SpaceInsideBrackets:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/user.rb'
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/views/admin/events/index.html.haml_spec.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
|
Style/SpaceInsideHashLiteralBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 28
|
|
# Cop supports --auto-correct.
|
|
Style/Tab:
|
|
Exclude:
|
|
- 'db/migrate/20141031225545_add_require_handicapped_access_to_questions.rb'
|
|
- 'db/migrate/20141031225606_add_attending_with_partner_to_questions.rb'
|
|
- 'db/migrate/20141031225620_add_staying_at_suggested_hotel_to_questions.rb'
|
|
- 'db/migrate/20141031225635_add_attending_social_events_to_questions.rb'
|
|
- 'db/migrate/20141118162030_change_lodging_association_to_conference.rb'
|
|
- 'spec/features/campaign_spec.rb'
|
|
- 'spec/features/event_types_spec.rb'
|
|
- 'spec/models/cfp_spec.rb'
|
|
|
|
# Offense count: 26
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
|
Style/TrailingComma:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'app/models/target.rb'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: WordRegex.
|
|
Style/WordArray:
|
|
MinSize: 2
|