Skip to content

Commit 8b3e5c8

Browse files
committed
Layout/InitialIndentation
This commit enables the Rubocop Layout/InitialIndentation cop and addresses all offenses.
1 parent 64e9603 commit 8b3e5c8

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.rubocop_todo.yml

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

25-
# This cop supports safe auto-correction (--auto-correct).
26-
Layout/InitialIndentation:
27-
Exclude:
28-
- 'lib/puppet/parser/functions/require.rb'
29-
3025
# This cop supports safe auto-correction (--auto-correct).
3126
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
3227
Layout/LeadingCommentSpace:

lib/puppet/parser/functions/require.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# frozen_string_literal: true
1+
# frozen_string_literal: true
22

3-
# Requires the specified classes
3+
# Requires the specified classes
44

5-
Puppet::Parser::Functions::newfunction(
6-
:require,
7-
:arity => -2,
8-
:doc => "Evaluate one or more classes, adding the required class as a dependency.
5+
Puppet::Parser::Functions::newfunction(
6+
:require,
7+
:arity => -2,
8+
:doc => "Evaluate one or more classes, adding the required class as a dependency.
99
1010
The relationship metaparameters work well for specifying relationships
1111
between individual resources, but they can be clumsy for specifying

0 commit comments

Comments
 (0)