Skip to content

Commit 29be5ae

Browse files
committed
(PUP-11993) Note for enabling Style/RedundantSelfAssignment
When the Style/RedundantSelfAssignment cop is enabled, many spec tests fail with either Errno::ENAMETOOLONG or Puppet::Context::UndefinedBindingError.
1 parent 527453f commit 29be5ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.rubocop_todo.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ Style/RedundantException:
658658
- 'lib/puppet/module_tool/tar.rb'
659659
- 'lib/puppet/pops/types/class_loader.rb'
660660

661-
# This cop supports safe auto-correction (--auto-correct).
661+
# This cop supports unsafe auto-correction (--auto-correct-all).
662662
Style/RedundantInterpolation:
663663
Enabled: false
664664

@@ -672,6 +672,9 @@ Style/RedundantSelf:
672672
Enabled: false
673673

674674
# This cop supports unsafe auto-correction (--auto-correct-all).
675+
# Enabling this cop causes a plethora of failed rspec tests, mostly
676+
# Errno::ENAMETOOLONG and Puppet::Context::UndefinedBindingError: Unable to
677+
# lookup 'environments' errors
675678
Style/RedundantSelfAssignment:
676679
Exclude:
677680
- 'lib/puppet/context.rb'

0 commit comments

Comments
 (0)