a20672eb0000298e8a271ff8df87780173a7a37a
[puppet-modules/puppetlabs-apt.git] / .rubocop_todo.yml
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.
8
9 # Offense count: 3
10 # Configuration parameters: AllowedMethods.
11 # AllowedMethods: enums
12 Lint/ConstantDefinitionInBlock:
13   Exclude:
14     - 'spec/defines/key_compat_spec.rb'
15     - 'spec/defines/source_compat_spec.rb'
16     - 'spec/defines/source_spec.rb'
17
18 # Offense count: 6
19 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
20 Metrics/AbcSize:
21   Max: 40
22
23 # Offense count: 3
24 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
25 # AllowedMethods: refine
26 Metrics/BlockLength:
27   Max: 180
28
29 # Offense count: 3
30 # Configuration parameters: AllowedMethods, AllowedPatterns.
31 Metrics/CyclomaticComplexity:
32   Max: 11
33
34 # Offense count: 8
35 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
36 Metrics/MethodLength:
37   Max: 39
38
39 # Offense count: 3
40 # Configuration parameters: AllowedMethods, AllowedPatterns.
41 Metrics/PerceivedComplexity:
42   Max: 12
43
44 # Offense count: 1
45 # Configuration parameters: MinSize.
46 Performance/CollectionLiteralInLoop:
47   Exclude:
48     - 'spec/classes/apt_update_spec.rb'
49
50 # Offense count: 6
51 # Configuration parameters: Prefixes, AllowedPatterns.
52 # Prefixes: when, with, without
53 RSpec/ContextWording:
54   Exclude:
55     - 'spec/classes/apt_spec.rb'
56     - 'spec/classes/apt_update_spec.rb'
57     - 'spec/unit/puppet/provider/apt_key_spec.rb'
58
59 # Offense count: 32
60 # Configuration parameters: IgnoredMetadata.
61 RSpec/DescribeClass:
62   Enabled: false
63
64 # Offense count: 13
65 # Configuration parameters: CountAsOne.
66 RSpec/ExampleLength:
67   Max: 15
68
69 # Offense count: 3
70 RSpec/LeakyConstantDeclaration:
71   Exclude:
72     - 'spec/defines/key_compat_spec.rb'
73     - 'spec/defines/source_compat_spec.rb'
74     - 'spec/defines/source_spec.rb'
75
76 # Offense count: 3
77 # Configuration parameters: AllowSubject.
78 RSpec/MultipleMemoizedHelpers:
79   Max: 6
80
81 # Offense count: 204
82 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
83 # SupportedStyles: always, named_only
84 RSpec/NamedSubject:
85   Exclude:
86     - 'spec/classes/apt_backports_spec.rb'
87     - 'spec/classes/apt_spec.rb'
88     - 'spec/classes/apt_update_spec.rb'
89     - 'spec/defines/conf_spec.rb'
90     - 'spec/defines/key_compat_spec.rb'
91     - 'spec/defines/key_spec.rb'
92     - 'spec/defines/mark_spec.rb'
93     - 'spec/defines/pin_spec.rb'
94     - 'spec/defines/ppa_spec.rb'
95     - 'spec/defines/setting_spec.rb'
96     - 'spec/defines/source_compat_spec.rb'
97     - 'spec/defines/source_spec.rb'
98     - 'spec/unit/facter/apt_update_last_success_spec.rb'
99
100 # Offense count: 2
101 # Configuration parameters: AllowedGroups.
102 RSpec/NestedGroups:
103   Max: 4
104
105 # Offense count: 24
106 # Configuration parameters: AllowedPatterns.
107 # AllowedPatterns: ^expect_, ^assert_
108 RSpec/NoExpectationExample:
109   Exclude:
110     - 'spec/acceptance/01_apt_class_spec.rb'
111     - 'spec/acceptance/apt_backports_spec.rb'
112     - 'spec/acceptance/apt_key_provider_spec.rb'
113     - 'spec/acceptance/apt_spec.rb'
114
115 # Offense count: 4
116 RSpec/RepeatedExampleGroupDescription:
117   Exclude:
118     - 'spec/acceptance/apt_spec.rb'
119     - 'spec/classes/apt_spec.rb'
120
121 # Offense count: 3
122 RSpec/StubbedMock:
123   Exclude:
124     - 'spec/unit/puppet/provider/apt_key_spec.rb'
125
126 # Offense count: 2
127 Security/Open:
128   Exclude:
129     - 'lib/puppet/provider/apt_key/apt_key.rb'
130
131 # Offense count: 1
132 # This cop supports unsafe autocorrection (--autocorrect-all).
133 Style/GlobalStdStream:
134   Exclude:
135     - 'tasks/init.rb'
136
137 # Offense count: 1
138 Style/MixinUsage:
139   Exclude:
140     - 'spec/spec_helper.rb'
141
142 # Offense count: 2
143 # This cop supports unsafe autocorrection (--autocorrect-all).
144 Style/SlicingWithRange:
145   Exclude:
146     - 'lib/puppet/provider/apt_key/apt_key.rb'