From a8f76e5e89d96b833a253d9573e5479304cc17e7 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Fri, 8 Dec 2023 12:36:44 -0800 Subject: [PATCH] Naming/BlockParameterName This commit enables the Rubocop Naming/BlockParameterName cop. --- .rubocop.yml | 5 +++++ .rubocop_todo.yml | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 891875aab7f..2850d967599 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -58,6 +58,11 @@ Metrics/PerceivedComplexity: Naming/BinaryOperatorParameterName: Enabled: false +Naming/BlockParameterName: + Exclude: + - 'lib/puppet/util/windows/daemon.rb' + - 'lib/puppet/util/windows/user.rb' + Naming/ClassAndModuleCamelCase: Exclude: - 'lib/puppet/ffi/windows/structs.rb' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 44981424e10..f53915d70f6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -646,12 +646,6 @@ Lint/UnusedMethodArgument: Naming/AccessorMethodName: Enabled: false -# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. -Naming/BlockParameterName: - Exclude: - - 'lib/puppet/util/windows/daemon.rb' - - 'lib/puppet/util/windows/user.rb' - # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ # ForbiddenPrefixes: is_, has_, have_