From 45fedfe41065c3ed78462fed7835ae48c4a594b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 7 Nov 2019 13:17:26 +0100 Subject: [PATCH] Enable Lint/SafeNavigationChain rubocop rule We didn't add it before because we weren't following it in the code related to votation types, but we've removed that code. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 03b0861e6..934a3d5c1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -167,6 +167,9 @@ Lint/LiteralAsCondition: Lint/ParenthesesAsGroupedExpression: Enabled: true +Lint/SafeNavigationChain: + Enabled: true + Lint/ShadowingOuterLocalVariable: Enabled: true