449 lines
14 KiB
YAML
449 lines
14 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2018-04-04 10:16:39 -0700 using RuboCop version 0.54.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: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
# SupportedColonStyles: key, separator, table
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
Layout/AlignHash:
|
|
Exclude:
|
|
- 'app/models/user.rb'
|
|
- 'spec/mailers/mailbot_spec.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
|
Layout/AlignParameters:
|
|
Exclude:
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/controllers/admin/registration_periods_controller_spec.rb'
|
|
- 'spec/models/email_settings_spec.rb'
|
|
|
|
# Offense count: 13
|
|
Lint/AmbiguousBlockAssociation:
|
|
Exclude:
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/controllers/admin/event_schedules_controller_spec.rb'
|
|
- 'spec/controllers/admin/registration_periods_controller_spec.rb'
|
|
- 'spec/controllers/admin/users_controller_spec.rb'
|
|
- 'spec/controllers/proposals_controller_spec.rb'
|
|
- 'spec/controllers/schedules_controller_spec.rb'
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
# 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: 4
|
|
Lint/IneffectiveAccessModifier:
|
|
Exclude:
|
|
- 'app/models/commercial.rb'
|
|
- 'app/models/conference.rb'
|
|
|
|
# Offense count: 140
|
|
Metrics/AbcSize:
|
|
Max: 94
|
|
|
|
# Offense count: 310
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/BlockLength:
|
|
Max: 1420
|
|
|
|
# Offense count: 32
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 14
|
|
|
|
# Offense count: 136
|
|
# Configuration parameters: CountComments.
|
|
Metrics/MethodLength:
|
|
Max: 60
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ModuleLength:
|
|
Max: 180
|
|
|
|
# Offense count: 22
|
|
Metrics/PerceivedComplexity:
|
|
Max: 16
|
|
|
|
# Offense count: 18
|
|
Naming/AccessorMethodName:
|
|
Exclude:
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/models/campaign.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/target.rb'
|
|
- 'app/models/user.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
Naming/FileName:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'Vagrantfile'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: Blacklist.
|
|
# Blacklist: END, (?-mix:EO[A-Z]{1})
|
|
Naming/HeredocDelimiterNaming:
|
|
Exclude:
|
|
- 'spec/factories/users.rb'
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
|
# NamePrefix: is_, has_, have_
|
|
# NamePrefixBlacklist: is_, has_, have_
|
|
# NameWhitelist: is_a?
|
|
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
Naming/PredicateName:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'app/models/comment.rb'
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
# AllowedNames: io, id, to
|
|
Naming/UncommunicativeMethodParamName:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
Naming/VariableNumber:
|
|
Exclude:
|
|
- 'spec/models/ticket_purchase_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, Include.
|
|
# SupportedStyles: action, filter
|
|
# Include: app/controllers/**/*.rb
|
|
Rails/ActionFilter:
|
|
Exclude:
|
|
- 'app/controllers/users/omniauth_callbacks_controller.rb'
|
|
|
|
# Offense count: 103
|
|
# Cop supports --auto-correct.
|
|
Rails/ActiveRecordAliases:
|
|
Enabled: false
|
|
|
|
# Offense count: 124
|
|
# Cop supports --auto-correct.
|
|
Rails/ApplicationRecord:
|
|
Enabled: false
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
|
|
Rails/Blank:
|
|
Exclude:
|
|
- 'app/controllers/conferences_controller.rb'
|
|
- 'app/controllers/users/omniauth_callbacks_controller.rb'
|
|
- 'app/models/program.rb'
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20160309182655_remove_dietary_choices_table.rb'
|
|
- 'spec/factories/event_schedule.rb'
|
|
|
|
# Offense count: 19
|
|
# Configuration parameters: Include.
|
|
# Include: db/migrate/*.rb
|
|
Rails/CreateTableWithTimestamps:
|
|
Enabled: false
|
|
|
|
# Offense count: 126
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: strict, flexible
|
|
Rails/Date:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforceForPrefixed.
|
|
Rails/Delegate:
|
|
Exclude:
|
|
- 'app/models/event.rb'
|
|
- 'app/models/room.rb'
|
|
- 'app/models/track.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Whitelist.
|
|
# Whitelist: find_by_sql
|
|
Rails/DynamicFindBy:
|
|
Exclude:
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
|
|
# Offense count: 5
|
|
Rails/FilePath:
|
|
Exclude:
|
|
- 'app/pdfs/ticket_pdf.rb'
|
|
- 'spec/features/lodgings_spec.rb'
|
|
- 'spec/features/sponsor_spec.rb'
|
|
- 'spec/spec_helper.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/FindBy:
|
|
Exclude:
|
|
- 'app/models/event.rb'
|
|
- 'app/models/openid.rb'
|
|
- 'app/models/ticket_purchase.rb'
|
|
- 'app/models/user.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/HasAndBelongsToMany:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/qanswer.rb'
|
|
- 'app/models/question.rb'
|
|
- 'app/models/registration.rb'
|
|
- 'app/models/vchoice.rb'
|
|
|
|
# Offense count: 18
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/HasManyOrHasOneDependent:
|
|
Exclude:
|
|
- 'app/models/answer.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/payment.rb'
|
|
- 'app/models/physical_ticket.rb'
|
|
- 'app/models/question_type.rb'
|
|
- 'app/models/registration.rb'
|
|
- 'app/models/role.rb'
|
|
- 'app/models/room.rb'
|
|
- 'app/models/sponsorship_level.rb'
|
|
- 'app/models/ticket_purchase.rb'
|
|
- 'app/models/track.rb'
|
|
- 'app/models/user.rb'
|
|
- 'app/models/vday.rb'
|
|
- 'app/models/visit.rb'
|
|
- 'app/models/vposition.rb'
|
|
|
|
# Offense count: 254
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include.
|
|
# Include: spec/**/*, test/**/*
|
|
Rails/HttpPositionalArguments:
|
|
Enabled: false
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: numeric, symbolic
|
|
Rails/HttpStatus:
|
|
Exclude:
|
|
- 'app/controllers/admin/commercials_controller.rb'
|
|
- 'app/controllers/admin/event_schedules_controller.rb'
|
|
- 'app/controllers/admin/programs_controller.rb'
|
|
- 'app/controllers/admin/tracks_controller.rb'
|
|
- 'app/controllers/admin/venue_commercials_controller.rb'
|
|
- 'app/controllers/commercials_controller.rb'
|
|
|
|
# Offense count: 14
|
|
# Configuration parameters: Include.
|
|
# Include: app/models/**/*.rb
|
|
Rails/InverseOf:
|
|
Exclude:
|
|
- 'app/models/booth.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/program.rb'
|
|
- 'app/models/track.rb'
|
|
- 'app/models/user.rb'
|
|
- 'app/models/venue.rb'
|
|
- 'app/models/visit.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: Include.
|
|
# Include: app/controllers/**/*.rb
|
|
Rails/LexicallyScopedActionFilter:
|
|
Exclude:
|
|
- 'app/controllers/registrations_controller.rb'
|
|
|
|
# Offense count: 4
|
|
Rails/OutputSafety:
|
|
Exclude:
|
|
- 'app/helpers/events_helper.rb'
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/models/commercial.rb'
|
|
|
|
# Offense count: 15
|
|
# Cop supports --auto-correct.
|
|
Rails/PluralizationGrammar:
|
|
Exclude:
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Rails/Presence:
|
|
Exclude:
|
|
- 'app/controllers/schedules_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
|
Rails/Present:
|
|
Exclude:
|
|
- 'app/helpers/users_helper.rb'
|
|
- 'app/models/campaign.rb'
|
|
- 'app/models/cfp.rb'
|
|
- 'app/models/email_settings.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/program.rb'
|
|
- 'app/models/venue.rb'
|
|
- 'db/migrate/20141104131625_generate_username.rb'
|
|
|
|
# Offense count: 52
|
|
# Configuration parameters: Include.
|
|
# Include: db/migrate/*.rb
|
|
Rails/ReversibleMigration:
|
|
Exclude:
|
|
- 'db/migrate/20140530082708_remove_color_defaults.rb'
|
|
- 'db/migrate/20140605125153_update_event_states.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/20140623150541_drop_person_and_event_person_tables.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/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/20140930092923_move_sponsor_email_to_contact.rb'
|
|
- 'db/migrate/20141117222919_drop_splash_descriptions_and_photo.rb'
|
|
- 'db/migrate/20141130182139_drop_table_event_attachments.rb'
|
|
|
|
# Offense count: 8
|
|
# Configuration parameters: Blacklist.
|
|
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
|
|
Rails/SkipsModelValidations:
|
|
Exclude:
|
|
- 'app/models/concerns/revision_count.rb'
|
|
- 'db/migrate/20140730104658_migrate_roles_for_cancancan.rb'
|
|
- 'db/migrate/20161229080315_add_comments_count_to_events.rb'
|
|
- 'db/migrate/20180226032958_add_created_at_and_updated_at_to_event_types.rb'
|
|
- 'db/migrate/20180313012253_add_timestamps_to_tickets.rb'
|
|
- 'lib/tasks/user.rake'
|
|
- 'spec/controllers/conferences_controller_spec.rb'
|
|
|
|
# Offense count: 50
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: strict, flexible
|
|
Rails/TimeZone:
|
|
Exclude:
|
|
- 'app/models/comment.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'db/migrate/20180226032958_add_created_at_and_updated_at_to_event_types.rb'
|
|
- 'db/migrate/20180313012253_add_timestamps_to_tickets.rb'
|
|
- 'lib/tasks/dump_db.rake'
|
|
- 'spec/controllers/admin/comments_controller_spec.rb'
|
|
- 'spec/controllers/admin/programs_controller_spec.rb'
|
|
- 'spec/factories/users.rb'
|
|
- 'spec/models/campaign_spec.rb'
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 2
|
|
Security/Open:
|
|
Exclude:
|
|
- 'app/pdfs/ticket_pdf.rb'
|
|
|
|
# Offense count: 1
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'spec/support/kneet_connections.rb'
|
|
|
|
# Offense count: 11
|
|
Style/DateTime:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/program.rb'
|
|
- 'spec/models/conference_spec.rb'
|
|
- 'spec/models/program_spec.rb'
|
|
|
|
# Offense count: 495
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 20
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Exclude:
|
|
- 'app/controllers/admin/organizations_controller.rb'
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'app/controllers/conferences_controller.rb'
|
|
- 'app/controllers/registrations_controller.rb'
|
|
- 'app/controllers/schedules_controller.rb'
|
|
- 'app/helpers/events_helper.rb'
|
|
- 'app/models/ability.rb'
|
|
- 'app/models/cfp.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/registration.rb'
|
|
- 'app/models/registration_period.rb'
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
|
|
- 'lib/tasks/data.rake'
|
|
|
|
# Offense count: 37
|
|
# Cop supports --auto-correct.
|
|
Style/IfUnlessModifier:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
Style/MixinUsage:
|
|
Exclude:
|
|
- 'spec/spec_helper.rb'
|
|
|
|
# Offense count: 41
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'app/controllers/admin/conferences_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/helpers/date_time_helper.rb'
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/models/cfp.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/program.rb'
|
|
- 'app/models/registration.rb'
|
|
- 'app/models/ticket_purchase.rb'
|
|
- 'app/models/user.rb'
|
|
- 'lib/tasks/events_registrations.rake'
|
|
|
|
# Offense count: 3
|
|
Style/OptionalArguments:
|
|
Exclude:
|
|
- 'app/models/event.rb'
|
|
|
|
# Offense count: 2835
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 619
|