diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e1ce640846..b23647de64 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/lib/bolt/config/transport/options.rb b/lib/bolt/config/transport/options.rb index 7f7fca4e45..e667846f5e 100644 --- a/lib/bolt/config/transport/options.rb +++ b/lib/bolt/config/transport/options.rb @@ -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 diff --git a/lib/bolt/pal/yaml_plan/parameter.rb b/lib/bolt/pal/yaml_plan/parameter.rb index 15e6977e91..9567048558 100644 --- a/lib/bolt/pal/yaml_plan/parameter.rb +++ b/lib/bolt/pal/yaml_plan/parameter.rb @@ -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 diff --git a/rakelib/docs.rake b/rakelib/docs.rake index 846ac4df76..7533360bdb 100644 --- a/rakelib/docs.rake +++ b/rakelib/docs.rake @@ -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" => [ diff --git a/spec/unit/pal/yaml_plan/step_spec.rb b/spec/unit/pal/yaml_plan/step_spec.rb index cf91c851dd..f8ddf5d91a 100644 --- a/spec/unit/pal/yaml_plan/step_spec.rb +++ b/spec/unit/pal/yaml_plan/step_spec.rb @@ -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'