Skip to content

Commit 101b117

Browse files
committed
Layout/EmptyLines
This commit enables the Rubocop Layout/EmptyLines cop.
1 parent 00592c4 commit 101b117

Some content is hidden

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

51 files changed

+0
-87
lines changed

.rubocop_todo.yml

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

33-
# This cop supports safe auto-correction (--auto-correct).
34-
Layout/EmptyLines:
35-
Enabled: false
36-
3733
# This cop supports safe auto-correction (--auto-correct).
3834
# Configuration parameters: EnforcedStyle.
3935
# SupportedStyles: around, only_before

lib/puppet/agent/locker.rb

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

46-
4746
end

lib/puppet/application/apply.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ def setup
310310

311311
Puppet.settings.use :main, :agent, :ssl
312312

313-
314313
if Puppet[:catalog_cache_terminus]
315314
Puppet::Resource::Catalog.indirection.cache_class = Puppet[:catalog_cache_terminus]
316315
end

lib/puppet/external/dot.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def each_option_pair
161161

162162
end
163163

164-
165164
# This is used when we build nodes that have shape=record
166165
# ports don't have options :)
167166

lib/puppet/face/epp.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
end
103103
end
104104

105-
106105
action(:dump) do
107106
summary _("Outputs a dump of the internal template parse tree for debugging")
108107
arguments "[--format <old|pn|json>] [--pretty] { -e <source> | [<templates> ...] } "

lib/puppet/face/module/list.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
end
107107
end
108108

109-
110109
def unmet_dependencies(environment)
111110
error_types = [:non_semantic_version, :version_mismatch, :missing]
112111

lib/puppet/face/parser.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
end
101101
end
102102

103-
104103
action(:dump) do
105104
summary _("Outputs a dump of the internal parse tree for debugging")
106105
arguments "[--format <old|pn|json>] [--pretty] { -e <source> | [<templates> ...] } "

lib/puppet/file_system/uniquefile.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def tmpdir
161161
File.expand_path(tmp)
162162
end
163163

164-
165164
class << self
166165
# yields with locking for +tmpname+ and returns the result of the
167166
# block.

lib/puppet/file_system/windows.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def replace_file(path, mode = nil)
144144
raise ArgumentError, "#{mode} is invalid: Only modes 0644, 0640, 0660, and 0440 are allowed"
145145
end
146146

147-
148147
tempfile = Puppet::FileSystem::Uniquefile.new(Puppet::FileSystem.basename_string(path), Puppet::FileSystem.dir_string(path))
149148
begin
150149
tempdacl = Puppet::Util::Windows::AccessControlList.new

lib/puppet/functions/index.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
param 'Any', :match
122122
end
123123

124-
125124
def index_Hash_1(hash)
126125
hash.each_pair { |x, y| return x if yield(y) }
127126
nil

0 commit comments

Comments
 (0)