Skip to content

Commit c0306e6

Browse files
committed
Correct Layout/HeredocIndentation
1 parent 64feb9b commit c0306e6

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 3
10-
# This cop supports safe autocorrection (--autocorrect).
11-
Lint/AmbiguousOperatorPrecedence:
12-
Exclude:
13-
- 'lib/puppet_x/puppetlabs/dsc_lite/dsc_type_helpers.rb'
14-
159
# Offense count: 3
1610
# Configuration parameters: AllowedMethods.
1711
# AllowedMethods: enums

lib/puppet_x/puppetlabs/dsc_lite/dsc_type_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def self.validate_mof_type(mof_type, embeddedinstance_name, name, value)
121121

122122
# signed values reserve 1 bit for sign
123123
signed = !mof_type[:type].start_with?('u')
124-
min = (signed ? eval('-0b' + '1' * (width - 1)) - 1 : 0) # rubocop:disable Security/Eval
125-
max = (signed ? eval('0b' + '1' * (width - 1)) : eval('0b' + '1' * width)) # rubocop:disable Security/Eval
124+
min = (signed ? eval('-0b' + ('1' * (width - 1))) - 1 : 0) # rubocop:disable Security/Eval
125+
max = (signed ? eval('0b' + ('1' * (width - 1))) : eval('0b' + ('1' * width))) # rubocop:disable Security/Eval
126126

127127
# munging has not yet occurred to convert these values prior to validation
128128
values = Array(value)

0 commit comments

Comments
 (0)