From 55c280f74e50de3288ce25be21f0de1447bf6f3d Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Tue, 11 Sep 2018 13:19:15 +0200 Subject: [PATCH] Fix rubocop linter (cherry picked from commit decd82006b9d331675b549e2fb86e944c68d5dc4) --- share/linters/.rubocop.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/share/linters/.rubocop.yml b/share/linters/.rubocop.yml index 6d9837a727..dc5d0b073c 100644 --- a/share/linters/.rubocop.yml +++ b/share/linters/.rubocop.yml @@ -34,6 +34,11 @@ Layout/EmptyLinesAroundClassBody: Layout/EmptyLinesAroundModuleBody: EnforcedStyle: empty_lines + +# it's mandatory to left a empty line before guard clause +Layout/EmptyLineAfterGuardClause: + Enabled: true + ### ####### @@ -68,10 +73,6 @@ Style/EmptyElse: Style/For: EnforcedStyle: each -# it's mandatory to left a empty line before guard clause -Style/EmptyLineAfterGuardClause: - Enabled: true - # declare key, value pairs with => Style/HashSyntax: EnforcedStyle: hash_rockets