mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
717 lines
21 KiB
YAML
717 lines
21 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2017-07-14 12:03:16 +0000 using RuboCop version 0.49.1.
|
|
# 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: 15
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
# Include: **/Gemfile, **/gems.rb
|
|
Bundler/OrderedGems:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
|
Layout/AlignParameters:
|
|
Exclude:
|
|
- 'Vagrantfile'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
Layout/ClosingParenthesisIndentation:
|
|
Exclude:
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'spec/support/omniauth_macros.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
Layout/CommentIndentation:
|
|
Exclude:
|
|
- 'app/controllers/admin/comments_controller.rb'
|
|
- 'app/controllers/admin/difficulty_levels_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/program.rb'
|
|
- 'app/models/track.rb'
|
|
- 'spec/features/volunteers_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLineAfterMagicComment:
|
|
Exclude:
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 104
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
Layout/EmptyLinesAroundBlockBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
Exclude:
|
|
- 'app/models/payment.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
Layout/ExtraSpacing:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'config.ru'
|
|
- '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: 42
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
Layout/FirstParameterIndentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
Layout/IndentArray:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IndentationWidth.
|
|
Layout/IndentAssignment:
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/models/conference.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
Layout/IndentHash:
|
|
Exclude:
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: normal, rails
|
|
Layout/IndentationConsistency:
|
|
Exclude:
|
|
- 'app/controllers/users_controller.rb'
|
|
- 'app/models/event.rb'
|
|
- 'spec/controllers/subscriptions_controller_spec.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Layout/LeadingCommentSpace:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'app/models/comment.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineArrayBraceLayout:
|
|
Exclude:
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Layout/MultilineBlockLayout:
|
|
Exclude:
|
|
- 'app/serializers/conference_serializer.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineHashBraceLayout:
|
|
Exclude:
|
|
- 'app/serializers/conference_serializer.rb'
|
|
- 'spec/models/event_spec.rb'
|
|
|
|
# Offense count: 40
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineMethodCallBraceLayout:
|
|
Enabled: false
|
|
|
|
# Offense count: 55
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
Layout/MultilineMethodCallIndentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/MultilineOperationIndentation:
|
|
Exclude:
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/controllers/application_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/event.rb'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterComma:
|
|
Exclude:
|
|
- 'lib/tasks/data_demo.rake'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/models/event.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment.
|
|
Layout/SpaceAroundOperators:
|
|
Exclude:
|
|
- 'lib/tasks/data.rake'
|
|
|
|
# Offense count: 416
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceBeforeBlockBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeComma:
|
|
Exclude:
|
|
- 'lib/tasks/data_demo.rake'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment.
|
|
Layout/SpaceBeforeFirstArg:
|
|
Exclude:
|
|
- 'spec/controllers/admin/roles_controller_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeSemicolon:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 51
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
|
|
# SupportedStyles: space, no_space
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideBlockBraces:
|
|
Exclude:
|
|
- 'app/controllers/admin/comments_controller.rb'
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/controllers/admin/questions_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/program.rb'
|
|
- 'app/models/ticket.rb'
|
|
- 'app/models/user.rb'
|
|
- 'lib/tasks/events_registrations.rake'
|
|
- 'spec/controllers/admin/event_schedules_controller_spec.rb'
|
|
- 'spec/controllers/admin/schedules_controller_spec.rb'
|
|
- 'spec/features/splashpage_spec.rb'
|
|
- 'spec/models/ability_spec.rb'
|
|
- 'spec/models/user_spec.rb'
|
|
|
|
# Offense count: 19
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
|
# SupportedStyles: space, no_space, compact
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
Exclude:
|
|
- 'app/controllers/admin/conferences_controller.rb'
|
|
- 'app/controllers/api/v1/speakers_controller.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/event_type.rb'
|
|
- 'app/models/user.rb'
|
|
- 'spec/models/event_spec.rb'
|
|
- 'spec/models/payment_spec.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: final_newline, final_blank_line
|
|
Layout/TrailingBlankLines:
|
|
Exclude:
|
|
- 'lib/tasks/event_attatchments.rake'
|
|
- 'lib/tasks/roles.rake'
|
|
|
|
# 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: 2
|
|
Lint/ScriptPermission:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'Rakefile'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
Lint/UnusedBlockArgument:
|
|
Exclude:
|
|
- 'lib/tasks/user.rake'
|
|
|
|
# Offense count: 114
|
|
Metrics/AbcSize:
|
|
Max: 86
|
|
|
|
# Offense count: 233
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/BlockLength:
|
|
Max: 471
|
|
|
|
# Offense count: 23
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 12
|
|
Exclude:
|
|
- 'app/models/track.rb'
|
|
|
|
# Offense count: 2353
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 619
|
|
|
|
# Offense count: 120
|
|
# Configuration parameters: CountComments.
|
|
Metrics/MethodLength:
|
|
Max: 56
|
|
Exclude:
|
|
- 'app/models/admin_ability.rb'
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ModuleLength:
|
|
Max: 159
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
|
|
# Offense count: 15
|
|
Metrics/PerceivedComplexity:
|
|
Max: 16
|
|
Exclude:
|
|
- 'app/models/track.rb'
|
|
|
|
# Offense count: 20
|
|
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: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: is_a?, kind_of?
|
|
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:
|
|
Exclude:
|
|
- 'app/models/commercial.rb'
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
Style/ConditionalAssignment:
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'db/migrate/20140610165551_migrate_data_person_to_user.rb'
|
|
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
|
|
|
|
# Offense count: 464
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/EmptyCaseCondition:
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/helpers/versions_helper.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/EmptyLiteral:
|
|
Exclude:
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: compact, expanded
|
|
Style/EmptyMethod:
|
|
Exclude:
|
|
- 'app/controllers/admin/lodgings_controller.rb'
|
|
- 'app/controllers/admin/registration_periods_controller.rb'
|
|
- 'app/controllers/users_controller.rb'
|
|
- 'db/migrate/20121223115125_create_tracks_table.rb'
|
|
- 'db/migrate/20121223115135_create_events_table.rb'
|
|
- 'db/migrate/20130103134212_create_registrations_table.rb'
|
|
- 'db/migrate/20130206192339_rename_attending_social_events_with_partner.rb'
|
|
- 'db/migrate/20130216122155_set_registration_defaults_to_false.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
|
|
Style/FileName:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'Vagrantfile'
|
|
|
|
# Offense count: 24
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
Style/HashSyntax:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'lib/tasks/user.rake'
|
|
|
|
# Offense count: 22
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MaxLineLength.
|
|
Style/IfUnlessModifier:
|
|
Exclude:
|
|
- 'app/controllers/admin/booths_controller.rb'
|
|
- 'app/controllers/admin/events_controller.rb'
|
|
- 'app/controllers/api/v1/events_controller.rb'
|
|
- 'app/controllers/conference_registrations_controller.rb'
|
|
- 'app/controllers/users/omniauth_callbacks_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/commercial.rb'
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/email_settings.rb'
|
|
- 'app/models/ticket_purchase.rb'
|
|
- 'app/models/user.rb'
|
|
- 'db/migrate/20151031092713_change_conference_id_to_venue_id_in_rooms.rb'
|
|
- 'lib/tasks/events_registrations.rake'
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/support/flash.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: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
Style/MethodDefParentheses:
|
|
Exclude:
|
|
- 'app/models/conference.rb'
|
|
- 'app/models/user.rb'
|
|
- 'lib/tasks/demo_data_for_development.rake'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
Style/MultilineIfModifier:
|
|
Exclude:
|
|
- 'app/controllers/conferences_controller.rb'
|
|
- 'app/controllers/schedules_controller.rb'
|
|
- 'app/models/cfp.rb'
|
|
- 'app/models/event.rb'
|
|
- 'app/models/registration_period.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/MutableConstant:
|
|
Exclude:
|
|
- 'app/models/event_user.rb'
|
|
- 'lib/tasks/migrate_config.rake'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Style/NestedParenthesizedCalls:
|
|
Exclude:
|
|
- 'spec/features/conference_spec.rb'
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 26
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
Style/Next:
|
|
Enabled: false
|
|
|
|
# Offense count: 117
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedOctalStyle, SupportedOctalStyles.
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
Style/NumericLiteralPrefix:
|
|
Exclude:
|
|
- '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/models/registration_spec.rb'
|
|
- 'spec/serializers/conference_serializer_spec.rb'
|
|
- 'spec/serializers/event_serializer_spec.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Strict.
|
|
Style/NumericLiterals:
|
|
MinDigits: 15
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'app/controllers/admin/conferences_controller.rb'
|
|
- 'app/helpers/date_time_helper.rb'
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/models/user.rb'
|
|
|
|
# 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/format_helper.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
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/uploaders/picture_uploader.rb'
|
|
- 'spec/models/program_spec.rb'
|
|
- 'app/models/track.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
|
# NamePrefix: is_, has_, have_
|
|
# NamePrefixBlacklist: is_, has_, have_
|
|
# NameWhitelist: is_a?
|
|
Style/PredicateName:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'app/models/comment.rb'
|
|
- 'app/models/contact.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: short, verbose
|
|
Style/PreferredHashMethods:
|
|
Exclude:
|
|
- 'lib/tasks/migrate_config.rake'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: SupportedStyles.
|
|
# SupportedStyles: compact, exploded
|
|
Style/RaiseArgs:
|
|
EnforcedStyle: compact
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantParentheses:
|
|
Exclude:
|
|
- 'app/controllers/admin/base_controller.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
Style/RedundantReturn:
|
|
Exclude:
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'app/helpers/paths_helper.rb'
|
|
- 'app/helpers/users_helper.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
|
# SupportedStyles: slashes, percent_r, mixed
|
|
Style/RegexpLiteral:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
Style/SignalException:
|
|
Exclude:
|
|
- 'lib/tasks/user.rake'
|
|
- 'spec/support/flash.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
Style/SingleLineMethods:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'Vagrantfile'
|
|
- 'lib/tasks/dump_db.rake'
|
|
- 'lib/tasks/events_registrations.rake'
|
|
- 'lib/tasks/factory_girl.rake'
|
|
- 'lib/tasks/user.rake'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiteralsInInterpolation:
|
|
Exclude:
|
|
- 'lib/tasks/dump_db.rake'
|
|
|
|
# Offense count: 73
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinSize, SupportedStyles.
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: respond_to, define_method
|
|
Style/SymbolProc:
|
|
Exclude:
|
|
- 'app/controllers/admin/comments_controller.rb'
|
|
- 'app/controllers/admin/questions_controller.rb'
|
|
- 'app/helpers/application_helper.rb'
|
|
- 'app/models/ability.rb'
|
|
- 'app/models/admin_ability.rb'
|
|
- 'db/migrate/20140730104658_migrate_roles_for_cancancan.rb'
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
- 'spec/support/flash.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
Style/TernaryParentheses:
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInLiteral:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
|
- 'spec/models/conference_spec.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/UnneededInterpolation:
|
|
Exclude:
|
|
- 'app/helpers/format_helper.rb'
|
|
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
Style/VariableNumber:
|
|
Exclude:
|
|
- 'spec/models/ticket_purchase_spec.rb'
|