]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/blob - .rubocop_todo.yml
bed1ce798542435d55e981f22bf2e428dbbe34b0
[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: 1
10 # This cop supports unsafe autocorrection (--autocorrect-all).
11 Lint/BooleanSymbol:
12   Exclude:
13     - 'spec/unit/puppet/type/apt_key_spec.rb'
14
15 # Offense count: 3
16 # Configuration parameters: AllowedMethods.
17 # AllowedMethods: enums
18 Lint/ConstantDefinitionInBlock:
19   Exclude:
20     - 'spec/defines/key_compat_spec.rb'
21     - 'spec/defines/source_compat_spec.rb'
22     - 'spec/defines/source_spec.rb'
23
24 # Offense count: 6
25 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
26 Metrics/AbcSize:
27   Max: 40
28
29 # Offense count: 3
30 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
31 # AllowedMethods: refine
32 Metrics/BlockLength:
33   Max: 180
34
35 # Offense count: 3
36 # Configuration parameters: AllowedMethods, AllowedPatterns.
37 Metrics/CyclomaticComplexity:
38   Max: 11
39
40 # Offense count: 8
41 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
42 Metrics/MethodLength:
43   Max: 39
44
45 # Offense count: 3
46 # Configuration parameters: AllowedMethods, AllowedPatterns.
47 Metrics/PerceivedComplexity:
48   Max: 12
49
50 # Offense count: 1
51 # Configuration parameters: MinSize.
52 Performance/CollectionLiteralInLoop:
53   Exclude:
54     - 'spec/classes/apt_update_spec.rb'
55
56 # Offense count: 6
57 # This cop supports unsafe autocorrection (--autocorrect-all).
58 RSpec/BeEq:
59   Exclude:
60     - 'spec/unit/facter/apt_reboot_required_spec.rb'
61     - 'spec/unit/puppet/type/apt_key_spec.rb'
62
63 # Offense count: 6
64 # Configuration parameters: Prefixes, AllowedPatterns.
65 # Prefixes: when, with, without
66 RSpec/ContextWording:
67   Exclude:
68     - 'spec/classes/apt_spec.rb'
69     - 'spec/classes/apt_update_spec.rb'
70     - 'spec/unit/puppet/provider/apt_key_spec.rb'
71
72 # Offense count: 32
73 # Configuration parameters: IgnoredMetadata.
74 RSpec/DescribeClass:
75   Enabled: false
76
77 # Offense count: 13
78 # Configuration parameters: CountAsOne.
79 RSpec/ExampleLength:
80   Max: 15
81
82 # Offense count: 3
83 RSpec/LeakyConstantDeclaration:
84   Exclude:
85     - 'spec/defines/key_compat_spec.rb'
86     - 'spec/defines/source_compat_spec.rb'
87     - 'spec/defines/source_spec.rb'
88
89 # Offense count: 3
90 # Configuration parameters: AllowSubject.
91 RSpec/MultipleMemoizedHelpers:
92   Max: 6
93
94 # Offense count: 204
95 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
96 # SupportedStyles: always, named_only
97 RSpec/NamedSubject:
98   Exclude:
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'
112
113 # Offense count: 2
114 # Configuration parameters: AllowedGroups.
115 RSpec/NestedGroups:
116   Max: 4
117
118 # Offense count: 24
119 # Configuration parameters: AllowedPatterns.
120 # AllowedPatterns: ^expect_, ^assert_
121 RSpec/NoExpectationExample:
122   Exclude:
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'
127
128 # Offense count: 4
129 RSpec/RepeatedExampleGroupDescription:
130   Exclude:
131     - 'spec/acceptance/apt_spec.rb'
132     - 'spec/classes/apt_spec.rb'
133
134 # Offense count: 3
135 RSpec/StubbedMock:
136   Exclude:
137     - 'spec/unit/puppet/provider/apt_key_spec.rb'
138
139 # Offense count: 2
140 Security/Open:
141   Exclude:
142     - 'lib/puppet/provider/apt_key/apt_key.rb'
143
144 # Offense count: 1
145 # This cop supports unsafe autocorrection (--autocorrect-all).
146 # Configuration parameters: MinBranchesCount.
147 Style/CaseLikeIf:
148   Exclude:
149     - 'lib/puppet/provider/apt_key/apt_key.rb'
150
151 # Offense count: 1
152 # This cop supports unsafe autocorrection (--autocorrect-all).
153 Style/GlobalStdStream:
154   Exclude:
155     - 'tasks/init.rb'
156
157 # Offense count: 1
158 Style/MixinUsage:
159   Exclude:
160     - 'spec/spec_helper.rb'
161
162 # Offense count: 2
163 # This cop supports unsafe autocorrection (--autocorrect-all).
164 Style/SlicingWithRange:
165   Exclude:
166     - 'lib/puppet/provider/apt_key/apt_key.rb'