Skip to content

Commit 446ab56

Browse files
committed
Lint/UnreachableLoop
The AtFork tests rely on the `loop` behavior and the code is very fragile, so exclude.
1 parent dd14d96 commit 446ab56

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -645,13 +645,6 @@ Lint/UnderscorePrefixedVariableName:
645645
- 'lib/puppet/type/file/checksum_value.rb'
646646
- 'lib/puppet/type/file/content.rb'
647647

648-
# Configuration parameters: AllowedPatterns, IgnoredPatterns.
649-
# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
650-
Lint/UnreachableLoop:
651-
Exclude:
652-
- 'lib/puppet/util/at_fork.rb'
653-
654-
# This cop supports safe auto-correction (--auto-correct).
655648
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
656649
Lint/UnusedBlockArgument:
657650
Enabled: false

lib/puppet/util/at_fork.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# killed in the process as a consequence of running in the same contract as the
1414
# service.
1515
module Puppet::Util::AtFork
16-
@handler_class = loop do
16+
@handler_class = loop do # rubocop:disable Lint/UnreachableLoop
1717
if Puppet::Util::Platform.solaris?
1818
begin
1919
require_relative 'at_fork/solaris'

0 commit comments

Comments
 (0)