forked from rodjek/puppet-lint
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.rubocop_todo.yml
162 lines (139 loc) · 4.87 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-01-22 14:59:34 UTC using RuboCop version 1.50.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequireMFA:
Exclude:
- 'puppet-lint.gemspec'
# Offense count: 4
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
Exclude:
- 'lib/puppet-lint/lexer/string_slurper.rb'
- 'lib/puppet-lint/lexer/token.rb'
# Offense count: 9
# Configuration parameters: MaximumRangeSize.
Lint/MissingCopEnableDirective:
Exclude:
- 'lib/puppet-lint.rb'
- 'lib/puppet-lint/lexer.rb'
- 'lib/puppet-lint/lexer/string_slurper.rb'
- 'lib/puppet-lint/lexer/token.rb'
- 'lib/puppet-lint/report/codeclimate.rb'
- 'lib/puppet-lint/report/github.rb'
- 'lib/puppet-lint/tasks/puppet-lint.rb'
- 'spec/unit/puppet-lint/puppet-lint_spec.rb'
# Offense count: 58
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 142
# Offense count: 35
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 104
# Offense count: 2
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 5
# Offense count: 8
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 387
# Offense count: 33
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 33
# Offense count: 80
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 108
# Offense count: 26
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 31
# Offense count: 186
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Enabled: false
# Offense count: 2
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'lib/puppet-lint/monkeypatches.rb'
# Offense count: 7
# Configuration parameters: MinSize.
Performance/CollectionLiteralInLoop:
Exclude:
- 'lib/puppet-lint/bin.rb'
- 'lib/puppet-lint/data.rb'
- 'lib/puppet-lint/plugins/check_resources/ensure_first_param.rb'
- 'lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb'
# Offense count: 409
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 41
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Enabled: false
# Offense count: 50
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 148
# Offense count: 119
RSpec/MultipleExpectations:
Max: 137
# Offense count: 3
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 13
# Offense count: 52
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 5
# Offense count: 8
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/unit/puppet-lint/plugins/check_resources/file_mode_spec.rb'
- 'spec/unit/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb'
- 'spec/unit/puppet-lint/plugins/legacy_facts/legacy_facts_spec.rb'
# Offense count: 8
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- 'spec/unit/puppet-lint/bin_spec.rb'
- 'spec/unit/puppet-lint/checks_spec.rb'
- 'spec/unit/puppet-lint/configuration_spec.rb'
- 'spec/unit/puppet-lint/data_spec.rb'
- 'spec/unit/puppet-lint/lexer/string_slurper_spec.rb'
- 'spec/unit/puppet-lint/lexer/token_spec.rb'
- 'spec/unit/puppet-lint/lexer_spec.rb'
- 'spec/unit/puppet-lint/puppet-lint_spec.rb'
# Offense count: 106
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'lib/puppet-lint/bin.rb'
- 'lib/puppet-lint/plugins.rb'
- 'lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb'
- 'spec/unit/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb'