Skip to content

Commit 9745498

Browse files
committed
Layout/SpaceAfterColon
This commit enables the Rubocop Layout/SpaceAfterColon cop and addresses all offenses.
1 parent cbb2c9d commit 9745498

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.rubocop_todo.yml

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

25-
# This cop supports safe auto-correction (--auto-correct).
26-
Layout/SpaceAfterColon:
27-
Exclude:
28-
- 'lib/puppet/configurer.rb'
29-
- 'lib/puppet/error.rb'
30-
3125
# This cop supports safe auto-correction (--auto-correct).
3226
Layout/SpaceAfterComma:
3327
Enabled: false

lib/puppet/configurer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def warn_number_of_top_level_facts(size, max_number)
144144
end
145145

146146
def warn_fact_value_length(value, max_length)
147-
Puppet.warning _("Fact value '%{value}' with the value length: '%{length}' exceeds the value length limit: %{max_length}") % { value: value, length:value.to_s.bytesize, max_length: max_length }
147+
Puppet.warning _("Fact value '%{value}' with the value length: '%{length}' exceeds the value length limit: %{max_length}") % { value: value, length: value.to_s.bytesize, max_length: max_length }
148148
end
149149

150150
def warn_fact_payload_size(payload, max_size)

lib/puppet/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class ErrorWithData < Puppet::Error
134134
include ExternalFileError
135135
attr_reader :error_data
136136

137-
def initialize(error_data, message, file: nil, line: nil, pos: nil, original:nil)
137+
def initialize(error_data, message, file: nil, line: nil, pos: nil, original: nil)
138138
super(message, file, line, pos, original)
139139
@error_data = error_data
140140
end

0 commit comments

Comments
 (0)