From 3e4798409562a581a8bce6fd354e8683ba7c1636 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 5 Nov 2020 11:47:03 -0800 Subject: [PATCH] Enable new cops These are all fixed in chef and ohai. Signed-off-by: Tim Smith --- config/chefstyle.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/chefstyle.yml b/config/chefstyle.yml index d78c0bc..7aae514 100644 --- a/config/chefstyle.yml +++ b/config/chefstyle.yml @@ -669,6 +669,22 @@ Style/ExpandPathArguments: Lint/RedundantSafeNavigation: Enabled: true +# Eases readability +Lint/RedundantStringCoercion: + Enabled: true + +# unnecessary complexity +Lint/RedundantWithObject: + Enabled: true + +# unnecessary complexity +Lint/RedundantWithIndex: + Enabled: true + +# avoid requiring twice +Lint/DuplicateRequire: + Enabled: true + Chef/Ruby/Ruby27KeywordArgumentWarnings: Description: Pass options to shell_out helpers without the brackets to avoid Ruby 2.7 deprecation warnings. Enabled: true