Skip to content

Commit c1beaa2

Browse files
authored
Merge pull request #147 from puppetlabs/revert-142-CAT-1301-add_unsafe_interpolations_check
Revert "(CAT-1301) Add check unsafe interpolations check"
2 parents 1f223cf + f88fb41 commit c1beaa2

File tree

3 files changed

+12
-340
lines changed

3 files changed

+12
-340
lines changed

.rubocop_todo.yml

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-08-25 10:33:19 UTC using RuboCop version 1.48.1.
3+
# on 2023-04-04 08:44:46 UTC using RuboCop version 1.48.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -34,12 +34,12 @@ Lint/MissingCopEnableDirective:
3434
- 'lib/puppet-lint/tasks/puppet-lint.rb'
3535
- 'spec/unit/puppet-lint/puppet-lint_spec.rb'
3636

37-
# Offense count: 60
37+
# Offense count: 58
3838
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
3939
Metrics/AbcSize:
4040
Max: 142
4141

42-
# Offense count: 36
42+
# Offense count: 34
4343
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
4444
# AllowedMethods: refine
4545
Metrics/BlockLength:
@@ -55,27 +55,22 @@ Metrics/BlockNesting:
5555
Metrics/ClassLength:
5656
Max: 387
5757

58-
# Offense count: 35
58+
# Offense count: 33
5959
# Configuration parameters: AllowedMethods, AllowedPatterns.
6060
Metrics/CyclomaticComplexity:
6161
Max: 33
6262

63-
# Offense count: 82
63+
# Offense count: 80
6464
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
6565
Metrics/MethodLength:
6666
Max: 108
6767

68-
# Offense count: 27
68+
# Offense count: 26
6969
# Configuration parameters: AllowedMethods, AllowedPatterns.
7070
Metrics/PerceivedComplexity:
7171
Max: 31
7272

73-
# Offense count: 1
74-
Naming/AccessorMethodName:
75-
Exclude:
76-
- 'lib/puppet-lint/plugins/check_unsafe_interpolations/check_unsafe_interpolations.rb'
77-
78-
# Offense count: 186
73+
# Offense count: 182
7974
# Configuration parameters: ForbiddenDelimiters.
8075
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
8176
Naming/HeredocDelimiterNaming:
@@ -97,13 +92,13 @@ Performance/CollectionLiteralInLoop:
9792
- 'lib/puppet-lint/plugins/check_resources/ensure_first_param.rb'
9893
- 'lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb'
9994

100-
# Offense count: 417
95+
# Offense count: 406
10196
# Configuration parameters: Prefixes, AllowedPatterns.
10297
# Prefixes: when, with, without
10398
RSpec/ContextWording:
10499
Enabled: false
105100

106-
# Offense count: 42
101+
# Offense count: 41
107102
# Configuration parameters: IgnoredMetadata.
108103
RSpec/DescribeClass:
109104
Enabled: false
@@ -127,7 +122,7 @@ RSpec/FilePath:
127122
- 'spec/unit/puppet-lint/lexer_spec.rb'
128123
- 'spec/unit/puppet-lint/puppet-lint_spec.rb'
129124

130-
# Offense count: 139
125+
# Offense count: 138
131126
RSpec/MultipleExpectations:
132127
Max: 137
133128

@@ -141,21 +136,14 @@ RSpec/MultipleMemoizedHelpers:
141136
RSpec/NestedGroups:
142137
Max: 5
143138

144-
# Offense count: 10
139+
# Offense count: 8
145140
RSpec/RepeatedExampleGroupDescription:
146141
Exclude:
147142
- 'spec/unit/puppet-lint/plugins/check_resources/file_mode_spec.rb'
148143
- 'spec/unit/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb'
149-
- 'spec/unit/puppet-lint/plugins/check_unsafe_interpolations/check_unsafe_interpolations_spec.rb'
150144
- 'spec/unit/puppet-lint/plugins/legacy_facts/legacy_facts_spec.rb'
151145

152-
# Offense count: 1
153-
# This cop supports unsafe autocorrection (--autocorrect-all).
154-
Style/ConcatArrayLiterals:
155-
Exclude:
156-
- 'lib/puppet-lint/plugins/check_unsafe_interpolations/check_unsafe_interpolations.rb'
157-
158-
# Offense count: 108
146+
# Offense count: 106
159147
# This cop supports unsafe autocorrection (--autocorrect-all).
160148
# Configuration parameters: EnforcedStyle.
161149
# SupportedStyles: always, always_true, never

lib/puppet-lint/plugins/check_unsafe_interpolations/check_unsafe_interpolations.rb

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)