# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-11-25 17:24:08 +0100 using RuboCop version 0.76.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: 230
Metrics/AbcSize:
  Max: 75

# Offense count: 13
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
  Max: 62

# Offense count: 1
Naming/ConstantName:
  Exclude:
    - 'config/initializers/redis_rails.rb'

# Offense count: 6
# Configuration parameters: Max.
RSpec/ExampleLength:
  Exclude:
    - 'spec/labor/badge_rewarder_spec.rb'
    - 'spec/models/comment_spec.rb'
    - 'spec/models/notification_spec.rb'
    - 'spec/requests/api/v0/articles_spec.rb'
    - 'spec/requests/display_ad_events_spec.rb'

# Offense count: 455
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
  Max: 8

# Offense count: 1
RSpec/SubjectStub:
  Exclude:
    - 'spec/models/article_spec.rb'

# Offense count: 1
# Configuration parameters: Include.
# Include: app/helpers/**/*.rb
Rails/HelperInstanceVariable:
  Exclude:
    - 'app/helpers/application_helper.rb'

# Offense count: 14
Rails/OutputSafety:
  Exclude:
    - 'app/helpers/application_helper.rb'
    - 'app/helpers/comments_helper.rb'
    - 'app/labor/markdown_parser.rb'
    - 'app/liquid_tags/github_tag/github_issue_tag.rb'
    - 'app/liquid_tags/liquid_tag_base.rb'
    - 'app/models/comment.rb'
    - 'app/models/display_ad.rb'
    - 'app/models/message.rb'
    - 'app/views/articles/_actions.html.erb'
    - 'app/views/articles/_sidebar.html.erb'
    - 'app/views/articles/feed.rss.builder'
    - 'app/views/articles/show.html.erb'
    - 'app/views/internal/feedback_messages/_feedback_message.html.erb'
    - 'app/views/layouts/_styles.html.erb'
    - 'app/views/liquid_embeds/show.html.erb'
    - 'app/views/pages/live.html.erb'
    - 'app/views/pages/onboarding.html.erb'
    - 'app/views/partnerships/index.html.erb'
    - 'app/views/partnerships/show.html.erb'
    - 'app/views/pro_memberships/show.html.erb'

# Offense count: 25
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Enabled: false

# Offense count: 2
# Configuration parameters: MinBodyLength.
Style/GuardClause:
  Exclude:
    - 'app/models/article.rb'

# Offense count: 3216
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
  Max: 380
  Exclude:
    - 'app/views/layouts/_styles.html.erb'
