1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2023-04-21 12:46:34 UTC using RuboCop version 1.48.1.
4 # The point is for the user to remove these configuration records
5 # one by one as the offenses are removed from the code base.
6 # Note that changes in the inspected code, or installation of new
7 # versions of RuboCop, may require this file to be generated again.
10 # This cop supports unsafe autocorrection (--autocorrect-all).
13 - 'spec/unit/puppet/type/apt_key_spec.rb'
16 # Configuration parameters: AllowedMethods.
17 # AllowedMethods: enums
18 Lint/ConstantDefinitionInBlock:
20 - 'spec/defines/key_compat_spec.rb'
21 - 'spec/defines/source_compat_spec.rb'
22 - 'spec/defines/source_spec.rb'
25 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
30 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
31 # AllowedMethods: refine
36 # Configuration parameters: AllowedMethods, AllowedPatterns.
37 Metrics/CyclomaticComplexity:
41 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
46 # Configuration parameters: AllowedMethods, AllowedPatterns.
47 Metrics/PerceivedComplexity:
51 # Configuration parameters: MinSize.
52 Performance/CollectionLiteralInLoop:
54 - 'spec/classes/apt_update_spec.rb'
57 # This cop supports unsafe autocorrection (--autocorrect-all).
60 - 'spec/unit/facter/apt_reboot_required_spec.rb'
61 - 'spec/unit/puppet/type/apt_key_spec.rb'
64 # Configuration parameters: Prefixes, AllowedPatterns.
65 # Prefixes: when, with, without
68 - 'spec/classes/apt_spec.rb'
69 - 'spec/classes/apt_update_spec.rb'
70 - 'spec/unit/puppet/provider/apt_key_spec.rb'
73 # Configuration parameters: IgnoredMetadata.
78 # Configuration parameters: CountAsOne.
83 RSpec/LeakyConstantDeclaration:
85 - 'spec/defines/key_compat_spec.rb'
86 - 'spec/defines/source_compat_spec.rb'
87 - 'spec/defines/source_spec.rb'
90 # Configuration parameters: AllowSubject.
91 RSpec/MultipleMemoizedHelpers:
95 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
96 # SupportedStyles: always, named_only
99 - 'spec/classes/apt_backports_spec.rb'
100 - 'spec/classes/apt_spec.rb'
101 - 'spec/classes/apt_update_spec.rb'
102 - 'spec/defines/conf_spec.rb'
103 - 'spec/defines/key_compat_spec.rb'
104 - 'spec/defines/key_spec.rb'
105 - 'spec/defines/mark_spec.rb'
106 - 'spec/defines/pin_spec.rb'
107 - 'spec/defines/ppa_spec.rb'
108 - 'spec/defines/setting_spec.rb'
109 - 'spec/defines/source_compat_spec.rb'
110 - 'spec/defines/source_spec.rb'
111 - 'spec/unit/facter/apt_update_last_success_spec.rb'
114 # Configuration parameters: AllowedGroups.
119 # Configuration parameters: AllowedPatterns.
120 # AllowedPatterns: ^expect_, ^assert_
121 RSpec/NoExpectationExample:
123 - 'spec/acceptance/01_apt_class_spec.rb'
124 - 'spec/acceptance/apt_backports_spec.rb'
125 - 'spec/acceptance/apt_key_provider_spec.rb'
126 - 'spec/acceptance/apt_spec.rb'
129 RSpec/RepeatedExampleGroupDescription:
131 - 'spec/acceptance/apt_spec.rb'
132 - 'spec/classes/apt_spec.rb'
137 - 'spec/unit/puppet/provider/apt_key_spec.rb'
142 - 'lib/puppet/provider/apt_key/apt_key.rb'
145 # This cop supports unsafe autocorrection (--autocorrect-all).
146 # Configuration parameters: MinBranchesCount.
149 - 'lib/puppet/provider/apt_key/apt_key.rb'
152 # This cop supports unsafe autocorrection (--autocorrect-all).
153 Style/GlobalStdStream:
160 - 'spec/spec_helper.rb'
163 # This cop supports unsafe autocorrection (--autocorrect-all).
164 Style/SlicingWithRange:
166 - 'lib/puppet/provider/apt_key/apt_key.rb'