Enable the Layout/EmptyLinesAroundMethodBody cop
This commit is contained in:
parent
24e7537c49
commit
82eb66cfe8
13 changed files with 1 additions and 13 deletions
|
@ -61,7 +61,7 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Layout/EmptyLinesAroundMethodBody:
|
Layout/EmptyLinesAroundMethodBody:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
Layout/EmptyLinesAroundModuleBody:
|
Layout/EmptyLinesAroundModuleBody:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
|
@ -40,7 +40,6 @@ class Admin::ProceduresController < AdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
class CguController < ApplicationController
|
class CguController < ApplicationController
|
||||||
def index
|
def index
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
class NewAdminMailer < ApplicationMailer
|
class NewAdminMailer < ApplicationMailer
|
||||||
def new_admin_email admin, password
|
def new_admin_email admin, password
|
||||||
|
|
||||||
@admin = admin
|
@admin = admin
|
||||||
@password = password
|
@password = password
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
class WelcomeMailer < ApplicationMailer
|
class WelcomeMailer < ApplicationMailer
|
||||||
def welcome_email user
|
def welcome_email user
|
||||||
|
|
||||||
@user = user
|
@user = user
|
||||||
|
|
||||||
mail(to: user.email,
|
mail(to: user.email,
|
||||||
|
|
|
@ -52,7 +52,6 @@ class Gestionnaire < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_default_preferences_list_dossier procedure_id=nil
|
def build_default_preferences_list_dossier procedure_id=nil
|
||||||
|
|
||||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||||
table.second.each do |column|
|
table.second.each do |column|
|
||||||
if valid_couple_table_attr? table.first, column.first
|
if valid_couple_table_attr? table.first, column.first
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
class ClamavService
|
class ClamavService
|
||||||
def self.safe_file? path_file
|
def self.safe_file? path_file
|
||||||
|
|
||||||
if Rails.env == 'development'
|
if Rails.env == 'development'
|
||||||
return CLAMAV[:response] if CLAMAV[:mock?]
|
return CLAMAV[:response] if CLAMAV[:mock?]
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,6 @@ class DossiersListGestionnaireService
|
||||||
'termine' => termine,
|
'termine' => termine,
|
||||||
'archive' => archive,
|
'archive' => archive,
|
||||||
'all_state' => all_state}[@liste]
|
'all_state' => all_state}[@liste]
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.dossiers_liste_libelle
|
def self.dossiers_liste_libelle
|
||||||
|
|
|
@ -11,7 +11,6 @@ class GeojsonService
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.to_json_polygon_for_cadastre coordinates
|
def self.to_json_polygon_for_cadastre coordinates
|
||||||
|
|
||||||
polygon = {
|
polygon = {
|
||||||
geom: {
|
geom: {
|
||||||
type: "Feature",
|
type: "Feature",
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
class ChangeStateConfirmedToValidated < ActiveRecord::Migration
|
class ChangeStateConfirmedToValidated < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
Dossier.where(state: 'confirmed').update_all(state: 'validated')
|
Dossier.where(state: 'confirmed').update_all(state: 'validated')
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,6 +7,5 @@ class DeleteAttributsToDossier < ActiveRecord::Migration
|
||||||
|
|
||||||
remove_column :dossiers, :position_lon
|
remove_column :dossiers, :position_lon
|
||||||
remove_column :dossiers, :ref_dossier_carto
|
remove_column :dossiers, :ref_dossier_carto
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
|
class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
|
||||||
class Gestionnaire < ActiveRecord::Base
|
class Gestionnaire < ActiveRecord::Base
|
||||||
def build_default_preferences_list_dossier
|
def build_default_preferences_list_dossier
|
||||||
|
|
||||||
PreferenceListDossier.available_columns.each do |table|
|
PreferenceListDossier.available_columns.each do |table|
|
||||||
table.second.each do |column|
|
table.second.each do |column|
|
||||||
if valid_couple_table_attr? table.first, column.first
|
if valid_couple_table_attr? table.first, column.first
|
||||||
|
|
|
@ -96,7 +96,6 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
||||||
has_many :procedures, through: :assign_to
|
has_many :procedures, through: :assign_to
|
||||||
|
|
||||||
def build_default_preferences_list_dossier procedure_id=nil
|
def build_default_preferences_list_dossier procedure_id=nil
|
||||||
|
|
||||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||||
table.second.each do |column|
|
table.second.each do |column|
|
||||||
if valid_couple_table_attr? table.first, column.first
|
if valid_couple_table_attr? table.first, column.first
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue