dblock/slack-ruby-client

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-10-02 05:05:29 UTC using RuboCop version 1.26.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: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'lib/tasks/real_time.rake'

# Offense count: 1
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Exclude:
    - 'spec/support/real_time/concurrency/mock.rb'

# Offense count: 1
# Configuration parameters: AllowComments.
Lint/EmptyClass:
  Exclude:
    - 'spec/support/real_time/concurrency/mock.rb'

# Offense count: 2
Lint/MissingSuper:
  Exclude:
    - 'lib/slack/real_time/stores/starter.rb'
    - 'lib/slack/real_time/stores/store.rb'

# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
Lint/NonDeterministicRequireOrder:
  Exclude:
    - 'spec/spec_helper.rb'

# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
Lint/RedundantCopDisableDirective:
  Exclude:
    - 'lib/slack-ruby-client.rb'

# Offense count: 12
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 48

# Offense count: 4
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
  Max: 14

# Offense count: 12
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
  Max: 32

# Offense count: 1
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
  Max: 6

# Offense count: 2
# Configuration parameters: IgnoredMethods.
Metrics/PerceivedComplexity:
  Max: 16

# Offense count: 1
# Configuration parameters: MinSize.
Performance/CollectionLiteralInLoop:
  Exclude:
    - 'lib/tasks/real_time.rake'

# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
Performance/RegexpMatch:
  Exclude:
    - 'lib/tasks/web.rake'

# Offense count: 3
# This cop supports safe auto-correction (--auto-correct).
Performance/StringInclude:
  Exclude:
    - 'lib/tasks/web.rake'

# Offense count: 3
# This cop supports safe auto-correction (--auto-correct).
RSpec/ContextMethod:
  Exclude:
    - 'spec/slack/messages/formatting_spec.rb'
    - 'spec/slack/web/api/mixins/users_spec.rb'

# Offense count: 74
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
  Enabled: false

# Offense count: 63
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 18

# Offense count: 17
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
  Enabled: false

# Offense count: 63
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
  EnforcedStyle: receive

# Offense count: 92
RSpec/MultipleExpectations:
  Max: 5

# Offense count: 5
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
  Max: 9

# Offense count: 3
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
  Exclude:
    - 'spec/slack/web/api/mixins/conversations_list_spec.rb'

# Offense count: 44
RSpec/NestedGroups:
  Max: 6

# Offense count: 5
RSpec/StubbedMock:
  Exclude:
    - 'spec/slack/real_time/client_spec.rb'
    - 'spec/slack/real_time/event_handlers/event_handlers_spec.rb'
    - 'spec/slack/web/api/pagination/cursor_spec.rb'
    - 'spec/slack/web/client_spec.rb'

# Offense count: 2
RSpec/SubjectStub:
  Exclude:
    - 'spec/slack/web/api/mixins/conversations_spec.rb'
    - 'spec/slack/web/api/mixins/users_spec.rb'

# Offense count: 4
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: .
# SupportedStyles: constant, string
RSpec/VerifiedDoubleReference:
  EnforcedStyle: string

# Offense count: 10
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/slack/events/request_spec.rb'
    - 'spec/slack/real_time/client_spec.rb'
    - 'spec/slack/web/faraday/response/raise_error_spec.rb'
    - 'spec/support/real_time/connected_client.rb'

# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
Rake/Desc:
  Exclude:
    - 'lib/tasks/git.rake'

# Offense count: 4
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
  EnforcedStyle: unannotated

# Offense count: 6
# This cop supports safe auto-correction (--auto-correct).
Style/GlobalStdStream:
  Exclude:
    - 'lib/slack/logger.rb'
    - 'lib/tasks/real_time.rake'
    - 'spec/integration/integration_spec.rb'
    - 'spec/slack/web/client_spec.rb'

# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
Style/MultilineTernaryOperator:
  Exclude:
    - 'spec/support/vcr.rb'

# Offense count: 3
Style/OpenStructUse:
  Exclude:
    - 'spec/slack/web/api/endpoints/custom_specs/chat_spec.rb'
    - 'spec/slack/web/api/pagination/cursor_spec.rb'
    - 'spec/slack/web/faraday/response/raise_error_spec.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'spec/support/queue_with_timeout.rb'

# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
Style/SlicingWithRange:
  Exclude:
    - 'lib/slack/web/api/mixins/ids.id.rb'

# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'lib/tasks/real_time.rake'