Skip to content

Commit 39bb919

Browse files
committed
Layout/TrailingEmptyLines
This commit enables the Rubocop Layout/TrailingEmptyLines cop and addresses all offenses.
1 parent 23f0018 commit 39bb919

Some content is hidden

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

67 files changed

+7
-73
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ I18n/GetText/DecorateStringFormattingUsingPercent:
2222
I18n/RailsI18n/DecorateString:
2323
Enabled: false
2424

25-
# This cop supports safe auto-correction (--auto-correct).
26-
# Configuration parameters: EnforcedStyle.
27-
# SupportedStyles: final_newline, final_blank_line
28-
Layout/TrailingEmptyLines:
29-
Enabled: false
30-
3125
# This cop supports safe auto-correction (--auto-correct).
3226
# Configuration parameters: AllowInHeredoc.
3327
Layout/TrailingWhitespace:

lib/hiera_puppet.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,3 @@ def hiera_config_file
7676
end
7777
end
7878
end
79-

lib/puppet/compilable_resource_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ module Puppet::CompilableResourceType
1414
def is_3x_ruby_plugin?
1515
true
1616
end
17-
end
17+
end

lib/puppet/concurrent/lock.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ def synchronize
1313
end
1414
end
1515
end
16-

lib/puppet/confine/feature.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ def message(value)
1616
"feature #{value} is missing"
1717
end
1818
end
19-

lib/puppet/face/facts.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,3 @@
174174
end
175175
end
176176
end
177-

lib/puppet/functions/contain.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ def contain(scope, *classes)
5555
# Result is an Array[Class, 1, n] which allows chaining other operations
5656
result
5757
end
58-
end
58+
end

lib/puppet/http/response_converter.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ def to_ruby_response(response)
2323
result
2424
end
2525
end
26-

lib/puppet/indirector/data_binding/hiera.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
class Puppet::DataBinding::Hiera < Puppet::Indirector::Hiera
77
desc "Retrieve data using Hiera."
88
end
9-

lib/puppet/indirector/fact_search.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ def compare_timestamp(operator, value1, value2)
5959
value1 != value2
6060
end
6161
end
62-
end
62+
end

0 commit comments

Comments
 (0)