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