From a0554f5bbad70cbba75401960ed0c44c0e83befe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 25 Oct 2019 22:49:54 +0200 Subject: [PATCH] Apply Layout/LeadingBlankLines rubocop rule This rule is pretty obvious. However, we weren't following it in a couple of places. --- .rubocop.yml | 3 +++ app/models/budget_administrator.rb | 1 - app/models/custom/verification/residence.rb | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c12530402..dbf9532b5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -70,6 +70,9 @@ Layout/IndentationConsistency: Layout/IndentationWidth: Enabled: true +Layout/LeadingBlankLines: + Enabled: true + Layout/MultilineBlockLayout: Enabled: true diff --git a/app/models/budget_administrator.rb b/app/models/budget_administrator.rb index 0f4b121a2..4cf18a3ce 100644 --- a/app/models/budget_administrator.rb +++ b/app/models/budget_administrator.rb @@ -1,4 +1,3 @@ - class BudgetAdministrator < ApplicationRecord belongs_to :budget belongs_to :administrator diff --git a/app/models/custom/verification/residence.rb b/app/models/custom/verification/residence.rb index 95c94a99b..a0e71dda5 100644 --- a/app/models/custom/verification/residence.rb +++ b/app/models/custom/verification/residence.rb @@ -1,4 +1,3 @@ - require_dependency Rails.root.join("app", "models", "verification", "residence").to_s class Verification::Residence