Skip to content

Commit 00592c4

Browse files
committed
Layout/EmptyLineBetweenDefs
This commit enables the Rubocop Layout/EmptyLineBetweenDefs cop.
1 parent 62f677e commit 00592c4

Some content is hidden

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

49 files changed

+32
-39
lines changed

.rubocop_todo.yml

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

33-
# This cop supports safe auto-correction (--auto-correct).
34-
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
35-
Layout/EmptyLineBetweenDefs:
36-
Enabled: false
37-
3833
# This cop supports safe auto-correction (--auto-correct).
3934
Layout/EmptyLines:
4035
Enabled: false

lib/puppet/agent/disabler.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def disable_message
4444
nil
4545
end
4646

47-
4847
def disable_lockfile
4948
@disable_lockfile ||= Puppet::Util::JsonLockfile.new(Puppet[:agent_disabled_lockfile])
5049

lib/puppet/application/device.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def help
227227
HELP
228228
end
229229

230-
231230
def main
232231
if options[:resource] and !options[:target]
233232
raise _("resource command requires target")

lib/puppet/application/face_base.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def setup
205205
self.render_as ||= (@action.render_as || :console)
206206
end
207207

208-
209208
def main
210209
status = false
211210

lib/puppet/application/filebucket.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ def help
209209
HELP
210210
end
211211

212-
213212
def run_command
214213
@args = command_line.args
215214
command = args.shift

lib/puppet/face/module/list.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def unmet_dependencies(environment)
147147
unmet_deps
148148
end
149149

150-
151150
def warn_unmet_dependencies(environment)
152151
@unmet_deps = unmet_dependencies(environment)
153152

lib/puppet/functions.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ def self.init_dispatch(a_closure)
386386
end
387387
end
388388

389-
390389
# Public api methods of the DispatcherBuilder are available within dispatch()
391390
# blocks declared in a Puppet::Function.create_function() call.
392391
#
@@ -599,7 +598,6 @@ def internal_type_parse(type_string, loader)
599598
private :internal_type_parse
600599
end
601600

602-
603601
# The LocalTypeAliasBuilder is used by the 'local_types' method to collect the individual
604602
# type aliases given by the function's author.
605603
#
@@ -801,7 +799,6 @@ def self.from_to_names(func_info)
801799
end
802800
end
803801

804-
805802
# Injection and Weaving of parameters
806803
# ---
807804
# It is possible to inject and weave a set of well known parameters into a call.

lib/puppet/generate/type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def self.find_inputs(format = :pcore, environment = Puppet.lookup(:current_envir
138138
def self.bad_input?
139139
@bad_input
140140
end
141+
141142
# Generates files for the given inputs.
142143
# If a file is up to date (newer than input) it is kept.
143144
# If a file is out of date it is regenerated.

lib/puppet/http/pool.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def start(site, verifier, http)
7171
end
7272
end
7373

74-
7574
# Safely close a persistent connection.
7675
# Don't try to close a connection that's already closed.
7776
#

lib/puppet/interface/option.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,14 @@ def optparse_to_name(declaration)
102102
name.to_sym
103103
end
104104

105-
106105
def takes_argument?
107106
!!@argument
108107
end
108+
109109
def optional_argument?
110110
!!@optional_argument
111111
end
112+
112113
def required?
113114
!!@required
114115
end

0 commit comments

Comments
 (0)