---
+inherit_from: .rubocop_todo.yml
+
require:
- rubocop-performance
- rubocop-rspec
AllCops:
+ NewCops: enable
DisplayCopNames: true
- TargetRubyVersion: '2.5'
+ ExtraDetails: true
+ DisplayStyleGuide: true
+ TargetRubyVersion: '2.7'
Include:
- "**/*.rb"
Exclude:
- spec/**/*
Style/WordArray:
EnforcedStyle: brackets
-Performance/AncestorsInclude:
- Enabled: true
-Performance/BigDecimalWithNumericArgument:
- Enabled: true
-Performance/BlockGivenWithExplicitBlock:
- Enabled: true
-Performance/CaseWhenSplat:
- Enabled: true
-Performance/ConstantRegexp:
- Enabled: true
-Performance/MethodObjectAsBlock:
- Enabled: true
-Performance/RedundantSortBlock:
- Enabled: true
-Performance/RedundantStringChars:
- Enabled: true
-Performance/ReverseFirst:
- Enabled: true
-Performance/SortReverse:
- Enabled: true
-Performance/Squeeze:
- Enabled: true
-Performance/StringInclude:
- Enabled: true
-Performance/Sum:
- Enabled: true
-Style/CollectionMethods:
- Enabled: true
-Style/MethodCalledOnDoEndBlock:
- Enabled: true
-Style/StringMethods:
- Enabled: true
-Bundler/InsecureProtocolSource:
- Enabled: false
-Gemspec/DuplicatedAssignment:
- Enabled: false
-Gemspec/OrderedDependencies:
- Enabled: false
-Gemspec/RequiredRubyVersion:
- Enabled: false
-Gemspec/RubyVersionGlobalsUsage:
- Enabled: false
-Layout/ArgumentAlignment:
- Enabled: false
-Layout/BeginEndAlignment:
- Enabled: false
-Layout/ClosingHeredocIndentation:
- Enabled: false
-Layout/EmptyComment:
- Enabled: false
-Layout/EmptyLineAfterGuardClause:
- Enabled: false
-Layout/EmptyLinesAroundArguments:
- Enabled: false
-Layout/EmptyLinesAroundAttributeAccessor:
- Enabled: false
-Layout/EndOfLine:
- Enabled: false
-Layout/FirstArgumentIndentation:
- Enabled: false
-Layout/HashAlignment:
- Enabled: false
-Layout/HeredocIndentation:
- Enabled: false
-Layout/LeadingEmptyLines:
- Enabled: false
-Layout/SpaceAroundMethodCallOperator:
- Enabled: false
-Layout/SpaceInsideArrayLiteralBrackets:
- Enabled: false
-Layout/SpaceInsideReferenceBrackets:
- Enabled: false
-Lint/BigDecimalNew:
- Enabled: false
-Lint/BooleanSymbol:
- Enabled: false
-Lint/ConstantDefinitionInBlock:
- Enabled: false
-Lint/DeprecatedOpenSSLConstant:
- Enabled: false
-Lint/DisjunctiveAssignmentInConstructor:
- Enabled: false
-Lint/DuplicateElsifCondition:
- Enabled: false
-Lint/DuplicateRequire:
- Enabled: false
-Lint/DuplicateRescueException:
- Enabled: false
-Lint/EmptyConditionalBody:
- Enabled: false
-Lint/EmptyFile:
- Enabled: false
-Lint/ErbNewArguments:
- Enabled: false
-Lint/FloatComparison:
- Enabled: false
-Lint/HashCompareByIdentity:
- Enabled: false
-Lint/IdentityComparison:
- Enabled: false
-Lint/InterpolationCheck:
- Enabled: false
-Lint/MissingCopEnableDirective:
- Enabled: false
-Lint/MixedRegexpCaptureTypes:
- Enabled: false
-Lint/NestedPercentLiteral:
- Enabled: false
-Lint/NonDeterministicRequireOrder:
- Enabled: false
-Lint/OrderedMagicComments:
- Enabled: false
-Lint/OutOfRangeRegexpRef:
- Enabled: false
-Lint/RaiseException:
- Enabled: false
-Lint/RedundantCopEnableDirective:
- Enabled: false
-Lint/RedundantRequireStatement:
- Enabled: false
-Lint/RedundantSafeNavigation:
- Enabled: false
-Lint/RedundantWithIndex:
- Enabled: false
-Lint/RedundantWithObject:
- Enabled: false
-Lint/RegexpAsCondition:
- Enabled: false
-Lint/ReturnInVoidContext:
- Enabled: false
-Lint/SafeNavigationConsistency:
- Enabled: false
-Lint/SafeNavigationWithEmpty:
- Enabled: false
-Lint/SelfAssignment:
- Enabled: false
-Lint/SendWithMixinArgument:
- Enabled: false
-Lint/ShadowedArgument:
- Enabled: false
-Lint/StructNewOverride:
- Enabled: false
-Lint/ToJSON:
- Enabled: false
-Lint/TopLevelReturnWithArgument:
- Enabled: false
-Lint/TrailingCommaInAttributeDeclaration:
- Enabled: false
-Lint/UnreachableLoop:
- Enabled: false
-Lint/UriEscapeUnescape:
- Enabled: false
-Lint/UriRegexp:
- Enabled: false
-Lint/UselessMethodDefinition:
- Enabled: false
-Lint/UselessTimes:
- Enabled: false
-Metrics/AbcSize:
- Enabled: false
-Metrics/BlockLength:
- Enabled: false
-Metrics/BlockNesting:
- Enabled: false
-Metrics/ClassLength:
- Enabled: false
-Metrics/CyclomaticComplexity:
- Enabled: false
-Metrics/MethodLength:
- Enabled: false
-Metrics/ModuleLength:
- Enabled: false
-Metrics/ParameterLists:
- Enabled: false
-Metrics/PerceivedComplexity:
- Enabled: false
-Migration/DepartmentName:
- Enabled: false
-Naming/AccessorMethodName:
- Enabled: false
-Naming/BlockParameterName:
- Enabled: false
-Naming/HeredocDelimiterCase:
- Enabled: false
-Naming/HeredocDelimiterNaming:
- Enabled: false
-Naming/MemoizedInstanceVariableName:
- Enabled: false
-Naming/MethodParameterName:
- Enabled: false
-Naming/RescuedExceptionsVariableName:
- Enabled: false
-Naming/VariableNumber:
- Enabled: false
-Performance/BindCall:
- Enabled: false
-Performance/DeletePrefix:
- Enabled: false
-Performance/DeleteSuffix:
- Enabled: false
-Performance/InefficientHashSearch:
- Enabled: false
-Performance/UnfreezeString:
- Enabled: false
-Performance/UriDefaultParser:
- Enabled: false
-RSpec/Be:
- Enabled: false
-RSpec/Capybara/CurrentPathExpectation:
- Enabled: false
-RSpec/Capybara/FeatureMethods:
- Enabled: false
-RSpec/Capybara/VisibilityMatcher:
- Enabled: false
-RSpec/ContextMethod:
- Enabled: false
-RSpec/ContextWording:
- Enabled: false
-RSpec/DescribeClass:
- Enabled: false
-RSpec/EmptyHook:
- Enabled: false
-RSpec/EmptyLineAfterExample:
- Enabled: false
-RSpec/EmptyLineAfterExampleGroup:
- Enabled: false
-RSpec/EmptyLineAfterHook:
- Enabled: false
-RSpec/ExampleLength:
- Enabled: false
-RSpec/ExampleWithoutDescription:
- Enabled: false
-RSpec/ExpectChange:
- Enabled: false
-RSpec/ExpectInHook:
- Enabled: false
-RSpec/FactoryBot/AttributeDefinedStatically:
- Enabled: false
-RSpec/FactoryBot/CreateList:
- Enabled: false
-RSpec/FactoryBot/FactoryClassName:
- Enabled: false
-RSpec/HooksBeforeExamples:
- Enabled: false
-RSpec/ImplicitBlockExpectation:
- Enabled: false
-RSpec/ImplicitSubject:
- Enabled: false
-RSpec/LeakyConstantDeclaration:
- Enabled: false
-RSpec/LetBeforeExamples:
- Enabled: false
-RSpec/MissingExampleGroupArgument:
- Enabled: false
RSpec/MultipleExpectations:
- Enabled: false
-RSpec/MultipleMemoizedHelpers:
- Enabled: false
-RSpec/MultipleSubjects:
- Enabled: false
-RSpec/NestedGroups:
- Enabled: false
-RSpec/PredicateMatcher:
- Enabled: false
-RSpec/ReceiveCounts:
- Enabled: false
-RSpec/ReceiveNever:
- Enabled: false
-RSpec/RepeatedExampleGroupBody:
- Enabled: false
-RSpec/RepeatedExampleGroupDescription:
- Enabled: false
-RSpec/RepeatedIncludeExample:
- Enabled: false
-RSpec/ReturnFromStub:
- Enabled: false
-RSpec/SharedExamples:
- Enabled: false
-RSpec/StubbedMock:
- Enabled: false
-RSpec/UnspecifiedException:
- Enabled: false
-RSpec/VariableDefinition:
- Enabled: false
-RSpec/VoidExpect:
- Enabled: false
-RSpec/Yield:
- Enabled: false
-Security/Open:
- Enabled: false
-Style/AccessModifierDeclarations:
- Enabled: false
-Style/AccessorGrouping:
- Enabled: false
-Style/AsciiComments:
- Enabled: false
-Style/BisectedAttrAccessor:
- Enabled: false
-Style/CaseLikeIf:
- Enabled: false
-Style/ClassEqualityComparison:
- Enabled: false
-Style/ColonMethodDefinition:
- Enabled: false
-Style/CombinableLoops:
- Enabled: false
-Style/CommentedKeyword:
- Enabled: false
-Style/Dir:
- Enabled: false
-Style/DoubleCopDisableDirective:
- Enabled: false
-Style/EmptyBlockParameter:
- Enabled: false
-Style/EmptyLambdaParameter:
- Enabled: false
-Style/Encoding:
- Enabled: false
-Style/EvalWithLocation:
- Enabled: false
-Style/ExpandPathArguments:
- Enabled: false
-Style/ExplicitBlockArgument:
- Enabled: false
-Style/ExponentialNotation:
- Enabled: false
-Style/FloatDivision:
- Enabled: false
-Style/FrozenStringLiteralComment:
- Enabled: false
-Style/GlobalStdStream:
- Enabled: false
-Style/HashAsLastArrayItem:
- Enabled: false
-Style/HashLikeCase:
- Enabled: false
-Style/HashTransformKeys:
- Enabled: false
-Style/HashTransformValues:
- Enabled: false
-Style/IfUnlessModifier:
- Enabled: false
-Style/KeywordParametersOrder:
- Enabled: false
-Style/MinMax:
- Enabled: false
-Style/MixinUsage:
- Enabled: false
-Style/MultilineWhenThen:
- Enabled: false
-Style/NegatedUnless:
- Enabled: false
-Style/NumericPredicate:
- Enabled: false
-Style/OptionalBooleanParameter:
- Enabled: false
-Style/OrAssignment:
- Enabled: false
-Style/RandomWithOffset:
- Enabled: false
-Style/RedundantAssignment:
- Enabled: false
-Style/RedundantCondition:
- Enabled: false
-Style/RedundantConditional:
- Enabled: false
-Style/RedundantFetchBlock:
- Enabled: false
-Style/RedundantFileExtensionInRequire:
- Enabled: false
-Style/RedundantRegexpCharacterClass:
- Enabled: false
-Style/RedundantRegexpEscape:
- Enabled: false
-Style/RedundantSelfAssignment:
- Enabled: false
-Style/RedundantSort:
- Enabled: false
-Style/RescueStandardError:
- Enabled: false
-Style/SingleArgumentDig:
- Enabled: false
-Style/SlicingWithRange:
- Enabled: false
-Style/SoleNestedConditional:
- Enabled: false
-Style/StderrPuts:
- Enabled: false
-Style/StringConcatenation:
- Enabled: false
-Style/Strip:
- Enabled: false
-Style/SymbolProc:
- Enabled: false
-Style/TrailingBodyOnClass:
- Enabled: false
-Style/TrailingBodyOnMethodDefinition:
- Enabled: false
-Style/TrailingBodyOnModule:
- Enabled: false
-Style/TrailingCommaInHashLiteral:
- Enabled: false
-Style/TrailingMethodEndStatement:
- Enabled: false
-Style/UnpackFirst:
- Enabled: false
-Lint/DuplicateBranch:
- Enabled: false
-Lint/DuplicateRegexpCharacterClassElement:
- Enabled: false
-Lint/EmptyBlock:
- Enabled: false
-Lint/EmptyClass:
- Enabled: false
-Lint/NoReturnInBeginEndBlocks:
- Enabled: false
-Lint/ToEnumArguments:
- Enabled: false
-Lint/UnexpectedBlockArity:
- Enabled: false
-Lint/UnmodifiedReduceAccumulator:
- Enabled: false
-Performance/CollectionLiteralInLoop:
- Enabled: false
-Style/ArgumentsForwarding:
- Enabled: false
-Style/CollectionCompact:
- Enabled: false
-Style/DocumentDynamicEvalDefinition:
- Enabled: false
-Style/NegatedIfElseCondition:
- Enabled: false
-Style/NilLambda:
- Enabled: false
-Style/RedundantArgument:
- Enabled: false
-Style/SwapValues:
- Enabled: false
+ Max: 3
+Naming/MethodParameterName:
+ AllowedNames: 'is'
-GetText/DecorateString:
- Enabled: false
\ No newline at end of file
+# This configuration was generated by
+# `rubocop --auto-gen-config`
+# on 2023-04-21 09:13:34 UTC using RuboCop version 1.48.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: 32
+# This cop supports safe autocorrection (--autocorrect).
+Layout/ClosingHeredocIndentation:
+ Exclude:
+ - 'spec/acceptance/apt_key_provider_spec.rb'
+ - 'spec/acceptance/apt_spec.rb'
+ - 'spec/spec_helper_acceptance_local.rb'
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+
+# Offense count: 5
+# This cop supports safe autocorrection (--autocorrect).
+Layout/EmptyLineAfterGuardClause:
+ Exclude:
+ - 'lib/facter/apt_updates.rb'
+ - 'lib/puppet/provider/apt_key/apt_key.rb'
+ - 'lib/puppet/type/apt_key.rb'
+ - 'spec/spec_helper_acceptance_local.rb'
+ - 'tasks/init.rb'
+
+# Offense count: 57
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
+# SupportedHashRocketStyles: key, separator, table
+# SupportedColonStyles: key, separator, table
+# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
+Layout/HashAlignment:
+ Exclude:
+ - 'spec/classes/apt_spec.rb'
+ - 'spec/classes/apt_update_spec.rb'
+ - 'spec/defines/conf_spec.rb'
+ - 'spec/defines/pin_spec.rb'
+ - 'spec/defines/source_compat_spec.rb'
+ - 'spec/defines/source_spec.rb'
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+ - 'spec/unit/puppet/type/apt_key_spec.rb'
+
+# Offense count: 2
+# This cop supports safe autocorrection (--autocorrect).
+Layout/HeredocIndentation:
+ Exclude:
+ - 'spec/spec_helper_acceptance_local.rb'
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+
+# Offense count: 6
+# This cop supports safe autocorrection (--autocorrect).
+Layout/SpaceAroundMethodCallOperator:
+ Exclude:
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/key_spec.rb'
+
+# Offense count: 1
+# This cop supports unsafe autocorrection (--autocorrect-all).
+Lint/BooleanSymbol:
+ Exclude:
+ - 'spec/unit/puppet/type/apt_key_spec.rb'
+
+# Offense count: 3
+# Configuration parameters: AllowedMethods.
+# AllowedMethods: enums
+Lint/ConstantDefinitionInBlock:
+ Exclude:
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/source_compat_spec.rb'
+ - 'spec/defines/source_spec.rb'
+
+# Offense count: 6
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: strict, consistent
+Lint/SymbolConversion:
+ Exclude:
+ - 'spec/classes/apt_update_spec.rb'
+
+# Offense count: 6
+# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
+Metrics/AbcSize:
+ Max: 40
+
+# Offense count: 3
+# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
+# AllowedMethods: refine
+Metrics/BlockLength:
+ Max: 180
+
+# Offense count: 3
+# Configuration parameters: AllowedMethods, AllowedPatterns.
+Metrics/CyclomaticComplexity:
+ Max: 11
+
+# Offense count: 8
+# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
+Metrics/MethodLength:
+ Max: 39
+
+# Offense count: 3
+# Configuration parameters: AllowedMethods, AllowedPatterns.
+Metrics/PerceivedComplexity:
+ Max: 12
+
+# Offense count: 1
+# Configuration parameters: MinSize.
+Performance/CollectionLiteralInLoop:
+ Exclude:
+ - 'spec/classes/apt_update_spec.rb'
+
+# Offense count: 6
+# This cop supports unsafe autocorrection (--autocorrect-all).
+RSpec/BeEq:
+ Exclude:
+ - 'spec/unit/facter/apt_reboot_required_spec.rb'
+ - 'spec/unit/puppet/type/apt_key_spec.rb'
+
+# Offense count: 8
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: be, be_nil
+RSpec/BeNil:
+ Exclude:
+ - 'spec/unit/facter/apt_dist_package_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_package_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_updates_spec.rb'
+ - 'spec/unit/facter/apt_package_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_package_updates_spec.rb'
+ - 'spec/unit/facter/apt_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_updates_spec.rb'
+
+# Offense count: 6
+# Configuration parameters: Prefixes, AllowedPatterns.
+# Prefixes: when, with, without
+RSpec/ContextWording:
+ Exclude:
+ - 'spec/classes/apt_spec.rb'
+ - 'spec/classes/apt_update_spec.rb'
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+
+# Offense count: 32
+# Configuration parameters: IgnoredMetadata.
+RSpec/DescribeClass:
+ Enabled: false
+
+# Offense count: 23
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: AllowConsecutiveOneLiners.
+RSpec/EmptyLineAfterExample:
+ Exclude:
+ - 'spec/acceptance/apt_key_provider_spec.rb'
+ - 'spec/acceptance/apt_spec.rb'
+ - 'spec/classes/apt_spec.rb'
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/key_spec.rb'
+ - 'spec/defines/pin_spec.rb'
+ - 'spec/defines/ppa_spec.rb'
+ - 'spec/defines/source_spec.rb'
+
+# Offense count: 39
+# This cop supports safe autocorrection (--autocorrect).
+RSpec/EmptyLineAfterExampleGroup:
+ Exclude:
+ - 'spec/acceptance/apt_key_provider_spec.rb'
+ - 'spec/acceptance/init_task_spec.rb'
+ - 'spec/classes/apt_backports_spec.rb'
+ - 'spec/classes/apt_spec.rb'
+ - 'spec/classes/apt_update_spec.rb'
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/key_spec.rb'
+ - 'spec/defines/source_spec.rb'
+
+# Offense count: 24
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: AllowConsecutiveOneLiners.
+RSpec/EmptyLineAfterHook:
+ Exclude:
+ - 'spec/acceptance/apt_key_provider_spec.rb'
+ - 'spec/unit/facter/apt_dist_has_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_package_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_package_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_dist_updates_spec.rb'
+ - 'spec/unit/facter/apt_has_updates_spec.rb'
+ - 'spec/unit/facter/apt_package_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_package_updates_spec.rb'
+ - 'spec/unit/facter/apt_reboot_required_spec.rb'
+ - 'spec/unit/facter/apt_security_updates_spec.rb'
+ - 'spec/unit/facter/apt_updates_spec.rb'
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+
+# Offense count: 13
+# Configuration parameters: CountAsOne.
+RSpec/ExampleLength:
+ Max: 15
+
+# Offense count: 10
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
+# DisallowedExamples: works
+RSpec/ExampleWording:
+ Exclude:
+ - 'spec/acceptance/apt_key_provider_spec.rb'
+
+# Offense count: 2
+# This cop supports safe autocorrection (--autocorrect).
+RSpec/ExcessiveDocstringSpacing:
+ Exclude:
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/setting_spec.rb'
+
+# Offense count: 204
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
+RSpec/ImplicitSubject:
+ Exclude:
+ - 'spec/classes/apt_backports_spec.rb'
+ - 'spec/classes/apt_spec.rb'
+ - 'spec/classes/apt_update_spec.rb'
+ - 'spec/defines/conf_spec.rb'
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/key_spec.rb'
+ - 'spec/defines/mark_spec.rb'
+ - 'spec/defines/pin_spec.rb'
+ - 'spec/defines/ppa_spec.rb'
+ - 'spec/defines/setting_spec.rb'
+ - 'spec/defines/source_compat_spec.rb'
+ - 'spec/defines/source_spec.rb'
+ - 'spec/unit/facter/apt_update_last_success_spec.rb'
+
+# Offense count: 3
+RSpec/LeakyConstantDeclaration:
+ Exclude:
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/source_compat_spec.rb'
+ - 'spec/defines/source_spec.rb'
+
+# Offense count: 4
+RSpec/MultipleExpectations:
+ Max: 5
+
+# Offense count: 3
+# Configuration parameters: AllowSubject.
+RSpec/MultipleMemoizedHelpers:
+ Max: 6
+
+# Offense count: 2
+# Configuration parameters: AllowedGroups.
+RSpec/NestedGroups:
+ Max: 4
+
+# Offense count: 24
+# Configuration parameters: AllowedPatterns.
+# AllowedPatterns: ^expect_, ^assert_
+RSpec/NoExpectationExample:
+ Exclude:
+ - 'spec/acceptance/01_apt_class_spec.rb'
+ - 'spec/acceptance/apt_backports_spec.rb'
+ - 'spec/acceptance/apt_key_provider_spec.rb'
+ - 'spec/acceptance/apt_spec.rb'
+
+# Offense count: 4
+RSpec/RepeatedExampleGroupDescription:
+ Exclude:
+ - 'spec/acceptance/apt_spec.rb'
+ - 'spec/classes/apt_spec.rb'
+
+# Offense count: 3
+RSpec/StubbedMock:
+ Exclude:
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+
+# Offense count: 2
+Security/Open:
+ Exclude:
+ - 'lib/puppet/provider/apt_key/apt_key.rb'
+
+# Offense count: 1
+# This cop supports unsafe autocorrection (--autocorrect-all).
+# Configuration parameters: MinBranchesCount.
+Style/CaseLikeIf:
+ Exclude:
+ - 'lib/puppet/provider/apt_key/apt_key.rb'
+
+# Offense count: 1
+# This cop supports unsafe autocorrection (--autocorrect-all).
+Style/GlobalStdStream:
+ Exclude:
+ - 'tasks/init.rb'
+
+# Offense count: 10
+# This cop supports safe autocorrection (--autocorrect).
+Style/IfUnlessModifier:
+ Exclude:
+ - 'lib/facter/apt_updates.rb'
+ - 'lib/puppet/provider/apt_key/apt_key.rb'
+ - 'lib/puppet/type/apt_key.rb'
+
+# Offense count: 1
+Style/MixinUsage:
+ Exclude:
+ - 'spec/spec_helper.rb'
+
+# Offense count: 3
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
+Style/QuotedSymbols:
+ Exclude:
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'
+
+# Offense count: 4
+# This cop supports safe autocorrection (--autocorrect).
+Style/RedundantRegexpEscape:
+ Exclude:
+ - 'lib/puppet/type/apt_key.rb'
+
+# Offense count: 1
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: implicit, explicit
+Style/RescueStandardError:
+ Exclude:
+ - 'spec/spec_helper.rb'
+
+# Offense count: 2
+# This cop supports unsafe autocorrection (--autocorrect-all).
+Style/SlicingWithRange:
+ Exclude:
+ - 'lib/puppet/provider/apt_key/apt_key.rb'
+
+# Offense count: 338
+# This cop supports safe autocorrection (--autocorrect).
+# Configuration parameters: EnforcedStyleForMultiline.
+# SupportedStylesForMultiline: comma, consistent_comma, no_comma
+Style/TrailingCommaInHashLiteral:
+ Exclude:
+ - 'lib/puppet/provider/apt_key/apt_key.rb'
+ - 'spec/classes/apt_backports_spec.rb'
+ - 'spec/classes/apt_spec.rb'
+ - 'spec/classes/apt_update_spec.rb'
+ - 'spec/defines/conf_spec.rb'
+ - 'spec/defines/key_compat_spec.rb'
+ - 'spec/defines/key_spec.rb'
+ - 'spec/defines/mark_spec.rb'
+ - 'spec/defines/pin_spec.rb'
+ - 'spec/defines/ppa_spec.rb'
+ - 'spec/defines/setting_spec.rb'
+ - 'spec/defines/source_compat_spec.rb'
+ - 'spec/defines/source_spec.rb'
+ - 'spec/spec_helper.rb'
+ - 'spec/unit/puppet/provider/apt_key_spec.rb'