# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-09-23 13:42:34 UTC using RuboCop version 1.36.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: 1
Fips/MD5:
  Exclude:
    - 'lib/danger/plugins/roulette.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
  Exclude:
    - 'gitlab-dangerfiles.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequireMFA:
  Exclude:
    - 'gitlab-dangerfiles.gemspec'

# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
  Exclude:
    - 'gitlab-dangerfiles.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: start_of_line, begin
Layout/BeginEndAlignment:
  Exclude:
    - 'lib/danger/plugins/roulette.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Layout/ElseAlignment:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/gitlab/dangerfiles/teammate.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/gitlab/dangerfiles/teammate.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/FirstArrayElementIndentation:
  Exclude:
    - 'spec/danger/plugins/roulette_spec.rb'
    - 'spec/gitlab/dangerfiles_spec.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
Layout/IndentationWidth:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/gitlab/dangerfiles/teammate.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/LineEndStringConcatenationIndentation:
  Exclude:
    - 'lib/gitlab/dangerfiles/commit_linter.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/gitlab/dangerfiles/commit_linter.rb'
    - 'lib/gitlab/dangerfiles/emoji_checker.rb'
    - 'lib/gitlab/dangerfiles/teammate.rb'
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/RescueEnsureAlignment:
  Exclude:
    - 'lib/danger/plugins/roulette.rb'

# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
Lint/AmbiguousOperatorPrecedence:
  Exclude:
    - 'lib/gitlab/dangerfiles/teammate.rb'
    - 'spec/gitlab/dangerfiles/base_linter_spec.rb'
    - 'spec/gitlab/dangerfiles/commit_linter_spec.rb'
    - 'spec/gitlab/dangerfiles/weightage/reviewers_spec.rb'
    - 'spec/gitlab/merge_request_linter_spec.rb'

# Offense count: 1
Lint/BinaryOperatorWithIdenticalOperands:
  Exclude:
    - 'spec/gitlab/dangerfiles/teammate_spec.rb'

# Offense count: 2
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
  Exclude:
    - 'lib/danger/plugins/roulette.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Lint/DuplicateRegexpCharacterClassElement:
  Exclude:
    - 'spec/danger/plugins/internal/helper_spec.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
Lint/IdentityComparison:
  Exclude:
    - 'spec/gitlab/dangerfiles/weightage/maintainers_spec.rb'
    - 'spec/gitlab/dangerfiles/weightage/reviewers_spec.rb'

# Offense count: 1
Lint/NonLocalExitFromIterator:
  Exclude:
    - 'lib/danger/rules/subtype_label/Dangerfile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
  Exclude:
    - 'lib/gitlab/dangerfiles/spec_helper.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/RedundantDirGlobSort:
  Exclude:
    - 'lib/gitlab/dangerfiles.rb'
    - 'spec/gitlab/dangerfiles_spec.rb'
    - 'spec/spec_helper.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 67

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/CyclomaticComplexity:
  Max: 31

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/PerceivedComplexity:
  Max: 26

# 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:
    - 'lib/gitlab-dangerfiles.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/roulette.rb'

# Offense count: 2
# Configuration parameters: MinSize.
Performance/CollectionLiteralInLoop:
  Exclude:
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 5
Performance/MethodObjectAsBlock:
  Exclude:
    - 'lib/danger/plugins/roulette.rb'
    - 'spec/spec_helper.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
RSpec/BeEq:
  Exclude:
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/gitlab/dangerfiles/changes_spec.rb'
    - 'spec/gitlab/dangerfiles/teammate_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: be, be_nil
RSpec/BeNil:
  Exclude:
    - 'spec/gitlab/dangerfiles/version_spec.rb'

# Offense count: 24
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
  Exclude:
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowConsecutiveOneLiners.
RSpec/EmptyLineAfterExample:
  Exclude:
    - 'spec/danger/plugins/internal/helper_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/EmptyLineAfterLetBlock:
  Exclude:
    - 'spec/danger/plugins/internal/helper_spec.rb'

# Offense count: 3
RSpec/ExpectInHook:
  Exclude:
    - 'spec/danger/plugins/internal/helper_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/HooksBeforeExamples:
  Exclude:
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 22
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_line_only, single_statement_only, disallow
RSpec/ImplicitSubject:
  Exclude:
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 27
# This cop supports safe autocorrection (--autocorrect).
RSpec/LetBeforeExamples:
  Exclude:
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 47
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
# SupportedStyles: inflected, explicit
RSpec/PredicateMatcher:
  Exclude:
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/gitlab/dangerfiles/teammate_spec.rb'

# Offense count: 2
RSpec/RepeatedExampleGroupDescription:
  Exclude:
    - 'spec/gitlab/dangerfiles/commit_linter_spec.rb'

# Offense count: 31
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/gitlab/dangerfiles/commit_linter_spec.rb'
    - 'spec/gitlab/dangerfiles/weightage/maintainers_spec.rb'
    - 'spec/gitlab/dangerfiles/weightage/reviewers_spec.rb'
    - 'spec/gitlab/dangerfiles_spec.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
  Exclude:
    - 'lib/danger/plugins/internal/helper.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
  Exclude:
    - 'gitlab-dangerfiles.gemspec'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
  Exclude:
    - 'lib/danger/rules/commit_messages/Dangerfile'
    - 'lib/danger/rules/z_retry_link/Dangerfile'
    - 'lib/gitlab/dangerfiles/config.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
  Exclude:
    - 'lib/danger/rules/simple_roulette/Dangerfile'
    - 'lib/gitlab/dangerfiles/base_linter.rb'

