Skip to content

Commit fb61eca

Browse files
committed
Lint/SelfAssignment
1 parent a12d0d8 commit fb61eca

File tree

5 files changed

+1
-17
lines changed

5 files changed

+1
-17
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,13 +661,6 @@ Lint/RescueException:
661661
- 'lib/puppet/util/command_line/trollop.rb'
662662
- 'util/rspec_grouper'
663663

664-
Lint/SelfAssignment:
665-
Exclude:
666-
- 'lib/puppet/pops/evaluator/evaluator_impl.rb'
667-
- 'lib/puppet/pops/evaluator/runtime3_support.rb'
668-
- 'lib/puppet/pops/validation/validator_factory_4_0.rb'
669-
- 'lib/puppet/provider/nameservice/directoryservice.rb'
670-
671664
# Configuration parameters: IgnoreImplicitReferences.
672665
Lint/ShadowedArgument:
673666
Exclude:

lib/puppet/pops/evaluator/evaluator_impl.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ class EvaluatorImpl
3636

3737
COMMA_SEPARATOR = ', '
3838

39-
# Reference to Issues name space makes it easier to refer to issues
40-
# (Issues are shared with the validator).
41-
#
42-
Issues = Issues
43-
4439
def initialize
4540
@@initialized ||= static_initialize
4641

lib/puppet/pops/evaluator/runtime3_support.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ def diagnostic_producer
480480

481481
# Configure the severity of failures
482482
class SeverityProducer < Validation::SeverityProducer
483-
Issues = Issues
484-
485483
def initialize
486484
super
487485
p = self

lib/puppet/pops/validation/validator_factory_4_0.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module Validation
44
# Configures validation suitable for 4.0
55
#
66
class ValidatorFactory_4_0 < Factory
7-
Issues = Issues
8-
97
# Produces the checker to use
108
def checker diagnostic_producer
119
if Puppet[:tasks]

lib/puppet/provider/nameservice/directoryservice.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def self.generate_attribute_hash(input_hash, *type_properties)
117117
ds_value = input_hash[key]
118118
case ds_to_ns_attribute_map[ds_attribute]
119119
when :members
120-
ds_value = ds_value # only members uses arrays so far
120+
# do nothing, only members uses arrays so far
121121
when :gid, :uid
122122
# OS X stores objects like uid/gid as strings.
123123
# Try casting to an integer for these cases to be

0 commit comments

Comments
 (0)