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