Skip to content

Commit f83c6cd

Browse files
committed
Lint/RedundantRequireStatement
As of ruby 2.0 and up, it's not necessary to require 'enumerator' It's no longer necessary to require `set` in ruby 3.2 and up, however, we still need to maintain compatibility with 2.7, so I left that as-is. See https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/RedundantRequireStatement
1 parent a337f6f commit f83c6cd

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,6 @@ Lint/NestedMethodDefinition:
649649
- 'lib/puppet/pops/types/types.rb'
650650
- 'lib/puppet/type.rb'
651651

652-
# This cop supports safe auto-correction (--auto-correct).
653-
Lint/RedundantRequireStatement:
654-
Exclude:
655-
- 'lib/puppet/type/file.rb'
656-
657652
Lint/RescueException:
658653
Exclude:
659654
- 'ext/windows/service/daemon.rb'

lib/puppet/type/file.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
require 'etc'
66
require 'uri'
77
require 'fileutils'
8-
require 'enumerator'
98
require 'pathname'
109
require_relative '../../puppet/parameter/boolean'
1110
require_relative '../../puppet/util/diff'

0 commit comments

Comments
 (0)