dblock/slack-gamebot

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-02-11 17:20:17 UTC using RuboCop version 1.30.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: 4
# Configuration parameters: IgnoredMethods.
Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'spec/api/endpoints/challenges_endpoint_spec.rb'
    - 'spec/api/endpoints/matches_endpoint_spec.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:
    - 'slack-gamebot.rb'

# Offense count: 6
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
  Exclude:
    - 'slack-gamebot/app.rb'
    - 'slack-gamebot/commands/help.rb'
    - 'slack-gamebot/info.rb'
    - 'slack-gamebot/models/team.rb'
    - 'slack-gamebot/server.rb'

# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'slack-gamebot/models/match.rb'

# Offense count: 17
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
  Exclude:
    - 'slack-gamebot/app.rb'
    - 'slack-gamebot/commands/set.rb'
    - 'slack-gamebot/models/team.rb'

# Offense count: 16
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
Naming/VariableNumber:
  Exclude:
    - 'spec/slack-gamebot/commands/leaderboard_spec.rb'
    - 'spec/slack-gamebot/commands/rank_spec.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CaseLikeIf:
  Exclude:
    - 'slack-gamebot/commands/draw.rb'
    - 'slack-gamebot/commands/lost.rb'
    - 'slack-gamebot/commands/resigned.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
  Exclude:
    - 'slack-gamebot/api/middleware.rb'
    - 'tasks/logger.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
Style/HashEachMethods:
  Exclude:
    - 'slack-gamebot/models/challenge.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/HashTransformKeys:
  Exclude:
    - 'slack-gamebot/api/helpers/error_helpers.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/HashTransformValues:
  Exclude:
    - 'slack-gamebot/api/helpers/error_helpers.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: 3
Style/MultilineBlockChain:
  Exclude:
    - 'spec/api/endpoints/credit_cards_endpoint_spec.rb'
    - 'spec/api/endpoints/subscriptions_endpoint_spec.rb'

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'spec/**/*'
    - 'slack-gamebot/app.rb'
    - 'slack-gamebot/commands/season.rb'
    - 'slack-gamebot/models/score.rb'
    - 'slack-gamebot/models/user.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'slack-gamebot/models/team.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
  Exclude:
    - 'slack-gamebot/api/helpers/sort_helpers.rb'
    - 'slack-gamebot/commands/leaderboard.rb'
    - 'slack-gamebot/commands/set.rb'

# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'slack-gamebot.rb'
    - 'slack-gamebot/api/helpers/error_helpers.rb'
    - 'slack-gamebot/commands/set.rb'
    - 'spec/fabricators/game_fabricator.rb'
    - 'tasks/db.rake'