Skip to content

Commit d3d3f48

Browse files
committed
Layout/ClosingHeredocIndentation
This commit enables the Rubocop Layout/ClosingHeredocIndentation cop.
1 parent 4856544 commit d3d3f48

29 files changed

+32
-36
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ Layout/AssignmentIndentation:
6969
- 'lib/puppet/util.rb'
7070
- 'lib/puppet/util/windows/daemon.rb'
7171

72-
# This cop supports safe auto-correction (--auto-correct).
73-
Layout/ClosingHeredocIndentation:
74-
Enabled: false
75-
7672
# This cop supports safe auto-correction (--auto-correct).
7773
Layout/ClosingParenthesisIndentation:
7874
Enabled: false

lib/puppet/application/doc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module - see https://github.com/puppetlabs/puppetlabs-strings for more informati
112112
---------
113113
Copyright (c) 2011 Puppet Inc., LLC Licensed under the Apache 2.0 License
114114
115-
HELP
115+
HELP
116116
end
117117

118118
def handle_unknown( opt, arg )

lib/puppet/application/ssl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def help
8383
8484
* show:
8585
Print the full-text version of this host's certificate.
86-
HELP
86+
HELP
8787
end
8888

8989
option('--target CERTNAME') do |arg|

lib/puppet/datatypes/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
functions => {
1515
message => Callable[[], String[1]]
1616
}
17-
PUPPET
17+
PUPPET
1818

1919
require_relative '../../puppet/datatypes/impl/error'
2020

lib/puppet/defaults.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def self.initialize_default_settings!(settings)
430430
between the configured or resolved path.
431431
432432
When set to false, the resolved paths are reported instead of the configured paths.
433-
EOT
433+
EOT
434434
},
435435
:use_last_environment => {
436436
:type => :boolean,
@@ -441,7 +441,7 @@ def self.initialize_default_settings!(settings)
441441
environment and skip the node request.
442442
443443
When set to false, we will do the node request and ignore the environment data from the last_run_summary file.
444-
EOT
444+
EOT
445445
},
446446
:always_retry_plugins => {
447447
:type => :boolean,
@@ -462,7 +462,7 @@ def self.initialize_default_settings!(settings)
462462
feature. This behavior is almost always appropriate for the server,
463463
and can result in a significant performance improvement for types and
464464
features that are checked frequently.
465-
EOT
465+
EOT
466466
},
467467
:diff_args => {
468468
:default => lambda { default_diffargs },
@@ -709,7 +709,7 @@ def self.initialize_default_settings!(settings)
709709
releases this value will only determine if file content is cached.
710710
711711
Valid values are 0 (never cache) and 15 (15 second minimum wait time).
712-
WARNING
712+
WARNING
713713
end
714714
end
715715
},

lib/puppet/parser/functions/break.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
* Also see functions `next` and `return`
3636
* Since 4.8.0
37-
DOC
37+
DOC
3838
) do |_args|
3939
Puppet::Parser::Functions::Error.is4x('break')
4040
end

lib/puppet/parser/functions/create_resources.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
data binding and Puppet default value expressions are considered (in that order) for the
5252
final value of a parameter (just as when setting a parameter to `undef` in a Puppet language
5353
resource declaration).
54-
ENDHEREDOC
54+
ENDHEREDOC
5555
if Puppet[:tasks]
5656
raise Puppet::ParseErrorWithIssue.from_issue_and_stack(
5757
Puppet::Pops::Issues::CATALOG_OPERATION_NOT_SUPPORTED_WHEN_SCRIPTING,

lib/puppet/parser/functions/dig.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
exists in a structure without mandating that it always exists.
3434
3535
* Since 4.5.0
36-
DOC
36+
DOC
3737
) do |_args|
3838
Puppet::Parser::Functions::Error.is4x('dig')
3939
end

lib/puppet/parser/functions/each.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
documentation.
100100
101101
- Since 4.0.0
102-
DOC
102+
DOC
103103
) do |_args|
104104
Puppet::Parser::Functions::Error.is4x('each')
105105
end

lib/puppet/parser/functions/filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
~~~
7575
7676
- Since 4.0.0
77-
DOC
77+
DOC
7878
) do |_args|
7979
Puppet::Parser::Functions::Error.is4x('filter')
8080
end

0 commit comments

Comments
 (0)