Skip to content

Commit a98ed06

Browse files
committed
Lint/ParenthesesAsGroupedExpression
Remove extra space before parentheses.
1 parent bd98b02 commit a98ed06

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,6 @@ Lint/NestedMethodDefinition:
649649
- 'lib/puppet/pops/types/types.rb'
650650
- 'lib/puppet/type.rb'
651651

652-
# This cop supports safe auto-correction (--auto-correct).
653-
Lint/ParenthesesAsGroupedExpression:
654-
Exclude:
655-
- 'lib/puppet/face/epp.rb'
656-
- 'lib/puppet/face/parser.rb'
657-
- 'lib/puppet/util/retry_action.rb'
658-
659652
# This cop supports safe auto-correction (--auto-correct).
660653
Lint/RedundantCopDisableDirective:
661654
Exclude:

lib/puppet/face/epp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
end
104104

105105

106-
action (:dump) do
106+
action(:dump) do
107107
summary _("Outputs a dump of the internal template parse tree for debugging")
108108
arguments "[--format <old|pn|json>] [--pretty] { -e <source> | [<templates> ...] } "
109109
returns _("A dump of the resulting AST model unless there are syntax or validation errors.")
@@ -204,7 +204,7 @@
204204
end
205205
end
206206

207-
action (:render) do
207+
action(:render) do
208208
summary _("Renders an epp template as text")
209209
arguments "-e <source> | [<templates> ...] "
210210
returns _("A rendered result of one or more given templates.")

lib/puppet/face/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
end
102102

103103

104-
action (:dump) do
104+
action(:dump) do
105105
summary _("Outputs a dump of the internal parse tree for debugging")
106106
arguments "[--format <old|pn|json>] [--pretty] { -e <source> | [<templates> ...] } "
107107
returns _("A dump of the resulting AST model unless there are syntax or validation errors.")

lib/puppet/util/retry_action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def self.retry_action(options = {})
3838

3939
# Increase the amount of time that we sleep after every
4040
# failed retry attempt.
41-
sleep (((2 ** failures) -1) * 0.1)
41+
sleep(((2 ** failures) -1) * 0.1)
4242

4343
retry
4444

0 commit comments

Comments
 (0)