Skip to content

Commit 66d6e8c

Browse files
committed
Layout/ExtraSpacing
This commit enables the Rubocop Layout/ExtraSpacing cop and addresses all offenses.
1 parent 7666228 commit 66d6e8c

File tree

115 files changed

+185
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+185
-185
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-
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
27-
Layout/ExtraSpacing:
28-
Enabled: false
29-
3025
# This cop supports safe auto-correction (--auto-correct).
3126
# Configuration parameters: EnforcedStyle, IndentationWidth.
3227
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses

ext/windows/service/daemon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
require 'puppet/util/windows/monkey_patches/process'
1414

1515
class WindowsDaemon < Puppet::Util::Windows::Daemon
16-
CREATE_NEW_CONSOLE = 0x00000010
16+
CREATE_NEW_CONSOLE = 0x00000010
1717

1818
@run_thread = nil
1919
@LOG_TO_FILE = false

lib/hiera/puppet_function.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def self.init_dispatch
2323
scope_param
2424
param 'String',:key
2525
param 'Any', :default
26-
optional_param 'Any', :override
26+
optional_param 'Any', :override
2727
end
2828

2929
dispatch :hiera_block1 do

lib/puppet/application/apply.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Puppet::Application::Apply < Puppet::Application
2222
Puppet[:write_catalog_summary] = arg
2323
end
2424

25-
option("--catalog catalog", "-c catalog") do |arg|
25+
option("--catalog catalog", "-c catalog") do |arg|
2626
options[:catalog] = arg
2727
end
2828

@@ -204,11 +204,13 @@ def apply
204204
end
205205

206206
def main
207+
# rubocop:disable Layout/ExtraSpacing
207208
manifest = get_manifest() # Get either a manifest or nil if apply should use content of Puppet[:code]
208209
splay # splay if needed
209210
facts = get_facts() # facts or nil
210211
node = get_node() # node or error
211212
apply_environment = get_configured_environment(node, manifest)
213+
# rubocop:enable Layout/ExtraSpacing
212214

213215
# TRANSLATORS "puppet apply" is a program command and should not be translated
214216
Puppet.override({:current_environment => apply_environment, :loaders => create_loaders(apply_environment)}, _("For puppet apply")) do

lib/puppet/defaults.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ def self.initialize_default_settings!(settings)
16231623
:owner => "root",
16241624
:mode => "0640",
16251625
:desc => "The file in which puppet agent stores a list of the resources
1626-
associated with the retrieved configuration." },
1626+
associated with the retrieved configuration." },
16271627
:puppetdlog => {
16281628
:default => "$logdir/puppetd.log",
16291629
:type => :file,

lib/puppet/face/epp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197

198198
if !missing_files.empty?
199199
raise Puppet::Error, _("One or more file(s) specified did not exist:\n%{missing_files_list}") %
200-
{ missing_files_list: missing_files.collect { |f| " #{f}" }.join("\n") }
200+
{ missing_files_list: missing_files.collect { |f| " #{f}" }.join("\n") }
201201
end
202202
end
203203
buffer.string

lib/puppet/face/module/list.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
:label_unmet => true, :path => path, :label_invalid => false)
9494
else
9595
tree = []
96-
modules.sort_by { |mod| mod.forge_name or mod.name }.each do |mod|
96+
modules.sort_by { |mod| mod.forge_name or mod.name }.each do |mod|
9797
tree << list_build_node(mod, path, :label_unmet => false,
9898
:path => path, :label_invalid => true)
9999
end

lib/puppet/ffi/windows/constants.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ module Constants
296296
SERVICE_START_PENDING => SERVICE_RUNNING,
297297
SERVICE_STOP_PENDING => SERVICE_STOPPED
298298
}
299-
SERVICE_STATES = {
299+
SERVICE_STATES = {
300300
SERVICE_CONTINUE_PENDING => :SERVICE_CONTINUE_PENDING,
301301
SERVICE_PAUSE_PENDING => :SERVICE_PAUSE_PENDING,
302302
SERVICE_PAUSED => :SERVICE_PAUSED,

lib/puppet/ffi/windows/structs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class LUID_AND_ATTRIBUTES < FFI::Struct
116116
# } TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES;
117117
class TOKEN_PRIVILEGES < FFI::Struct
118118
layout :PrivilegeCount, :dword,
119-
:Privileges, [LUID_AND_ATTRIBUTES, 1] # placeholder for offset
119+
:Privileges, [LUID_AND_ATTRIBUTES, 1] # placeholder for offset
120120
end
121121

122122
# https://msdn.microsoft.com/en-us/library/windows/desktop/bb530717(v=vs.85).aspx

lib/puppet/file_serving/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def self.configuration
2020

2121
Mount = Puppet::FileServing::Mount
2222

23-
private_class_method :new
23+
private_class_method :new
2424

2525
attr_reader :mounts
2626

0 commit comments

Comments
 (0)