Skip to content

Commit 1902d9d

Browse files
committed
Layout/EmptyLinesAroundArguments
This commit enables the Rubocop Layout/EmptyLinesAroundArguments cop.
1 parent 0ef9c77 commit 1902d9d

File tree

10 files changed

+0
-26
lines changed

10 files changed

+0
-26
lines changed

.rubocop_todo.yml

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

33-
# This cop supports safe auto-correction (--auto-correct).
34-
Layout/EmptyLinesAroundArguments:
35-
Exclude:
36-
- 'lib/puppet/defaults.rb'
37-
- 'lib/puppet/parser/functions/sprintf.rb'
38-
- 'lib/puppet/settings.rb'
39-
- 'lib/puppet/type.rb'
40-
- 'lib/puppet/type/schedule.rb'
41-
- 'lib/puppet/util/diff.rb'
42-
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
43-
- 'lib/puppet/util/rdoc/generators/template/puppet/puppet.rb'
44-
- 'lib/puppet/util/windows/com.rb'
45-
4633
# This cop supports safe auto-correction (--auto-correct).
4734
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
4835
# AllowedMethods: alias_method, public, protected, private

lib/puppet/defaults.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,6 @@ def self.initialize_default_settings!(settings)
813813

814814
settings.define_settings(
815815
:main,
816-
817816
# We have to downcase the fqdn, because the current ssl stuff (as opposed to in master) doesn't have good facilities for
818817
# manipulating naming.
819818
:certname => {

lib/puppet/parser/functions/sprintf.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
```
4343
4444
This statement produces a notice of `value is : 42`."
45-
4645
) do |args|
4746
fmt = args[0]
4847
args = args[1..-1]

lib/puppet/settings.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,6 @@ def to_config
10901090
The file format supports octothorpe-commented lines, but not partial-line comments.
10911091
10921092
Generated on #{Time.now}.
1093-
10941093
}.gsub(/^/, "# ")
10951094

10961095
# Add a section heading that matches our name.

lib/puppet/type.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,6 @@ def self.validate(&block)
22812281
def log(msg)
22822282

22832283
Puppet::Util::Log.create(
2284-
22852284
:level => @parameters[:loglevel].value,
22862285
:message => msg,
22872286

lib/puppet/type/schedule.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ def self.mkdefaultschedules
400400
Puppet.debug "Creating default schedules"
401401

402402
result << self.new(
403-
404403
:name => "puppet",
405404
:period => :hourly,
406405

lib/puppet/util/diff.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def lcs_diff(data_old, data_new, format=:unified, context_lines=3)
4848
hunk = ::Diff::LCS::Hunk.new(
4949
data_old, data_new, piece,
5050
context_lines,
51-
5251
file_length_difference)
5352
file_length_difference = hunk.file_length_difference
5453
next unless oldhunk

lib/puppet/util/rdoc/generators/puppet_generator.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ def gen_class_index
242242
gen_composite_index(
243243
file,
244244
RDoc::Page::COMBO_INDEX,
245-
246245
"#{MODULE_DIR}/fr_#{file["file"].context.module_name}.html")
247246
end
248247
end
@@ -502,7 +501,6 @@ def write_on(f)
502501
template = TemplatePage.new(
503502
RDoc::Page::BODYINC,
504503
RDoc::Page::NODE_PAGE,
505-
506504
RDoc::Page::METHOD_LIST)
507505
template.write_html_on(f, @values)
508506
end
@@ -746,7 +744,6 @@ def write_on(f)
746744
template = TemplatePage.new(
747745
RDoc::Page::BODYINC,
748746
RDoc::Page::PLUGIN_PAGE,
749-
750747
RDoc::Page::PLUGIN_LIST)
751748
template.write_html_on(f, @values)
752749
end

lib/puppet/util/rdoc/generators/template/puppet/puppet.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,11 +849,9 @@ module Page
849849
!INCLUDE! <!-- banner header -->
850850
851851
<div id="bodyContent">
852-
853852
} + METHOD_LIST + %{
854853
855854
</div>
856-
857855
} + FOOTER
858856

859857
BODYINC = HEADER + %{
@@ -865,7 +863,6 @@ module Page
865863
!INCLUDE!
866864
867865
</div>
868-
869866
} + FOOTER
870867

871868
#####################################################################

lib/puppet/util/windows/com.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def initialize(opts = {})
196196

197197
IUnknown = Interface[
198198
FFI::WIN32::GUID['00000000-0000-0000-C000-000000000046'],
199-
200199
QueryInterface: [[:pointer, :pointer], :hresult],
201200
AddRef: [[], :win32_ulong],
202201
Release: [[], :win32_ulong]

0 commit comments

Comments
 (0)