From d473119f9d81c078a666a755b0c8376217643478 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 24 Dec 2018 17:36:18 +0100 Subject: [PATCH] Enable the Lint/ParenthesesAsGroupedExpression cop --- .rubocop.yml | 4 +++- app/controllers/admin_controller.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c48d754f1..37e8dae9d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -394,7 +394,9 @@ Lint/OrderedMagicComments: Enabled: true Lint/ParenthesesAsGroupedExpression: - Enabled: false + Enabled: true + Exclude: + - "spec/**/*" Lint/PercentStringArray: Enabled: false diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 235ef781f..175795308 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -2,7 +2,7 @@ class AdminController < ApplicationController before_action :authenticate_administrateur! def index - redirect_to (admin_procedures_path) + redirect_to(admin_procedures_path) end def retrieve_procedure