From 77c3f0b0adc15a46f3223d88d74ef18b2e3f8427 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 5 Nov 2020 10:59:26 -0800 Subject: [PATCH] Enable Style/CollectionCompact This probably isn't very common in cookbooks, but if we run into one it's a great way to reduce complexity. Signed-off-by: Tim Smith --- config/cookstyle.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/cookstyle.yml b/config/cookstyle.yml index 4e5f12f39..cae23581a 100644 --- a/config/cookstyle.yml +++ b/config/cookstyle.yml @@ -2763,4 +2763,8 @@ Style/ExpandPathArguments: # Avoid a safe navigation operator if we don't need it Lint/RedundantSafeNavigation: + Enabled: true + +# Avoid using blocks to remove nils from a Hash/Array +Style/CollectionCompact: Enabled: true \ No newline at end of file