.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-10-31 16:40:34 UTC using RuboCop version 1.66.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: 2
# Configuration parameters: EnforcedStyle.
# SupportedStyles: link_or_button, strict
Capybara/ClickLinkOrButtonStyle:
Exclude:
- 'spec/integration/update_cc_spec.rb'
# Offense count: 3
Capybara/SpecificActions:
Exclude:
- 'spec/integration/subscribe_spec.rb'
- 'spec/integration/update_cc_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
Exclude:
- 'slack-sup/commands/mixins/pluralize.rb'
# Offense count: 1
Lint/NonLocalExitFromIterator:
Exclude:
- 'slack-sup/models/round.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods.
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
Lint/RedundantSafeNavigation:
Exclude:
- 'slack-sup/models/user.rb'
# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
# 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:
- 'Rakefile.rb'
- 'slack-sup.rb'
# Offense count: 2
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'slack-sup/commands/help.rb'
- 'slack-sup/info.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'slack-sup/models/team.rb'
# Offense count: 23
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'slack-sup/app.rb'
- 'slack-sup/commands/rounds.rb'
- 'slack-sup/commands/set.rb'
- 'slack-sup/models/sup.rb'
- 'slack-sup/models/team.rb'
# Offense count: 6
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'spec/api/endpoints/rounds_endpoint_spec.rb'
- 'spec/api/endpoints/sups_endpoint_spec.rb'
- 'spec/api/endpoints/users_endpoint_spec.rb'
# Offense count: 59
RSpec/AnyInstance:
Enabled: false
# Offense count: 157
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 46
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/models/round_spec.rb'
- 'spec/models/stats_spec.rb'
- 'spec/models/sup_spec.rb'
- 'spec/models/team_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/slack-sup/app_spec.rb'
- 'spec/slack-sup/server_spec.rb'
- 'spec/slack-sup/service_spec.rb'
# Offense count: 72
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 28
# Offense count: 5
RSpec/ExpectInHook:
Exclude:
- 'spec/api/endpoints/credit_cards_endpoint_spec.rb'
- 'spec/slack-sup/commands/set_spec.rb'
- 'spec/slack-sup/commands/subscription_spec.rb'
- 'spec/slack-sup/commands/unsubscribe_spec.rb'
# Offense count: 56
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
Exclude:
- 'spec/api/endpoints/rounds_endpoint_spec.rb'
- 'spec/api/endpoints/stats_endpoint_spec.rb'
- 'spec/api/endpoints/sups_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/api/endpoints/users_endpoint_spec.rb'
- 'spec/models/round_spec.rb'
- 'spec/models/stats_spec.rb'
- 'spec/models/sup_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/slack-sup/commands/rounds_spec.rb'
- 'spec/slack-sup/commands/stats_spec.rb'
# Offense count: 3
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/slack-sup/service_spec.rb'
- 'spec/support/api/endpoints/it_behaves_like_a_cursor_api.rb'
- 'spec/support/api/endpoints/it_behaves_like_a_team_token_api.rb'
# Offense count: 42
RSpec/LetSetup:
Exclude:
- 'spec/api/endpoints/stats_endpoint_spec.rb'
- 'spec/api/endpoints/status_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/models/round_spec.rb'
- 'spec/models/stats_spec.rb'
- 'spec/models/sup_spec.rb'
- 'spec/models/team_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/slack-sup/commands/help_spec.rb'
- 'spec/slack-sup/commands/rounds_spec.rb'
- 'spec/slack-sup/commands/stats_spec.rb'
- 'spec/slack-sup/commands/subscription_spec.rb'
- 'spec/slack-sup/commands/unsubscribe_spec.rb'
# Offense count: 43
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/integration/subscribe_spec.rb'
- 'spec/integration/teams_spec.rb'
- 'spec/integration/update_cc_spec.rb'
- 'spec/models/round_spec.rb'
- 'spec/models/sup_spec.rb'
- 'spec/slack-sup/app_spec.rb'
- 'spec/slack-sup/commands/demote_spec.rb'
- 'spec/slack-sup/commands/opt_spec.rb'
- 'spec/slack-sup/commands/promote_spec.rb'
- 'spec/slack-sup/commands/set_spec.rb'
- 'spec/slack-sup/commands/subscription_spec.rb'
- 'spec/slack-sup/commands/unsubscribe_spec.rb'
- 'spec/slack-sup/server_spec.rb'
# Offense count: 156
RSpec/MultipleExpectations:
Max: 10
# Offense count: 52
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 13
# Offense count: 13
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/api/documentation_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/slack-sup/app_spec.rb'
# Offense count: 72
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 6
# Offense count: 5
RSpec/RepeatedDescription:
Exclude:
- 'spec/slack-sup/app_spec.rb'
- 'spec/slack-sup/commands/set_spec.rb'
# Offense count: 21
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Enabled: false
# Offense count: 15
RSpec/StubbedMock:
Exclude:
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/integration/subscribe_spec.rb'
- 'spec/integration/update_cc_spec.rb'
- 'spec/models/round_spec.rb'
- 'spec/models/sup_spec.rb'
- 'spec/slack-sup/app_spec.rb'
- 'spec/slack-sup/commands/set_spec.rb'
- 'spec/slack-sup/commands/subscription_spec.rb'
- 'spec/slack-sup/commands/unsubscribe_spec.rb'
# Offense count: 10
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/models/team_spec.rb'
# Offense count: 2
RSpec/VoidExpect:
Exclude:
- 'spec/integration/homepage_spec.rb'
- 'spec/models/round_spec.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Exclude:
- 'slack-sup/api/middleware.rb'
- 'tasks/logger.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSplatArgument.
Style/HashConversion:
Exclude:
- 'slack-sup/models/round_stats.rb'
- 'slack-sup/models/stats.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/IdenticalConditionalBranches:
Exclude:
- 'slack-sup/commands/set.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
Exclude:
- 'spec/support/api/endpoints/it_behaves_like_a_cursor_api.rb'
# Offense count: 1
Style/MixinUsage:
Exclude:
- 'samples/round_info/round_info.rb'
# Offense count: 4
Style/MultilineBlockChain:
Exclude:
- 'spec/api/endpoints/credit_cards_endpoint_spec.rb'
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'
- 'spec/api/endpoints/sups_endpoint_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineTernaryOperator:
Exclude:
- 'slack-sup/api/endpoints/teams_endpoint.rb'
# Offense count: 22
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineWhenThen:
Exclude:
- 'slack-sup/commands/opt.rb'
- 'slack-sup/commands/set.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/NestedTernaryOperator:
Exclude:
- 'slack-sup/models/team.rb'
# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'slack-sup/commands/rounds.rb'
- 'slack-sup/commands/stats.rb'
- 'slack-sup/models/round.rb'
# Offense count: 3
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'slack-sup/commands/set.rb'
- 'slack-sup/models/team.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Methods.
Style/RedundantArgument:
Exclude:
- 'slack-sup/commands/set.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'slack-sup/models/sup.rb'
- 'slack-sup/models/team.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
Exclude:
- 'slack-sup/api/helpers/sort_helpers.rb'
# Offense count: 14
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'config/initializers/distance_of_time_in_words.rb'
- 'slack-sup.rb'
- 'slack-sup/api/helpers/error_helpers.rb'
- 'slack-sup/app.rb'
- 'slack-sup/commands/rounds.rb'
- 'slack-sup/models/mixins/export.rb'
- 'slack-sup/models/team.rb'