# Offense count: 16
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
  Enabled: false

# Offense count: 2
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
  Exclude:
    - 'lib/danger/rules/subtype_label/Dangerfile'
    - 'lib/danger/rules/type_label/Dangerfile'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/HashExcept:
  Exclude:
    - 'lib/gitlab/dangerfiles.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
Style/HashSyntax:
  Exclude:
    - 'Rakefile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowIfModifier.
Style/IfInsideElse:
  Exclude:
    - 'lib/danger/rules/commit_messages/Dangerfile'

# Offense count: 23
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/roulette.rb'
    - 'lib/danger/rules/commit_messages/Dangerfile'
    - 'lib/danger/rules/commits_counter/Dangerfile'
    - 'lib/danger/rules/simple_roulette/Dangerfile'
    - 'lib/danger/rules/z_retry_link/Dangerfile'
    - 'lib/gitlab/dangerfiles.rb'
    - 'lib/gitlab/dangerfiles/base_linter.rb'
    - 'lib/gitlab/dangerfiles/commit_linter.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
  Exclude:
    - 'lib/danger/rules/commit_messages/Dangerfile'
    - 'lib/danger/rules/simple_roulette/Dangerfile'
    - 'lib/gitlab/dangerfiles/version.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
  Exclude:
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'lib/danger/plugins/roulette.rb'
    - 'lib/gitlab/dangerfiles/teammate.rb'

# Offense count: 1
Style/OptionalArguments:
  Exclude:
    - 'lib/danger/rules/simple_roulette/Dangerfile'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Exclude:
    - 'Guardfile'
    - 'gitlab-dangerfiles.gemspec'
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/danger/rules/subtype_label/Dangerfile'
    - 'lib/gitlab/dangerfiles/tasks/main.rake'
    - 'spec/danger/plugins/internal/helper_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: .
# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
Style/QuotedSymbols:
  EnforcedStyle: double_quotes

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Methods.
Style/RedundantArgument:
  Exclude:
    - 'lib/gitlab/dangerfiles/base_linter.rb'

# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantFreeze:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/roulette.rb'
    - 'lib/gitlab/dangerfiles/commit_linter.rb'
    - 'lib/gitlab/dangerfiles/emoji_checker.rb'
    - 'lib/gitlab/dangerfiles/title_linting.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantInterpolation:
  Exclude:
    - 'lib/gitlab/dangerfiles/teammate.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
  Exclude:
    - 'lib/gitlab/dangerfiles/commit_linter.rb'
    - 'lib/gitlab/dangerfiles/emoji_checker.rb'
    - 'lib/gitlab/dangerfiles/title_linting.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantSelf:
  Exclude:
    - 'lib/danger/rules/commit_messages/Dangerfile'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
  Exclude:
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/gitlab/dangerfiles/emoji_checker.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RescueModifier:
  Exclude:
    - 'lib/gitlab/dangerfiles/commit_linter.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/danger/plugins/roulette.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
  Exclude:
    - 'lib/danger/rules/commit_messages/Dangerfile'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SelectByRegexp:
  Exclude:
    - 'lib/danger/plugins/internal/helper.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
  Exclude:
    - 'lib/danger/rules/subtype_label/Dangerfile'
    - 'lib/danger/rules/type_label/Dangerfile'

# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'spec/gitlab/dangerfiles/base_linter_spec.rb'
    - 'spec/gitlab/dangerfiles/commit_linter_spec.rb'
    - 'spec/gitlab/merge_request_linter_spec.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiteralsInInterpolation:
  Exclude:
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/danger/plugins/roulette.rb'
    - 'lib/danger/rules/commit_messages/Dangerfile'
    - 'spec/gitlab/dangerfiles/teammate_spec.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
# AllowedMethods: respond_to, define_method
Style/SymbolProc:
  Exclude:
    - 'lib/danger/rules/commit_messages/Dangerfile'
    - 'spec/gitlab/dangerfiles_spec.rb'

# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments:
  Exclude:
    - 'spec/danger/plugins/roulette_spec.rb'

# Offense count: 18
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/gitlab/dangerfiles/merge_request_linter.rb'
    - 'spec/danger/plugins/changelog_spec.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/danger/plugins/roulette_spec.rb'
    - 'spec/gitlab/dangerfiles/base_linter_spec.rb'
    - 'spec/gitlab/dangerfiles/commit_linter_spec.rb'
    - 'spec/gitlab/dangerfiles/title_linting_spec.rb'
    - 'spec/gitlab/dangerfiles/weightage/maintainers_spec.rb'
    - 'spec/gitlab/dangerfiles/weightage/reviewers_spec.rb'

# Offense count: 29
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
  Exclude:
    - 'lib/danger/plugins/changelog.rb'
    - 'lib/danger/plugins/internal/helper.rb'
    - 'lib/danger/plugins/roulette.rb'
    - 'lib/gitlab/dangerfiles/base_linter.rb'
    - 'lib/gitlab/dangerfiles/commit_linter.rb'
    - 'lib/gitlab/dangerfiles/spec_helper.rb'
    - 'lib/gitlab/dangerfiles/type_label_guesser.rb'
    - 'spec/danger/plugins/internal/helper_spec.rb'
    - 'spec/danger/plugins/roulette_spec.rb'
    - 'spec/gitlab/dangerfiles/config_spec.rb'
    - 'spec/gitlab/dangerfiles/teammate_spec.rb'
    - 'spec/gitlab/dangerfiles_spec.rb'