Update CODEOWNERS
[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 # Configuration parameters: AllowSubject.
47 RSpec/MultipleMemoizedHelpers:
48   Max: 6
49
50 # Offense count: 204
51 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
52 # SupportedStyles: always, named_only
53 RSpec/NamedSubject:
54   Exclude:
55     - 'spec/classes/apt_backports_spec.rb'
56     - 'spec/classes/apt_spec.rb'
57     - 'spec/classes/apt_update_spec.rb'
58     - 'spec/defines/conf_spec.rb'
59     - 'spec/defines/key_compat_spec.rb'
60     - 'spec/defines/key_spec.rb'
61     - 'spec/defines/mark_spec.rb'
62     - 'spec/defines/pin_spec.rb'
63     - 'spec/defines/ppa_spec.rb'
64     - 'spec/defines/setting_spec.rb'
65     - 'spec/defines/source_compat_spec.rb'
66     - 'spec/defines/source_spec.rb'
67     - 'spec/unit/facter/apt_update_last_success_spec.rb'
68
69 # Offense count: 2
70 # Configuration parameters: AllowedGroups.
71 RSpec/NestedGroups:
72   Max: 4
73
74 # Offense count: 24
75 # Configuration parameters: AllowedPatterns.
76 # AllowedPatterns: ^expect_, ^assert_
77 RSpec/NoExpectationExample:
78   Exclude:
79     - 'spec/acceptance/01_apt_class_spec.rb'
80     - 'spec/acceptance/apt_backports_spec.rb'
81     - 'spec/acceptance/apt_key_provider_spec.rb'
82     - 'spec/acceptance/apt_spec.rb'
83
84 # Offense count: 3
85 RSpec/StubbedMock:
86   Exclude:
87     - 'spec/unit/puppet/provider/apt_key_spec.rb'
88
89 # Offense count: 2
90 Security/Open:
91   Exclude:
92     - 'lib/puppet/provider/apt_key/apt_key.rb'
93
94 # Offense count: 1
95 Style/MixinUsage:
96   Exclude:
97     - 'spec/spec_helper.rb'