Skip to content

Commit 0ef9c77

Browse files
committed
Layout/EmptyLinesAroundAccessModifier
This commit enables the Rubocop Layout/EmptyLinesAroundAccessModifier cop.
1 parent 101b117 commit 0ef9c77

File tree

18 files changed

+22
-6
lines changed

18 files changed

+22
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ Layout/EmptyLineAfterGuardClause:
3030
Layout/EmptyLineAfterMagicComment:
3131
Enabled: false
3232

33-
# This cop supports safe auto-correction (--auto-correct).
34-
# Configuration parameters: EnforcedStyle.
35-
# SupportedStyles: around, only_before
36-
Layout/EmptyLinesAroundAccessModifier:
37-
Enabled: false
38-
3933
# This cop supports safe auto-correction (--auto-correct).
4034
Layout/EmptyLinesAroundArguments:
4135
Exclude:

lib/puppet/file_bucket/dipper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def list(fromdate, todate)
168168
end
169169

170170
private
171+
171172
def absolutize_path( path )
172173
Pathname.new(path).realpath
173174
end

lib/puppet/file_system/posix.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def compare_stream(path, stream)
2626
end
2727

2828
private
29+
2930
def stream_blksize(*streams)
3031
streams.each do |s|
3132
next unless s.respond_to?(:stat)

lib/puppet/interface.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ def deprecated?
198198
# to be unrecognizable in the final outcome. At which point we will throw
199199
# all this away, replace it with something nice, and work out if we should
200200
# be making this visible to the outside world... --daniel 2011-04-14
201+
201202
private
203+
202204
# @return [void]
203205
# @api private
204206
def __invoke_decorations(type, action, passed_args = [], passed_options = {})

lib/puppet/interface/action.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ def validate_and_clean(original)
395395
# Support code for action decoration; see puppet/interface.rb for the gory
396396
# details of why this is hidden away behind private. --daniel 2011-04-15
397397
private
398+
398399
# @return [void]
399400
# @api private
400401
def __add_method(name, proc)

lib/puppet/interface/action_builder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def render_as(value = nil)
150150
end
151151

152152
private
153+
153154
def initialize(face, name, &block)
154155
@face = face
155156
@action = Puppet::Interface::Action.new(face, name)

lib/puppet/module_tool/applications/upgrader.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def installed_release.priority
220220
end
221221

222222
private
223+
223224
# rubocop:disable Naming/MemoizedInstanceVariableName
224225
def module_repository
225226
@repo ||= Puppet::Forge.new(Puppet[:module_repository])

lib/puppet/pops/types/types.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ def callable_args?(callable_t, guard)
619619
DEFAULT = PUndefType.new
620620

621621
protected
622+
622623
# @api private
623624
def _assignable?(o, guard)
624625
o.is_a?(PUndefType)
@@ -680,6 +681,7 @@ def instance?(o, guard = nil)
680681
DEFAULT = PDefaultType.new
681682

682683
protected
684+
683685
# @api private
684686
def _assignable?(o, guard)
685687
o.is_a?(PDefaultType)
@@ -3142,6 +3144,7 @@ def instance?(o, guard = nil)
31423144
end
31433145

31443146
protected
3147+
31453148
# @api private
31463149
def _assignable?(o, guard)
31473150
o.is_a?(PCatalogEntryType)

lib/puppet/provider/file/windows.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ def munge_windows_system_group(current, should)
135135
end
136136

137137
attr_reader :file
138+
138139
private
140+
139141
def file
140142
@file ||= Puppet::FileSystem.pathname(resource[:path])
141143
end

lib/puppet/provider/package/portage.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def latest
239239
end
240240

241241
private
242+
242243
def eix_get_version_for_versions(versions, target)
243244
# [2.7.10-r1,2.7.12,3.4.3-r1,3.4.5,3.5.2] 3.5.2
244245
return nil if versions.nil?
@@ -249,6 +250,7 @@ def eix_get_version_for_versions(versions, target)
249250
end
250251

251252
private
253+
252254
def eix_get_version_for_slot(versions_and_slots, slot)
253255
# [2.7.12:2.7 3.4.5:3.4 3.5.2:3.5] 3.5
254256
return nil if versions_and_slots.nil?

0 commit comments

Comments
 (0)