]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/blob - .rubocop_todo.yml
(CONT-773) Rubocop Manual Fix 4 - Performance/CollectionLiteralInLoop
[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: 6
36 # Configuration parameters: Prefixes, AllowedPatterns.
37 # Prefixes: when, with, without
38 RSpec/ContextWording:
39   Exclude:
40     - 'spec/classes/apt_spec.rb'
41     - 'spec/classes/apt_update_spec.rb'
42     - 'spec/unit/puppet/provider/apt_key_spec.rb'
43
44 # Offense count: 32
45 # Configuration parameters: IgnoredMetadata.
46 RSpec/DescribeClass:
47   Enabled: false
48
49 # Offense count: 13
50 # Configuration parameters: CountAsOne.
51 RSpec/ExampleLength:
52   Max: 15
53
54 # Offense count: 3
55 RSpec/LeakyConstantDeclaration:
56   Exclude:
57     - 'spec/defines/key_compat_spec.rb'
58     - 'spec/defines/source_compat_spec.rb'
59     - 'spec/defines/source_spec.rb'
60
61 # Offense count: 3
62 # Configuration parameters: AllowSubject.
63 RSpec/MultipleMemoizedHelpers:
64   Max: 6
65
66 # Offense count: 204
67 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
68 # SupportedStyles: always, named_only
69 RSpec/NamedSubject:
70   Exclude:
71     - 'spec/classes/apt_backports_spec.rb'
72     - 'spec/classes/apt_spec.rb'
73     - 'spec/classes/apt_update_spec.rb'
74     - 'spec/defines/conf_spec.rb'
75     - 'spec/defines/key_compat_spec.rb'
76     - 'spec/defines/key_spec.rb'
77     - 'spec/defines/mark_spec.rb'
78     - 'spec/defines/pin_spec.rb'
79     - 'spec/defines/ppa_spec.rb'
80     - 'spec/defines/setting_spec.rb'
81     - 'spec/defines/source_compat_spec.rb'
82     - 'spec/defines/source_spec.rb'
83     - 'spec/unit/facter/apt_update_last_success_spec.rb'
84
85 # Offense count: 2
86 # Configuration parameters: AllowedGroups.
87 RSpec/NestedGroups:
88   Max: 4
89
90 # Offense count: 24
91 # Configuration parameters: AllowedPatterns.
92 # AllowedPatterns: ^expect_, ^assert_
93 RSpec/NoExpectationExample:
94   Exclude:
95     - 'spec/acceptance/01_apt_class_spec.rb'
96     - 'spec/acceptance/apt_backports_spec.rb'
97     - 'spec/acceptance/apt_key_provider_spec.rb'
98     - 'spec/acceptance/apt_spec.rb'
99
100 # Offense count: 4
101 RSpec/RepeatedExampleGroupDescription:
102   Exclude:
103     - 'spec/acceptance/apt_spec.rb'
104     - 'spec/classes/apt_spec.rb'
105
106 # Offense count: 3
107 RSpec/StubbedMock:
108   Exclude:
109     - 'spec/unit/puppet/provider/apt_key_spec.rb'
110
111 # Offense count: 2
112 Security/Open:
113   Exclude:
114     - 'lib/puppet/provider/apt_key/apt_key.rb'
115
116 # Offense count: 1
117 Style/MixinUsage:
118   Exclude:
119     - 'spec/spec_helper.rb'