Skip to content

Commit f685157

Browse files
committed
Layout/EmptyLinesAroundClassBody
This commit enables the Rubocop Layout/EmptyLinesAroundClassBody cop and addresses all offenses.
1 parent 175e6cf commit f685157

File tree

131 files changed

+0
-187
lines changed

Some content is hidden

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

131 files changed

+0
-187
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, beginning_only, ending_only
36-
Layout/EmptyLinesAroundClassBody:
37-
Enabled: false
38-
3933
# This cop supports safe auto-correction (--auto-correct).
4034
Layout/EmptyLinesAroundExceptionHandlingKeywords:
4135
Enabled: false

lib/hiera/scope.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,5 @@ def find_hostclass(scope)
8686

8787
# This is needed for type conversion to work
8888
def_delegators :@real, :call_function
89-
9089
end
9190
end

lib/puppet/application/agent.rb

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

99
class Puppet::Application::Agent < Puppet::Application
10-
1110
run_mode :agent
1211

1312
def app_defaults

lib/puppet/application/describe.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require_relative '../../puppet/application'
33

44
class Formatter
5-
65
def initialize(width)
76
@width = width
87
end
@@ -48,11 +47,9 @@ def scrub(text)
4847
return text
4948
end
5049
end
51-
5250
end
5351

5452
class TypeDoc
55-
5653
def initialize
5754
@format = Formatter.new(76)
5855
@types = {}
@@ -160,7 +157,6 @@ def list_providers(type)
160157
list = type.providers.sort_by(&:to_s).join(", ")
161158
puts @format.wrap(list, :indent => 4)
162159
end
163-
164160
end
165161

166162
class Puppet::Application::Describe < Puppet::Application
@@ -250,5 +246,4 @@ def setup
250246
handle_help(nil) unless options[:list] || options[:types].size > 0
251247
$stderr.puts "Warning: ignoring types when listing all types" if options[:list] && options[:types].size > 0
252248
end
253-
254249
end

lib/puppet/application/device.rb

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

77
class Puppet::Application::Device < Puppet::Application
8-
98
run_mode :agent
109

1110
attr_accessor :args, :agent, :host

lib/puppet/application/lookup.rb

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

77
class Puppet::Application::Lookup < Puppet::Application
8-
98
RUN_HELP = _("Run 'puppet lookup --help' for more details").freeze
109
DEEP_MERGE_OPTIONS = '--knock-out-prefix, --sort-merged-arrays, and --merge-hash-arrays'
1110
TRUSTED_INFORMATION_FACTS = ["hostname", "domain", "fqdn", "clientcert"].freeze

lib/puppet/application/script.rb

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

77
class Puppet::Application::Script < Puppet::Application
8-
98
option("--debug","-d")
109
option("--execute EXECUTE","-e") do |arg|
1110
options[:code] = arg

lib/puppet/application/ssl.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require_relative '../../puppet/ssl/oids'
44

55
class Puppet::Application::Ssl < Puppet::Application
6-
76
run_mode :agent
87

98
def summary

lib/puppet/environments.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def get_conf(name)
139139
#
140140
# @api private
141141
class StaticPrivate < Static
142-
143142
# Unlisted
144143
#
145144
# @!macro loader_list

lib/puppet/etc.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
# @api private
4141
module Puppet::Etc
4242
class << self
43-
4443
# Etc::getgrent returns an Etc::Group struct object
4544
# On first call opens /etc/group and returns parse of first entry. Each subsquent call
4645
# returns new struct the next entry or nil if EOF. Call ::endgrent to close file.

0 commit comments

Comments
 (0)