Skip to content

Commit 683c6bc

Browse files
committed
Layout/EmptyLinesAroundBeginBody
This commit enables the Rubocop Layout/EmptyLinesAroundBeginBody cop and fixes the two offenses.
1 parent ab6facd commit 683c6bc

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
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-
Layout/EmptyLinesAroundBeginBody:
35-
Exclude:
36-
- 'lib/puppet/util/diff.rb'
37-
- 'lib/puppet/util/retry_action.rb'
38-
3933
# This cop supports safe auto-correction (--auto-correct).
4034
# Configuration parameters: EnforcedStyle.
4135
# SupportedStyles: empty_lines, no_empty_lines

lib/puppet/util/diff.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def lcs_diff(data_old, data_new, format=:unified, context_lines=3)
4444

4545
diffs.each do |piece|
4646
begin
47-
4847
hunk = ::Diff::LCS::Hunk.new(
4948
data_old, data_new, piece,
5049
context_lines,

lib/puppet/util/retry_action.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def self.retry_action(options = {})
4141
sleep(((2 ** failures) -1) * 0.1)
4242

4343
retry
44-
4544
end
4645
end
4746
end

0 commit comments

Comments
 (0)