From 7e4268db678b5550e820967ffebb5f571dd0377f Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 1 Oct 2018 14:08:12 +0200 Subject: [PATCH] Enable Style/TrailingCommaInArguments --- .rubocop.yml | 2 +- app/lib/carto/sgmap/api.rb | 2 +- spec/models/procedure_spec.rb | 2 +- .../dossiers/_envoyer_dossier_block.html.haml_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 55079ab2a..09c61cf36 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1220,7 +1220,7 @@ Style/TrailingBodyOnModule: Enabled: true Style/TrailingCommaInArguments: - Enabled: false + Enabled: true Style/TrailingCommaInArrayLiteral: Enabled: true diff --git a/app/lib/carto/sgmap/api.rb b/app/lib/carto/sgmap/api.rb index e084caebd..4dce78f16 100644 --- a/app/lib/carto/sgmap/api.rb +++ b/app/lib/carto/sgmap/api.rb @@ -19,7 +19,7 @@ class CARTO::SGMAP::API RestClient::Resource.new( url, - verify_ssl: verify_ssl_mode, + verify_ssl: verify_ssl_mode ).post params[:geojson], content_type: 'application/json' rescue RestClient::InternalServerError diff --git a/spec/models/procedure_spec.rb b/spec/models/procedure_spec.rb index 9642789c0..f2c2d9082 100644 --- a/spec/models/procedure_spec.rb +++ b/spec/models/procedure_spec.rb @@ -753,7 +753,7 @@ describe Procedure do p = create( :procedure, juridique_required: false, - cadre_juridique: nil, + cadre_juridique: nil ) expect(p.juridique_required).to be_falsey diff --git a/spec/views/new_gestionnaire/dossiers/_envoyer_dossier_block.html.haml_spec.rb b/spec/views/new_gestionnaire/dossiers/_envoyer_dossier_block.html.haml_spec.rb index f64785c14..464a42089 100644 --- a/spec/views/new_gestionnaire/dossiers/_envoyer_dossier_block.html.haml_spec.rb +++ b/spec/views/new_gestionnaire/dossiers/_envoyer_dossier_block.html.haml_spec.rb @@ -5,7 +5,7 @@ describe 'new_gestionnaire/dossiers/envoyer_dossier_block.html.haml', type: :vie render( 'new_gestionnaire/dossiers/envoyer_dossier_block.html.haml', dossier: dossier, - potential_recipients: potential_recipients, + potential_recipients: potential_recipients ) end