Skip to content

Commit 6febfd7

Browse files
committed
Layout/FirstParameterIndentation
This commit enables the Rubocop Layout/FirstParameterIndentation cop and addresses all offenses.
1 parent fc674de commit 6febfd7

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
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, IndentationWidth.
27-
# SupportedStyles: consistent, align_parentheses
28-
Layout/FirstParameterIndentation:
29-
Exclude:
30-
- 'lib/puppet/pal/pal_impl.rb'
31-
3225
# This cop supports safe auto-correction (--auto-correct).
3326
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
3427
# SupportedHashRocketStyles: key, separator, table

lib/puppet/pal/pal_impl.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ module Pal
5757
# @yieldparam [Puppet::Pal::ScriptCompiler] compiler, a ScriptCompiler to perform operations on.
5858
#
5959
def self.with_script_compiler(
60-
configured_by_env: false,
60+
configured_by_env: false,
6161
manifest_file: nil,
6262
code_string: nil,
6363
facts: {},
6464
variables: {},
6565
set_local_facts: true,
6666
&block
67-
)
67+
)
6868
# TRANSLATORS: do not translate variable name strings in these assertions
6969
assert_mutually_exclusive(manifest_file, code_string, 'manifest_file', 'code_string')
7070
assert_non_empty_string(manifest_file, 'manifest_file', true)

0 commit comments

Comments
 (0)