237 lines
6.7 KiB
YAML
237 lines
6.7 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2018-10-02 23:35:16 +0300 using RuboCop version 0.59.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: 104
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLineAfterGuardClause:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLines:
|
|
Exclude:
|
|
- 'app/models/buffer_update.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
Layout/EmptyLinesAroundBlockBody:
|
|
Exclude:
|
|
- 'config/routes.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
Layout/EmptyLinesAroundClassBody:
|
|
Exclude:
|
|
- 'app/models/buffer_update.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
Layout/ExtraSpacing:
|
|
Exclude:
|
|
- 'app/models/article.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: normal, rails
|
|
Layout/IndentationConsistency:
|
|
Exclude:
|
|
- 'app/observers/organization_observer.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/LeadingCommentSpace:
|
|
Exclude:
|
|
- 'app/controllers/stories_controller.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
Layout/MultilineMethodCallIndentation:
|
|
Exclude:
|
|
- 'app/models/follow.rb'
|
|
- 'app/models/message.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/MultilineOperationIndentation:
|
|
Exclude:
|
|
- 'app/models/message.rb'
|
|
- 'app/models/user.rb'
|
|
- 'app/services/membership_service.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/RescueEnsureAlignment:
|
|
Exclude:
|
|
- 'app/services/user_role_service.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
Exclude:
|
|
- 'app/models/buffer_update.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowInHeredoc.
|
|
Layout/TrailingWhitespace:
|
|
Exclude:
|
|
- 'app/mailers/notify_mailer.rb'
|
|
|
|
# Offense count: 4
|
|
Lint/IneffectiveAccessModifier:
|
|
Exclude:
|
|
- 'app/black_box/black_box.rb'
|
|
- 'app/models/tweet.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
|
Lint/UselessAccessModifier:
|
|
Exclude:
|
|
- 'app/black_box/black_box.rb'
|
|
- 'app/models/tweet.rb'
|
|
|
|
# Offense count: 7
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
# ExcludedMethods: refine
|
|
Metrics/BlockLength:
|
|
Max: 62
|
|
|
|
# Offense count: 13
|
|
Metrics/PerceivedComplexity:
|
|
Max: 13
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
|
Naming/UncommunicativeMethodParamName:
|
|
Exclude:
|
|
- 'app/models/message.rb'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: Max.
|
|
RSpec/ExampleLength:
|
|
Exclude:
|
|
- 'spec/models/buffer_update_spec.rb'
|
|
- 'spec/models/message_spec.rb'
|
|
- 'spec/requests/analytics_spec.rb'
|
|
- 'spec/requests/internal_buffer_updates_spec.rb'
|
|
|
|
# Offense count: 13
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: single_line_only, disallow
|
|
RSpec/ImplicitSubject:
|
|
Exclude:
|
|
- 'spec/models/feedback_message_spec.rb'
|
|
- 'spec/policies/comment_policy_spec.rb'
|
|
- 'spec/policies/organization_policy_spec.rb'
|
|
- 'spec/policies/user_policy_spec.rb'
|
|
- 'spec/requests/dashboard_spec.rb'
|
|
- 'spec/requests/registration_spec.rb'
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: AggregateFailuresByDefault.
|
|
RSpec/MultipleExpectations:
|
|
Max: 6
|
|
|
|
# Offense count: 2
|
|
RSpec/RepeatedDescription:
|
|
Exclude:
|
|
- 'spec/models/buffer_update_spec.rb'
|
|
|
|
# Offense count: 3
|
|
Security/Open:
|
|
Exclude:
|
|
- 'app/labor/podcast_feed.rb'
|
|
- 'app/labor/rss_reader.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
# SupportedStyles: nested, compact
|
|
Style/ClassAndModuleChildren:
|
|
Exclude:
|
|
- 'app/controllers/api/v0/api_controller.rb'
|
|
- 'app/controllers/internal/application_controller.rb'
|
|
- 'app/controllers/internal/articles_controller.rb'
|
|
- 'app/controllers/internal/broadcasts_controller.rb'
|
|
- 'app/controllers/internal/buffer_updates_controller.rb'
|
|
- 'app/controllers/internal/comments_controller.rb'
|
|
- 'app/controllers/internal/dogfood_controller.rb'
|
|
- 'app/controllers/internal/feedback_messages_controller.rb'
|
|
- 'app/controllers/internal/members_controller.rb'
|
|
- 'app/controllers/internal/tags_controller.rb'
|
|
- 'app/controllers/internal/users_controller.rb'
|
|
- 'app/controllers/internal/welcome_controller.rb'
|
|
- 'app/controllers/notifications/counts_controller.rb'
|
|
- 'app/controllers/notifications/reads_controller.rb'
|
|
|
|
# Offense count: 1
|
|
Style/EvalWithLocation:
|
|
Exclude:
|
|
- 'app/controllers/omniauth_callbacks_controller.rb'
|
|
|
|
# Offense count: 2
|
|
Style/MixinUsage:
|
|
Exclude:
|
|
- 'app/models/podcast_episode.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/MutableConstant:
|
|
Exclude:
|
|
- 'spec/support/omniauth_macros.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'app/controllers/stories_controller.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Exclude:
|
|
- 'app/models/buffer_update.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Exclude:
|
|
- 'spec/models/buffer_update_spec.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinSize.
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
Exclude:
|
|
- 'config/routes.rb'
|
|
|
|
# Offense count: 972
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 274
|