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