Enable the Layout/EmptyLinesAroundMethodBody cop

This commit is contained in:
gregoirenovel 2017-06-12 16:06:07 +02:00
parent 24e7537c49
commit 82eb66cfe8
13 changed files with 1 additions and 13 deletions

View file

@ -61,7 +61,7 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
Enabled: false
Layout/EmptyLinesAroundMethodBody:
Enabled: false
Enabled: true
Layout/EmptyLinesAroundModuleBody:
Enabled: false

View file

@ -40,7 +40,6 @@ class Admin::ProceduresController < AdminController
end
def edit
end
def destroy

View file

@ -1,5 +1,4 @@
class CguController < ApplicationController
def index
end
end

View file

@ -1,6 +1,5 @@
class NewAdminMailer < ApplicationMailer
def new_admin_email admin, password
@admin = admin
@password = password

View file

@ -1,6 +1,5 @@
class WelcomeMailer < ApplicationMailer
def welcome_email user
@user = user
mail(to: user.email,

View file

@ -52,7 +52,6 @@ class Gestionnaire < ActiveRecord::Base
end
def build_default_preferences_list_dossier procedure_id=nil
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
table.second.each do |column|
if valid_couple_table_attr? table.first, column.first

View file

@ -1,6 +1,5 @@
class ClamavService
def self.safe_file? path_file
if Rails.env == 'development'
return CLAMAV[:response] if CLAMAV[:mock?]
end

View file

@ -13,7 +13,6 @@ class DossiersListGestionnaireService
'termine' => termine,
'archive' => archive,
'all_state' => all_state}[@liste]
end
def self.dossiers_liste_libelle

View file

@ -11,7 +11,6 @@ class GeojsonService
end
def self.to_json_polygon_for_cadastre coordinates
polygon = {
geom: {
type: "Feature",

View file

@ -1,6 +1,5 @@
class ChangeStateConfirmedToValidated < ActiveRecord::Migration
def change
Dossier.where(state: 'confirmed').update_all(state: 'validated')
end
end

View file

@ -7,6 +7,5 @@ class DeleteAttributsToDossier < ActiveRecord::Migration
remove_column :dossiers, :position_lon
remove_column :dossiers, :ref_dossier_carto
end
end

View file

@ -1,7 +1,6 @@
class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
class Gestionnaire < ActiveRecord::Base
def build_default_preferences_list_dossier
PreferenceListDossier.available_columns.each do |table|
table.second.each do |column|
if valid_couple_table_attr? table.first, column.first

View file

@ -96,7 +96,6 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
has_many :procedures, through: :assign_to
def build_default_preferences_list_dossier procedure_id=nil
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
table.second.each do |column|
if valid_couple_table_attr? table.first, column.first