File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -649,12 +649,6 @@ Lint/NestedMethodDefinition:
649
649
- ' lib/puppet/pops/types/types.rb'
650
650
- ' lib/puppet/type.rb'
651
651
652
- # This cop supports safe auto-correction (--auto-correct).
653
- Lint/RedundantCopDisableDirective :
654
- Exclude :
655
- - ' lib/puppet/pops/loader/static_loader.rb'
656
- - ' lib/puppet/util/posix.rb'
657
-
658
652
# This cop supports safe auto-correction (--auto-correct).
659
653
Lint/RedundantRequireStatement :
660
654
Exclude :
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def initialize
45
45
46
46
def discover ( type , error_collector = nil , name_authority = Pcore ::RUNTIME_NAME_AUTHORITY )
47
47
# Static loader only contains runtime types
48
- return EMPTY_ARRAY unless type == :type && name_authority == name_authority = Pcore ::RUNTIME_NAME_AUTHORITY #rubocop:disable Lint/AssignmentInCondition
48
+ return EMPTY_ARRAY unless type == :type && name_authority == name_authority = Pcore ::RUNTIME_NAME_AUTHORITY
49
49
50
50
typed_names = type == :type && name_authority == Pcore ::RUNTIME_NAME_AUTHORITY ? @loaded . keys : EMPTY_ARRAY
51
51
block_given? ? typed_names . select { |tn | yield ( tn ) } : typed_names
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def get_groups_list(user)
40
40
user_gid = Puppet ::Etc . getpwnam ( user ) . gid
41
41
ngroups = Puppet ::FFI ::POSIX ::Constants ::MAXIMUM_NUMBER_OF_GROUPS
42
42
43
- while true do # rubocop:disable Lint/LiteralInCondition
43
+ while true do
44
44
FFI ::MemoryPointer . new ( :int ) do |ngroups_ptr |
45
45
FFI ::MemoryPointer . new ( :uint , ngroups ) do |groups_ptr |
46
46
old_ngroups = ngroups
You can’t perform that action at this time.
0 commit comments