Skip to content

Commit 584abe3

Browse files
committed
Layout/EmptyLinesAroundModuleBody
This commit enables the Rubocop Layout/EmptyLinesAroundModuleBody cop and addresses all offenses.
1 parent ff22ec8 commit 584abe3

File tree

109 files changed

+0
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+0
-133
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: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
36-
Layout/EmptyLinesAroundModuleBody:
37-
Enabled: false
38-
3933
# This cop supports safe auto-correction (--auto-correct).
4034
# Configuration parameters: EnforcedStyleAlignWith, Severity.
4135
# SupportedStylesAlignWith: keyword, variable, start_of_line

lib/puppet/agent/locker.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@ def lockfile
4242
@lockfile
4343
end
4444
private :lockfile
45-
4645
end

lib/puppet/application.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
require_relative '../puppet/application_support'
77

88
module Puppet
9-
109
# Defines an abstract Puppet application.
1110
#
1211
# # Usage

lib/puppet/application_support.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
module Puppet
1010
module ApplicationSupport
11-
1211
# Pushes a Puppet Context configured with a remote environment for an agent
1312
# (one that exists at the master end), and a regular environment for other
1413
# modes. The configuration is overridden with options from the command line

lib/puppet/concurrent/lock.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33

44
module Puppet
55
module Concurrent
6-
76
# A simple lock that at the moment only does any locking on jruby
87
class Lock
98
include Puppet::Concurrent::Synchronized
109
def synchronize
1110
yield
1211
end
1312
end
14-
1513
end
1614
end
1715

lib/puppet/concurrent/synchronized.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22
module Puppet
33
module Concurrent
4-
54
# Including Puppet::Concurrent::Synchronized into a class when running on JRuby
65
# causes all of its instance methods to be synchronized on the instance itself.
76
# When running on MRI it has no effect.
@@ -11,6 +10,5 @@ module Concurrent
1110
else
1211
module Synchronized; end
1312
end
14-
1513
end
1614
end

lib/puppet/defaults.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require_relative '../puppet/util/platform'
33

44
module Puppet
5-
65
def self.default_diffargs
76
'-u'
87
end

lib/puppet/environments.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
# @api private
55
module Puppet::Environments
6-
76
class EnvironmentNotFound < Puppet::Error
87
def initialize(environment_name, original = nil)
98
environmentpath = Puppet[:environmentpath]

lib/puppet/external/dot.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# It also supports undirected edges.
99

1010
module DOT
11-
1211
# These global vars are used to make nice graph source.
1312

1413
$tab = ' '

lib/puppet/ffi/posix/functions.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
module Puppet::FFI::POSIX
55
module Functions
6-
76
extend FFI::Library
87

98
ffi_convention :stdcall

0 commit comments

Comments
 (0)