Skip to content

Commit 66bad02

Browse files
author
jordanbreen28
committed
(maint) - fix rubocop violations
1 parent 6479f27 commit 66bad02

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.rubocop_todo.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-05-30 12:44:48 UTC using RuboCop version 1.48.1.
3+
# on 2023-06-07 11:03:43 UTC using RuboCop version 1.48.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -98,7 +98,7 @@ RSpec/ContextWording:
9898
Exclude:
9999
- 'spec/unit/puppet/provider/logical_volume/lvm_spec.rb'
100100

101-
# Offense count: 22
101+
# Offense count: 23
102102
# Configuration parameters: IgnoredMetadata.
103103
RSpec/DescribeClass:
104104
Enabled: false
@@ -133,11 +133,12 @@ RSpec/MultipleDescribes:
133133
Exclude:
134134
- 'spec/unit/facter/lvm_support_spec.rb'
135135

136-
# Offense count: 25
136+
# Offense count: 26
137137
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
138138
# SupportedStyles: always, named_only
139139
RSpec/NamedSubject:
140140
Exclude:
141+
- 'spec/defines/volume_spec.rb'
141142
- 'spec/functions/bytes_to_size_spec.rb'
142143
- 'spec/functions/size_to_bytes_spec.rb'
143144
- 'spec/unit/classes/lvm_spec.rb'

lib/puppet/type/logical_volume.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ def insync?(is)
174174
desc 'An optimization in lvcreate, at least on Linux.'
175175
end
176176
newparam(:region_size) do
177-
desc 'A mirror is divided into regions of this size (in MB), the mirror log uses this granularity to track which regions are in sync. CAN NOT BE CHANGED on already mirrored volume.' \
178-
'Take your mirror size in terabytes and round up that number to the next power of 2, using that number as the -R argument.'
177+
desc 'A mirror is divided into regions of this size (in MB), the mirror log uses this granularity to track which regions are in sync. CAN NOT BE CHANGED on already mirrored volume. Take your mirror size in terabytes and round up that number to the next power of 2, using that number as the -R argument.' # rubocop:disable Layout/LineLength
179178
validate do |value|
180179
raise ArgumentError, "#{value} is not a valid region size in MB." unless %r{^[0-9]+$}i.match?(value.to_s)
181180
end

0 commit comments

Comments
 (0)