# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-08-24 14:41:33 UTC using RuboCop version 1.35.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
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
Layout/LeadingCommentSpace:
  Exclude:
    - 'lib/infopark_component_cache/key_generator.rb'

# Offense count: 1
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Exclude:
    - 'spec/dummy/db/schema.rb'

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

# Offense count: 3
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/MethodLength:
  Max: 20

# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'lib/infopark_component_cache/volatile_cache.rb'

# Offense count: 3
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 7

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

# Offense count: 4
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
  Max: 7

# Offense count: 1
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/lib/infopark_component_cache/component_cache_spec.rb'

# Offense count: 1
Style/ClassVars:
  Exclude:
    - 'lib/infopark_component_cache/volatile_cache_storage.rb'

# Offense count: 5
# Configuration parameters: AllowedConstants.
Style/Documentation:
  Exclude:
    - 'spec/**/*'
    - 'test/**/*'
    - 'app/helpers/infopark_component_cache_helper.rb'
    - 'lib/engine.rb'
    - 'lib/infopark_component_cache.rb'
    - 'lib/infopark_component_cache/delayed_guard.rb'
    - 'lib/infopark_component_cache/key_generator.rb'

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

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
  Exclude:
    - 'spec/dummy/config/application.rb'

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

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireEnglish, EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
Style/SpecialGlobalVars:
  Exclude:
    - 'infopark_component_cache.gemspec'
    - 'spec/dummy/config/boot.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'lib/infopark_component_cache/component.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
# AllowedMethods: respond_to, define_method
Style/SymbolProc:
  Exclude:
    - 'spec/lib/infopark_component_cache/guards/last_changed_spec.rb'
    - 'spec/lib/infopark_component_cache/guards/obj_count_spec.rb'
    - 'spec/lib/infopark_component_cache/guards/valid_from_spec.rb'
    - 'spec/lib/infopark_component_cache/guards/valid_until_spec.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
  Max: 171