Skip to content

Commit d6b06a3

Browse files
committed
Layout/MultilineMethodDefinitionBraceLayout
This commit enables the Rubocop Layout/MultilineMethodDefinitionBraceLayout cop and addresses all offenses.
1 parent 5d126ea commit d6b06a3

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +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: symmetrical, new_line, same_line
28-
Layout/MultilineMethodDefinitionBraceLayout:
29-
Exclude:
30-
- 'lib/puppet/pal/pal_impl.rb'
31-
3225
# This cop supports safe auto-correction (--auto-correct).
3326
# Configuration parameters: EnforcedStyle, IndentationWidth.
3427
# SupportedStyles: aligned, indented

lib/puppet/pal/pal_impl.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ def self.in_tmp_environment(env_name,
236236
settings_hash: {},
237237
facts: nil,
238238
variables: {},
239-
&block
240-
)
239+
&block)
241240
assert_non_empty_string(env_name, _("temporary environment name"))
242241
# TRANSLATORS: do not translate variable name string in these assertions
243242
assert_optionally_empty_array(modulepath, 'modulepath')
@@ -288,8 +287,7 @@ def self.in_environment(env_name,
288287
envpath: nil,
289288
facts: nil,
290289
variables: {},
291-
&block
292-
)
290+
&block)
293291
# TRANSLATORS terms in the assertions below are names of terms in code
294292
assert_non_empty_string(env_name, 'env_name')
295293
assert_optionally_empty_array(modulepath, 'modulepath', true)

0 commit comments

Comments
 (0)