Skip to content

Commit f11ecf1

Browse files
committed
Addresing cops
1 parent e97da25 commit f11ecf1

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.rubocop_todo.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-04-19 10:40:05 UTC using RuboCop version 1.48.1.
3+
# on 2023-06-05 13:18:31 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
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 1
10-
# This cop supports safe autocorrection (--autocorrect).
11-
Lint/RedundantCopDisableDirective:
12-
Exclude:
13-
- 'spec/acceptance/fragments_are_always_replaced_spec.rb'
14-
159
# Offense count: 5
1610
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
1711
Metrics/AbcSize:
18-
Max: 52
12+
Max: 53
1913

2014
# Offense count: 2
2115
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.

lib/puppet/type/concat_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def should_content
235235
content_hash = content_array.reduce({}) do |memo, current|
236236
nested_merge(memo, current)
237237
end
238-
@generated_content = content_hash.stdlib::to_yaml
238+
@generated_content = content_hash.stdlib.to_yaml
239239
when :json, :'json-array', :'json-pretty', :'json-array-pretty'
240240
content_array = sorted.map do |cf|
241241
JSON.parse(cf[1])

0 commit comments

Comments
 (0)