Skip to content

Commit

Permalink
Rubcop autofix (Move leading spaces to the end of the previous line)
Browse files Browse the repository at this point in the history
  • Loading branch information
danadoherty639 committed Feb 26, 2025
1 parent 24c3ffc commit 0264bdc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 33 deletions.
25 changes: 0 additions & 25 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/FirstArrayElementIndentation:
EnforcedStyle: special_inside_parentheses

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/FirstHashElementIndentation:
EnforcedStyle: special_inside_parentheses

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: leading, trailing
Layout/LineContinuationLeadingSpace:
Exclude:
- 'lib/bolt/config/transport/options.rb'
- 'lib/bolt/pal/yaml_plan/parameter.rb'
- 'rakelib/docs.rake'
- 'spec/unit/pal/yaml_plan/step_spec.rb'

# Offense count: 253
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand Down
4 changes: 2 additions & 2 deletions lib/bolt/config/transport/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ module Options
"run-as-command" => {
type: Array,
description: "The command to elevate permissions. Bolt appends the user and command strings to the "\
"configured `run-as-command` before running it on the target. This command must not require "\
" aninteractive password prompt, and the `sudo-password` option is ignored when "\
"configured `run-as-command` before running it on the target. This command must not require "\
"aninteractive password prompt, and the `sudo-password` option is ignored when "\
"`run-as-command` is specified. The `run-as-command` must be specified as an array.",
items: {
type: String
Expand Down
4 changes: 2 additions & 2 deletions lib/bolt/pal/yaml_plan/parameter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def validate_param(param, definition)
definition_keys = definition.keys.to_set
unless PARAMETER_KEYS.superset?(definition_keys)
invalid_keys = definition_keys - PARAMETER_KEYS
raise Bolt::Error.new("Plan parameter #{param.inspect} contains illegal key(s)" \
" #{invalid_keys.to_a.inspect}",
raise Bolt::Error.new("Plan parameter #{param.inspect} contains illegal key(s) " \
"#{invalid_keys.to_a.inspect}",
"bolt/invalid-plan")
end
end
Expand Down
4 changes: 2 additions & 2 deletions rakelib/docs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ begin
},
{
"desc" => "Apply manifest code as another user, catching any errors.",
"exmp" => "$apply_results = apply($targets, '_catch_errors' => true, '_run_as' => 'bolt') {\n"\
" file { '/etc/puppetlabs':\n ensure => present\n }\n}"
"exmp" => "$apply_results = apply($targets, '_catch_errors' => true, '_run_as' => 'bolt') {\n "\
"file { '/etc/puppetlabs':\n ensure => present\n }\n}"
}
],
"signatures" => [
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/pal/yaml_plan/step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def make_string(str)
"parameters" => { "butter" => "crunchy peanut" } }
end
let(:output) {
" run_task('jam::raspberry', $bread, 'delicious',"\
" {'butter' => 'crunchy peanut'})\n"
" run_task('jam::raspberry', $bread, 'delicious', "\
"{'butter' => 'crunchy peanut'})\n"
}

include_examples 'metaparameters'
Expand Down

0 comments on commit 0264bdc

Please sign in to comment.