# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-02-09 08:47:26 UTC using RuboCop version 1.50.2.
# 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
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequireMFA:
  Exclude:
    - 'puppetlabs_spec_helper.gemspec'

# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 60

# Offense count: 3
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
  Max: 33

# Offense count: 4
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
  Max: 19

# Offense count: 11
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
  Max: 65

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
  Max: 277

# Offense count: 3
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
  MaxOptionalParameters: 4
  Max: 7

# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
  Max: 22

# Offense count: 1
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
  Exclude:
    - '**/spec/features/**/*'
    - '**/spec/requests/**/*'
    - '**/spec/routing/**/*'
    - '**/spec/system/**/*'
    - '**/spec/views/**/*'
    - 'spec/acceptance/smoke_spec.rb'

# Offense count: 6
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 13

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

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

# Offense count: 7
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
  Max: 5

# Offense count: 5
RSpec/StubbedMock:
  Exclude:
    - 'spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb'
    - 'spec/unit/puppetlabs_spec_helper/tasks/fixture_helpers_spec.rb'

# Offense count: 2
Security/Eval:
  Exclude:
    - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'

# Offense count: 1
Style/CombinableLoops:
  Exclude:
    - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'

# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
  EnforcedStyle: unannotated

# Offense count: 4
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
  Exclude:
    - 'lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb'

# Offense count: 1
Style/MixinUsage:
  Exclude:
    - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'

# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments:
  Exclude:
    - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb'
    - 'spec/unit/puppetlabs_spec_helper/tasks/fixture_helpers_spec.rb'
