diff --git a/.rubocop.yml b/.rubocop.yml index ee20baacd..c806ff7c1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1177,7 +1177,7 @@ Style/FormatStringToken: EnforcedStyle: template Style/FrozenStringLiteralComment: - Enabled: false + Enabled: true Style/GlobalVars: Enabled: true diff --git a/Gemfile b/Gemfile index 0af7d45fe..0a44993e6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gem 'rails', '~> 7.0.8' # allows update to security fixes at any time diff --git a/Guardfile b/Guardfile index 30cfad9f1..e7b21a921 100644 --- a/Guardfile +++ b/Guardfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # A sample Guardfile # More info at https://github.com/guard/guard#readme diff --git a/Rakefile b/Rakefile index 9e233babc..aa1cd2b3b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. diff --git a/app/components/application_component.rb b/app/components/application_component.rb index b5b400157..7b7873bb6 100644 --- a/app/components/application_component.rb +++ b/app/components/application_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApplicationComponent < ViewComponent::Base include ViewComponent::Translatable include FlipperHelper diff --git a/app/components/attachment/edit_component.rb b/app/components/attachment/edit_component.rb index 90d0a5e58..926027ee2 100644 --- a/app/components/attachment/edit_component.rb +++ b/app/components/attachment/edit_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Display a widget for uploading, editing and deleting a file attachment class Attachment::EditComponent < ApplicationComponent attr_reader :champ diff --git a/app/components/attachment/multiple_component.rb b/app/components/attachment/multiple_component.rb index f994ed1cd..050a3b5da 100644 --- a/app/components/attachment/multiple_component.rb +++ b/app/components/attachment/multiple_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Display a widget for uploading, editing and deleting a file attachment class Attachment::MultipleComponent < ApplicationComponent DEFAULT_MAX_ATTACHMENTS = 10 diff --git a/app/components/attachment/pending_poll_component.rb b/app/components/attachment/pending_poll_component.rb index ab13a847b..6c1ec3c57 100644 --- a/app/components/attachment/pending_poll_component.rb +++ b/app/components/attachment/pending_poll_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Attachment::PendingPollComponent < ApplicationComponent attr_reader :attachments diff --git a/app/components/attachment/progress_bar_component.rb b/app/components/attachment/progress_bar_component.rb index 8e4605246..a7a745555 100644 --- a/app/components/attachment/progress_bar_component.rb +++ b/app/components/attachment/progress_bar_component.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + class Attachment::ProgressBarComponent < ApplicationComponent end diff --git a/app/components/attachment/progress_component.rb b/app/components/attachment/progress_component.rb index 311605091..3446a4161 100644 --- a/app/components/attachment/progress_component.rb +++ b/app/components/attachment/progress_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Attachment::ProgressComponent < ApplicationComponent attr_reader :attachment attr_reader :ignore_antivirus diff --git a/app/components/attachment/show_component.rb b/app/components/attachment/show_component.rb index ca109617a..6ea8ad7f8 100644 --- a/app/components/attachment/show_component.rb +++ b/app/components/attachment/show_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Attachment::ShowComponent < ApplicationComponent def initialize(attachment:, new_tab: false, truncate: false) @attachment = attachment diff --git a/app/components/conditions/champs_conditions_component.rb b/app/components/conditions/champs_conditions_component.rb index 27f85275c..b80685cb6 100644 --- a/app/components/conditions/champs_conditions_component.rb +++ b/app/components/conditions/champs_conditions_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Conditions::ChampsConditionsComponent < Conditions::ConditionsComponent def initialize(tdc:, upper_tdcs:, procedure_id:) @tdc, @condition, @source_tdcs = tdc, tdc.condition, upper_tdcs diff --git a/app/components/conditions/conditions_component.rb b/app/components/conditions/conditions_component.rb index 8817a1336..d4acf340b 100644 --- a/app/components/conditions/conditions_component.rb +++ b/app/components/conditions/conditions_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Conditions::ConditionsComponent < ApplicationComponent include Logic diff --git a/app/components/conditions/conditions_errors_component.rb b/app/components/conditions/conditions_errors_component.rb index 335716c97..0be954008 100644 --- a/app/components/conditions/conditions_errors_component.rb +++ b/app/components/conditions/conditions_errors_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Conditions::ConditionsErrorsComponent < ApplicationComponent def initialize(conditions:, source_tdcs:) @conditions, @source_tdcs = conditions, source_tdcs diff --git a/app/components/conditions/ineligibilite_rules_component.rb b/app/components/conditions/ineligibilite_rules_component.rb index a12ab262e..05dc3fe4c 100644 --- a/app/components/conditions/ineligibilite_rules_component.rb +++ b/app/components/conditions/ineligibilite_rules_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Conditions::IneligibiliteRulesComponent < Conditions::ConditionsComponent include Logic diff --git a/app/components/conditions/routing_rules_component.rb b/app/components/conditions/routing_rules_component.rb index 4db0f0d19..74a957bcc 100644 --- a/app/components/conditions/routing_rules_component.rb +++ b/app/components/conditions/routing_rules_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Conditions::RoutingRulesComponent < Conditions::ConditionsComponent include Logic diff --git a/app/components/dossiers/accuse_lecture_component.rb b/app/components/dossiers/accuse_lecture_component.rb index 78fe76f7f..6e3c8c375 100644 --- a/app/components/dossiers/accuse_lecture_component.rb +++ b/app/components/dossiers/accuse_lecture_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::AccuseLectureComponent < ApplicationComponent def initialize(dossier:) @dossier = dossier diff --git a/app/components/dossiers/autosave_footer_component.rb b/app/components/dossiers/autosave_footer_component.rb index e0162bed5..52b8ed534 100644 --- a/app/components/dossiers/autosave_footer_component.rb +++ b/app/components/dossiers/autosave_footer_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::AutosaveFooterComponent < ApplicationComponent include ApplicationHelper attr_reader :dossier diff --git a/app/components/dossiers/batch_alert_component.rb b/app/components/dossiers/batch_alert_component.rb index 67d5b9f3f..594b97f0f 100644 --- a/app/components/dossiers/batch_alert_component.rb +++ b/app/components/dossiers/batch_alert_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::BatchAlertComponent < ApplicationComponent attr_reader :batch diff --git a/app/components/dossiers/batch_operation_component.rb b/app/components/dossiers/batch_operation_component.rb index 8d5a09405..3ee024f69 100644 --- a/app/components/dossiers/batch_operation_component.rb +++ b/app/components/dossiers/batch_operation_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::BatchOperationComponent < ApplicationComponent attr_reader :statut, :procedure diff --git a/app/components/dossiers/batch_operation_inline_buttons_component.rb b/app/components/dossiers/batch_operation_inline_buttons_component.rb index bba90741f..85327a882 100644 --- a/app/components/dossiers/batch_operation_inline_buttons_component.rb +++ b/app/components/dossiers/batch_operation_inline_buttons_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::BatchOperationInlineButtonsComponent < ApplicationComponent attr_reader :opt, :icons, :form diff --git a/app/components/dossiers/batch_select_more_component.rb b/app/components/dossiers/batch_select_more_component.rb index 7ed36b3d9..3ba807c96 100644 --- a/app/components/dossiers/batch_select_more_component.rb +++ b/app/components/dossiers/batch_select_more_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::BatchSelectMoreComponent < ApplicationComponent def initialize(dossiers_count:, filtered_sorted_ids:) @dossiers_count = dossiers_count diff --git a/app/components/dossiers/champs_rows_show_component.rb b/app/components/dossiers/champs_rows_show_component.rb index 838fb30cd..5eba03d4a 100644 --- a/app/components/dossiers/champs_rows_show_component.rb +++ b/app/components/dossiers/champs_rows_show_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::ChampsRowsShowComponent < ApplicationComponent attr_reader :profile attr_reader :seen_at diff --git a/app/components/dossiers/edit_footer_component.rb b/app/components/dossiers/edit_footer_component.rb index 5f5bb8980..b5acc51f2 100644 --- a/app/components/dossiers/edit_footer_component.rb +++ b/app/components/dossiers/edit_footer_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::EditFooterComponent < ApplicationComponent delegate :can_passer_en_construction?, to: :@dossier diff --git a/app/components/dossiers/export_dropdown_component.rb b/app/components/dossiers/export_dropdown_component.rb index 91a3de116..c970576e3 100644 --- a/app/components/dossiers/export_dropdown_component.rb +++ b/app/components/dossiers/export_dropdown_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::ExportDropdownComponent < ApplicationComponent include ApplicationHelper diff --git a/app/components/dossiers/export_link_component.rb b/app/components/dossiers/export_link_component.rb index 647d08a4b..78a997f71 100644 --- a/app/components/dossiers/export_link_component.rb +++ b/app/components/dossiers/export_link_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::ExportLinkComponent < ApplicationComponent include ApplicationHelper include TabsHelper diff --git a/app/components/dossiers/geo_area_component.rb b/app/components/dossiers/geo_area_component.rb index 6e004d635..7e39fa2ed 100644 --- a/app/components/dossiers/geo_area_component.rb +++ b/app/components/dossiers/geo_area_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::GeoAreaComponent < ApplicationComponent attr_reader :geo_area, :editing diff --git a/app/components/dossiers/geo_areas_component.rb b/app/components/dossiers/geo_areas_component.rb index 51e0b93ab..dd7277f13 100644 --- a/app/components/dossiers/geo_areas_component.rb +++ b/app/components/dossiers/geo_areas_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::GeoAreasComponent < ApplicationComponent attr_reader :champ, :editing diff --git a/app/components/dossiers/individual_form_component.rb b/app/components/dossiers/individual_form_component.rb index 59ce27d9f..3dbe2d035 100644 --- a/app/components/dossiers/individual_form_component.rb +++ b/app/components/dossiers/individual_form_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::IndividualFormComponent < ApplicationComponent delegate :for_tiers?, to: :@dossier diff --git a/app/components/dossiers/invalid_ineligibilite_rules_component.rb b/app/components/dossiers/invalid_ineligibilite_rules_component.rb index 526bdbc94..78047042f 100644 --- a/app/components/dossiers/invalid_ineligibilite_rules_component.rb +++ b/app/components/dossiers/invalid_ineligibilite_rules_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::InvalidIneligibiliteRulesComponent < ApplicationComponent delegate :can_passer_en_construction?, to: :@dossier diff --git a/app/components/dossiers/message_component.rb b/app/components/dossiers/message_component.rb index a67c72e44..1a1329c3c 100644 --- a/app/components/dossiers/message_component.rb +++ b/app/components/dossiers/message_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::MessageComponent < ApplicationComponent def initialize(commentaire:, connected_user:, messagerie_seen_at: nil, show_reply_button: false, groupe_gestionnaire: nil) @commentaire = commentaire diff --git a/app/components/dossiers/notified_toggle_component.rb b/app/components/dossiers/notified_toggle_component.rb index 6b2f14473..713afcc83 100644 --- a/app/components/dossiers/notified_toggle_component.rb +++ b/app/components/dossiers/notified_toggle_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::NotifiedToggleComponent < ApplicationComponent def initialize(procedure:, procedure_presentation:) @procedure = procedure diff --git a/app/components/dossiers/row_show_component.rb b/app/components/dossiers/row_show_component.rb index eb08a1bbb..e4ef1cfcd 100644 --- a/app/components/dossiers/row_show_component.rb +++ b/app/components/dossiers/row_show_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::RowShowComponent < ApplicationComponent attr_reader :label attr_reader :profile diff --git a/app/components/dossiers/user_filter_component.rb b/app/components/dossiers/user_filter_component.rb index acbb62b66..c3bb83b00 100644 --- a/app/components/dossiers/user_filter_component.rb +++ b/app/components/dossiers/user_filter_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::UserFilterComponent < ApplicationComponent include DossierHelper diff --git a/app/components/dossiers/user_procedure_filter_component.rb b/app/components/dossiers/user_procedure_filter_component.rb index a0e349c97..e0cb0970a 100644 --- a/app/components/dossiers/user_procedure_filter_component.rb +++ b/app/components/dossiers/user_procedure_filter_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dossiers::UserProcedureFilterComponent < ApplicationComponent include DossierHelper diff --git a/app/components/dropdown/menu_component.rb b/app/components/dropdown/menu_component.rb index 964478d34..60dff5382 100644 --- a/app/components/dropdown/menu_component.rb +++ b/app/components/dropdown/menu_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dropdown::MenuComponent < ApplicationComponent renders_one :button_inner_html renders_one :menu_header_html diff --git a/app/components/dsfr/alert_component.rb b/app/components/dsfr/alert_component.rb index dd18f4a14..6324d3f7d 100644 --- a/app/components/dsfr/alert_component.rb +++ b/app/components/dsfr/alert_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/alerte class Dsfr::AlertComponent < ApplicationComponent renders_one :body diff --git a/app/components/dsfr/callout_component.rb b/app/components/dsfr/callout_component.rb index 3e343011b..b2e587d8f 100644 --- a/app/components/dsfr/callout_component.rb +++ b/app/components/dsfr/callout_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/mise-en-avant class Dsfr::CalloutComponent < ApplicationComponent renders_one :body diff --git a/app/components/dsfr/card_vertical_component.rb b/app/components/dsfr/card_vertical_component.rb index 01412fcb5..7627ec0bf 100644 --- a/app/components/dsfr/card_vertical_component.rb +++ b/app/components/dsfr/card_vertical_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::CardVerticalComponent < ApplicationComponent renders_many :footer_buttons diff --git a/app/components/dsfr/combobox_component.rb b/app/components/dsfr/combobox_component.rb index a90548ff7..c94849c35 100644 --- a/app/components/dsfr/combobox_component.rb +++ b/app/components/dsfr/combobox_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::ComboboxComponent < ApplicationComponent def initialize(form: nil, options: nil, url: nil, selected: nil, allows_custom_value: false, limit: nil, input_html_options: {}, hidden_html_options: {}) @form, @options, @url, @selected, @allows_custom_value, @limit, @input_html_options, @hidden_html_options = form, options, url, selected, allows_custom_value, limit, input_html_options, hidden_html_options diff --git a/app/components/dsfr/copy_button_component.rb b/app/components/dsfr/copy_button_component.rb index 7de513bae..d9afdbd40 100644 --- a/app/components/dsfr/copy_button_component.rb +++ b/app/components/dsfr/copy_button_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::CopyButtonComponent < ApplicationComponent def initialize(text:, title:, success: nil) @text = text diff --git a/app/components/dsfr/download_component.rb b/app/components/dsfr/download_component.rb index 326c0865b..02697b5f1 100644 --- a/app/components/dsfr/download_component.rb +++ b/app/components/dsfr/download_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::DownloadComponent < ApplicationComponent attr_reader :attachment attr_reader :html_class diff --git a/app/components/dsfr/input_component.rb b/app/components/dsfr/input_component.rb index 367ed74b0..feb1a40c2 100644 --- a/app/components/dsfr/input_component.rb +++ b/app/components/dsfr/input_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::InputComponent < ApplicationComponent include Dsfr::InputErrorable diff --git a/app/components/dsfr/input_errorable.rb b/app/components/dsfr/input_errorable.rb index c3851b497..2da8dee85 100644 --- a/app/components/dsfr/input_errorable.rb +++ b/app/components/dsfr/input_errorable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Dsfr module InputErrorable extend ActiveSupport::Concern diff --git a/app/components/dsfr/input_status_message_component.rb b/app/components/dsfr/input_status_message_component.rb index 545a6a68e..78a88a0da 100644 --- a/app/components/dsfr/input_status_message_component.rb +++ b/app/components/dsfr/input_status_message_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Dsfr class InputStatusMessageComponent < ApplicationComponent def initialize(errors_on_attribute:, error_full_messages:, describedby_id:, champ:) diff --git a/app/components/dsfr/list_component.rb b/app/components/dsfr/list_component.rb index 19bcd83b9..93b567397 100644 --- a/app/components/dsfr/list_component.rb +++ b/app/components/dsfr/list_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::ListComponent < ApplicationComponent renders_many :items renders_one :empty diff --git a/app/components/dsfr/notice_component.rb b/app/components/dsfr/notice_component.rb index 44cae0b70..fdb1aa3a2 100644 --- a/app/components/dsfr/notice_component.rb +++ b/app/components/dsfr/notice_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/bandeau-d-information-importante/ class Dsfr::NoticeComponent < ApplicationComponent renders_one :title diff --git a/app/components/dsfr/radio_button_list_component.rb b/app/components/dsfr/radio_button_list_component.rb index fc67c3625..566d36653 100644 --- a/app/components/dsfr/radio_button_list_component.rb +++ b/app/components/dsfr/radio_button_list_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::RadioButtonListComponent < ApplicationComponent attr_reader :error diff --git a/app/components/dsfr/sidemenu_component.rb b/app/components/dsfr/sidemenu_component.rb index 31c2730e4..930b117ca 100644 --- a/app/components/dsfr/sidemenu_component.rb +++ b/app/components/dsfr/sidemenu_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::SidemenuComponent < ApplicationComponent renders_many :links, "LinkComponent" diff --git a/app/components/dsfr/toggle_component.rb b/app/components/dsfr/toggle_component.rb index f0a4114b0..7e7f3ca40 100644 --- a/app/components/dsfr/toggle_component.rb +++ b/app/components/dsfr/toggle_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Dsfr::ToggleComponent < ApplicationComponent def initialize(form:, target:, title:, disabled: nil, hint: nil, toggle_labels: { checked: 'Activé', unchecked: 'Désactivé' }, opt: nil, extra_class_names: nil) @form = form diff --git a/app/components/editable_champ/address_component.rb b/app/components/editable_champ/address_component.rb index f0c7a8d75..94ed6d9eb 100644 --- a/app/components/editable_champ/address_component.rb +++ b/app/components/editable_champ/address_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::AddressComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-select' diff --git a/app/components/editable_champ/annuaire_education_component.rb b/app/components/editable_champ/annuaire_education_component.rb index 10044eb61..94e6e8ead 100644 --- a/app/components/editable_champ/annuaire_education_component.rb +++ b/app/components/editable_champ/annuaire_education_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::AnnuaireEducationComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-select' diff --git a/app/components/editable_champ/asterisk_mandatory_component.rb b/app/components/editable_champ/asterisk_mandatory_component.rb index d71d395a0..59f4e3d0b 100644 --- a/app/components/editable_champ/asterisk_mandatory_component.rb +++ b/app/components/editable_champ/asterisk_mandatory_component.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + class EditableChamp::AsteriskMandatoryComponent < ApplicationComponent end diff --git a/app/components/editable_champ/carte_component.rb b/app/components/editable_champ/carte_component.rb index b7ecb9a8c..062576ee2 100644 --- a/app/components/editable_champ/carte_component.rb +++ b/app/components/editable_champ/carte_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::CarteComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper def dsfr_champ_container diff --git a/app/components/editable_champ/champ_label_component.rb b/app/components/editable_champ/champ_label_component.rb index 967a95584..fac9e4c28 100644 --- a/app/components/editable_champ/champ_label_component.rb +++ b/app/components/editable_champ/champ_label_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::ChampLabelComponent < ApplicationComponent include Dsfr::InputErrorable diff --git a/app/components/editable_champ/champ_label_content_component.rb b/app/components/editable_champ/champ_label_content_component.rb index 21069fe98..d373b240f 100644 --- a/app/components/editable_champ/champ_label_content_component.rb +++ b/app/components/editable_champ/champ_label_content_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::ChampLabelContentComponent < ApplicationComponent include ApplicationHelper include Dsfr::InputErrorable diff --git a/app/components/editable_champ/checkbox_component.rb b/app/components/editable_champ/checkbox_component.rb index 0e9ce577b..118bf823d 100644 --- a/app/components/editable_champ/checkbox_component.rb +++ b/app/components/editable_champ/checkbox_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::CheckboxComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-checkbox' diff --git a/app/components/editable_champ/civilite_component.rb b/app/components/editable_champ/civilite_component.rb index 6f3b61705..d6eed462d 100644 --- a/app/components/editable_champ/civilite_component.rb +++ b/app/components/editable_champ/civilite_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::CiviliteComponent < EditableChamp::EditableChampBaseComponent def dsfr_champ_container :fieldset diff --git a/app/components/editable_champ/cnaf_component.rb b/app/components/editable_champ/cnaf_component.rb index 4e3fc65cc..77a24df0b 100644 --- a/app/components/editable_champ/cnaf_component.rb +++ b/app/components/editable_champ/cnaf_component.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + class EditableChamp::CnafComponent < EditableChamp::EditableChampBaseComponent end diff --git a/app/components/editable_champ/cojo_component.rb b/app/components/editable_champ/cojo_component.rb index e49c44b3d..67ad6fd20 100644 --- a/app/components/editable_champ/cojo_component.rb +++ b/app/components/editable_champ/cojo_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::COJOComponent < EditableChamp::EditableChampBaseComponent def input_group_class if @champ.accreditation_success? diff --git a/app/components/editable_champ/communes_component.rb b/app/components/editable_champ/communes_component.rb index 3728cc30a..d29e295c0 100644 --- a/app/components/editable_champ/communes_component.rb +++ b/app/components/editable_champ/communes_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::CommunesComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper diff --git a/app/components/editable_champ/date_component.rb b/app/components/editable_champ/date_component.rb index 5cf98d4ac..e5e0cfa47 100644 --- a/app/components/editable_champ/date_component.rb +++ b/app/components/editable_champ/date_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DateComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/datetime_component.rb b/app/components/editable_champ/datetime_component.rb index c77af3004..a21a20953 100644 --- a/app/components/editable_champ/datetime_component.rb +++ b/app/components/editable_champ/datetime_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DatetimeComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/decimal_number_component.rb b/app/components/editable_champ/decimal_number_component.rb index f4ebe6b46..a6fbeb52d 100644 --- a/app/components/editable_champ/decimal_number_component.rb +++ b/app/components/editable_champ/decimal_number_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DecimalNumberComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/departements_component.rb b/app/components/editable_champ/departements_component.rb index f61a3be05..2958a645d 100644 --- a/app/components/editable_champ/departements_component.rb +++ b/app/components/editable_champ/departements_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DepartementsComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper diff --git a/app/components/editable_champ/dgfip_component.rb b/app/components/editable_champ/dgfip_component.rb index 0bb07fa3a..879e83608 100644 --- a/app/components/editable_champ/dgfip_component.rb +++ b/app/components/editable_champ/dgfip_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DgfipComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/dossier_link_component.rb b/app/components/editable_champ/dossier_link_component.rb index 188c96b33..4fcef378c 100644 --- a/app/components/editable_champ/dossier_link_component.rb +++ b/app/components/editable_champ/dossier_link_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DossierLinkComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/drop_down_list_component.rb b/app/components/editable_champ/drop_down_list_component.rb index ec5fd536e..cd33efbdf 100644 --- a/app/components/editable_champ/drop_down_list_component.rb +++ b/app/components/editable_champ/drop_down_list_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DropDownListComponent < EditableChamp::EditableChampBaseComponent def render? @champ.options? diff --git a/app/components/editable_champ/drop_down_other_input_component.rb b/app/components/editable_champ/drop_down_other_input_component.rb index bb8f5665e..2e1a9bc0e 100644 --- a/app/components/editable_champ/drop_down_other_input_component.rb +++ b/app/components/editable_champ/drop_down_other_input_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::DropDownOtherInputComponent < EditableChamp::EditableChampBaseComponent def render? @champ.other? diff --git a/app/components/editable_champ/editable_champ_base_component.rb b/app/components/editable_champ/editable_champ_base_component.rb index 85a2edef4..9d74d9698 100644 --- a/app/components/editable_champ/editable_champ_base_component.rb +++ b/app/components/editable_champ/editable_champ_base_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::EditableChampBaseComponent < ApplicationComponent include Dsfr::InputErrorable diff --git a/app/components/editable_champ/editable_champ_component.rb b/app/components/editable_champ/editable_champ_component.rb index a529d7a8f..e3fa34628 100644 --- a/app/components/editable_champ/editable_champ_component.rb +++ b/app/components/editable_champ/editable_champ_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::EditableChampComponent < ApplicationComponent def initialize(form:, champ:, seen_at: nil) @form, @champ, @seen_at = form, champ, seen_at diff --git a/app/components/editable_champ/email_component.rb b/app/components/editable_champ/email_component.rb index 57788aa26..efdcca7e6 100644 --- a/app/components/editable_champ/email_component.rb +++ b/app/components/editable_champ/email_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::EmailComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/engagement_juridique_component.rb b/app/components/editable_champ/engagement_juridique_component.rb index 223cc0e9e..96ffb2869 100644 --- a/app/components/editable_champ/engagement_juridique_component.rb +++ b/app/components/editable_champ/engagement_juridique_component.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + class EditableChamp::EngagementJuridiqueComponent < EditableChamp::EditableChampBaseComponent end diff --git a/app/components/editable_champ/epci_component.rb b/app/components/editable_champ/epci_component.rb index 8bcf38437..497a930be 100644 --- a/app/components/editable_champ/epci_component.rb +++ b/app/components/editable_champ/epci_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::EpciComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper diff --git a/app/components/editable_champ/etablissement_titre_component.rb b/app/components/editable_champ/etablissement_titre_component.rb index 13e59358a..a6c781d31 100644 --- a/app/components/editable_champ/etablissement_titre_component.rb +++ b/app/components/editable_champ/etablissement_titre_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::EtablissementTitreComponent < ApplicationComponent include EtablissementHelper diff --git a/app/components/editable_champ/explication_component.rb b/app/components/editable_champ/explication_component.rb index daffa3bf9..aa7ef3b92 100644 --- a/app/components/editable_champ/explication_component.rb +++ b/app/components/editable_champ/explication_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::ExplicationComponent < EditableChamp::EditableChampBaseComponent delegate :type_de_champ, to: :@champ delegate :notice_explicative, to: :type_de_champ diff --git a/app/components/editable_champ/expression_reguliere_component.rb b/app/components/editable_champ/expression_reguliere_component.rb index 7e6a6d52c..a0844d824 100644 --- a/app/components/editable_champ/expression_reguliere_component.rb +++ b/app/components/editable_champ/expression_reguliere_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::ExpressionReguliereComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/header_section_component.rb b/app/components/editable_champ/header_section_component.rb index a4f7a6560..83c9bfdca 100644 --- a/app/components/editable_champ/header_section_component.rb +++ b/app/components/editable_champ/header_section_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::HeaderSectionComponent < ApplicationComponent def initialize(form: nil, champ:, seen_at: nil, html_class: {}) @champ = champ diff --git a/app/components/editable_champ/iban_component.rb b/app/components/editable_champ/iban_component.rb index 5a5646305..a41933e2f 100644 --- a/app/components/editable_champ/iban_component.rb +++ b/app/components/editable_champ/iban_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::IbanComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/integer_number_component.rb b/app/components/editable_champ/integer_number_component.rb index 81b5348cb..44076580f 100644 --- a/app/components/editable_champ/integer_number_component.rb +++ b/app/components/editable_champ/integer_number_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::IntegerNumberComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/linked_drop_down_list_component.rb b/app/components/editable_champ/linked_drop_down_list_component.rb index 1d09e19fc..44775a170 100644 --- a/app/components/editable_champ/linked_drop_down_list_component.rb +++ b/app/components/editable_champ/linked_drop_down_list_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::LinkedDropDownListComponent < EditableChamp::EditableChampBaseComponent def dsfr_champ_container :fieldset diff --git a/app/components/editable_champ/mesri_component.rb b/app/components/editable_champ/mesri_component.rb index 69aac9824..0da7475f7 100644 --- a/app/components/editable_champ/mesri_component.rb +++ b/app/components/editable_champ/mesri_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::MesriComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/multiple_drop_down_list_component.rb b/app/components/editable_champ/multiple_drop_down_list_component.rb index 5c6265e14..6428d70df 100644 --- a/app/components/editable_champ/multiple_drop_down_list_component.rb +++ b/app/components/editable_champ/multiple_drop_down_list_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::MultipleDropDownListComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper diff --git a/app/components/editable_champ/number_component.rb b/app/components/editable_champ/number_component.rb index adf2814bc..310fa325b 100644 --- a/app/components/editable_champ/number_component.rb +++ b/app/components/editable_champ/number_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::NumberComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/pays_component.rb b/app/components/editable_champ/pays_component.rb index fee1ce157..bd61a9350 100644 --- a/app/components/editable_champ/pays_component.rb +++ b/app/components/editable_champ/pays_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::PaysComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper diff --git a/app/components/editable_champ/phone_component.rb b/app/components/editable_champ/phone_component.rb index c8aa8a0ab..ee464b812 100644 --- a/app/components/editable_champ/phone_component.rb +++ b/app/components/editable_champ/phone_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::PhoneComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/piece_justificative_component.rb b/app/components/editable_champ/piece_justificative_component.rb index 95b3ff21a..47b873e8d 100644 --- a/app/components/editable_champ/piece_justificative_component.rb +++ b/app/components/editable_champ/piece_justificative_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::PieceJustificativeComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/pole_emploi_component.rb b/app/components/editable_champ/pole_emploi_component.rb index 49479bbf9..b82189b1b 100644 --- a/app/components/editable_champ/pole_emploi_component.rb +++ b/app/components/editable_champ/pole_emploi_component.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + class EditableChamp::PoleEmploiComponent < EditableChamp::EditableChampBaseComponent end diff --git a/app/components/editable_champ/regions_component.rb b/app/components/editable_champ/regions_component.rb index 730cc0c53..96e1efe24 100644 --- a/app/components/editable_champ/regions_component.rb +++ b/app/components/editable_champ/regions_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::RegionsComponent < EditableChamp::EditableChampBaseComponent include ApplicationHelper diff --git a/app/components/editable_champ/repetition_component.rb b/app/components/editable_champ/repetition_component.rb index bd077dd9b..685d890e1 100644 --- a/app/components/editable_champ/repetition_component.rb +++ b/app/components/editable_champ/repetition_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::RepetitionComponent < EditableChamp::EditableChampBaseComponent def legend_params @champ.description.present? ? { describedby: dom_id(@champ, :repetition) } : {} diff --git a/app/components/editable_champ/repetition_row_component.rb b/app/components/editable_champ/repetition_row_component.rb index cb9925286..f3368d525 100644 --- a/app/components/editable_champ/repetition_row_component.rb +++ b/app/components/editable_champ/repetition_row_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::RepetitionRowComponent < ApplicationComponent def initialize(form:, dossier:, type_de_champ:, row_id:, row_number:, seen_at: nil) @form, @dossier, @type_de_champ, @row_id, @row_number, @seen_at = form, dossier, type_de_champ, row_id, row_number, seen_at diff --git a/app/components/editable_champ/rna_component.rb b/app/components/editable_champ/rna_component.rb index fd04cb278..c4d0e15ca 100644 --- a/app/components/editable_champ/rna_component.rb +++ b/app/components/editable_champ/rna_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::RNAComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/rnf_component.rb b/app/components/editable_champ/rnf_component.rb index 8638f1a64..267aabc04 100644 --- a/app/components/editable_champ/rnf_component.rb +++ b/app/components/editable_champ/rnf_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::RNFComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/section_component.rb b/app/components/editable_champ/section_component.rb index 69b3c9dcc..9798b9e70 100644 --- a/app/components/editable_champ/section_component.rb +++ b/app/components/editable_champ/section_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::SectionComponent < ApplicationComponent include ApplicationHelper include TreeableConcern diff --git a/app/components/editable_champ/siret_component.rb b/app/components/editable_champ/siret_component.rb index f97fbf50a..8a7d3d1b3 100644 --- a/app/components/editable_champ/siret_component.rb +++ b/app/components/editable_champ/siret_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::SiretComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/text_component.rb b/app/components/editable_champ/text_component.rb index d2930ea81..702b4f72a 100644 --- a/app/components/editable_champ/text_component.rb +++ b/app/components/editable_champ/text_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::TextComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/textarea_component.rb b/app/components/editable_champ/textarea_component.rb index 2942bd97a..c1daff884 100644 --- a/app/components/editable_champ/textarea_component.rb +++ b/app/components/editable_champ/textarea_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::TextareaComponent < EditableChamp::EditableChampBaseComponent include HtmlToStringHelper def dsfr_input_classname diff --git a/app/components/editable_champ/titre_identite_component.rb b/app/components/editable_champ/titre_identite_component.rb index c1b916517..afab922ec 100644 --- a/app/components/editable_champ/titre_identite_component.rb +++ b/app/components/editable_champ/titre_identite_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::TitreIdentiteComponent < EditableChamp::EditableChampBaseComponent def dsfr_input_classname 'fr-input' diff --git a/app/components/editable_champ/yes_no_component.rb b/app/components/editable_champ/yes_no_component.rb index f9a0e92e6..4d4ff9f29 100644 --- a/app/components/editable_champ/yes_no_component.rb +++ b/app/components/editable_champ/yes_no_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EditableChamp::YesNoComponent < EditableChamp::EditableChampBaseComponent def dsfr_champ_container :fieldset diff --git a/app/components/expandable_error_list.rb b/app/components/expandable_error_list.rb index 43d5c9215..9dc1360ca 100644 --- a/app/components/expandable_error_list.rb +++ b/app/components/expandable_error_list.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ExpandableErrorList < ApplicationComponent def initialize(errors:) @errors = errors diff --git a/app/components/groupe_gestionnaire/card/administrateurs_component.rb b/app/components/groupe_gestionnaire/card/administrateurs_component.rb index 231cdd593..e075b0afe 100644 --- a/app/components/groupe_gestionnaire/card/administrateurs_component.rb +++ b/app/components/groupe_gestionnaire/card/administrateurs_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::Card::AdministrateursComponent < ApplicationComponent def initialize(groupe_gestionnaire:, path:, is_gestionnaire: true) @groupe_gestionnaire = groupe_gestionnaire diff --git a/app/components/groupe_gestionnaire/card/children_component.rb b/app/components/groupe_gestionnaire/card/children_component.rb index 4fac51981..c6b79f6ea 100644 --- a/app/components/groupe_gestionnaire/card/children_component.rb +++ b/app/components/groupe_gestionnaire/card/children_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::Card::ChildrenComponent < ApplicationComponent def initialize(groupe_gestionnaire:, path:) @groupe_gestionnaire = groupe_gestionnaire diff --git a/app/components/groupe_gestionnaire/card/commentaires_component.rb b/app/components/groupe_gestionnaire/card/commentaires_component.rb index c3bbb7434..d9fcf0e2a 100644 --- a/app/components/groupe_gestionnaire/card/commentaires_component.rb +++ b/app/components/groupe_gestionnaire/card/commentaires_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::Card::CommentairesComponent < ApplicationComponent def initialize(groupe_gestionnaire:, administrateur:, path:, unread_commentaires: nil) @groupe_gestionnaire = groupe_gestionnaire diff --git a/app/components/groupe_gestionnaire/card/gestionnaires_component.rb b/app/components/groupe_gestionnaire/card/gestionnaires_component.rb index 43b0c40a7..992eb766d 100644 --- a/app/components/groupe_gestionnaire/card/gestionnaires_component.rb +++ b/app/components/groupe_gestionnaire/card/gestionnaires_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::Card::GestionnairesComponent < ApplicationComponent def initialize(groupe_gestionnaire:, path:, is_gestionnaire: true) @groupe_gestionnaire = groupe_gestionnaire diff --git a/app/components/groupe_gestionnaire/groupe_gestionnaire_administrateurs/administrateur_component.rb b/app/components/groupe_gestionnaire/groupe_gestionnaire_administrateurs/administrateur_component.rb index ef36aea6b..a8e30e84c 100644 --- a/app/components/groupe_gestionnaire/groupe_gestionnaire_administrateurs/administrateur_component.rb +++ b/app/components/groupe_gestionnaire/groupe_gestionnaire_administrateurs/administrateur_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::GroupeGestionnaireAdministrateurs::AdministrateurComponent < ApplicationComponent include ApplicationHelper diff --git a/app/components/groupe_gestionnaire/groupe_gestionnaire_children/child_component.rb b/app/components/groupe_gestionnaire/groupe_gestionnaire_children/child_component.rb index 3afa79352..e8c10c684 100644 --- a/app/components/groupe_gestionnaire/groupe_gestionnaire_children/child_component.rb +++ b/app/components/groupe_gestionnaire/groupe_gestionnaire_children/child_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::GroupeGestionnaireChildren::ChildComponent < ApplicationComponent include ApplicationHelper diff --git a/app/components/groupe_gestionnaire/groupe_gestionnaire_gestionnaires/gestionnaire_component.rb b/app/components/groupe_gestionnaire/groupe_gestionnaire_gestionnaires/gestionnaire_component.rb index a1c5ba7b5..d358d0d7b 100644 --- a/app/components/groupe_gestionnaire/groupe_gestionnaire_gestionnaires/gestionnaire_component.rb +++ b/app/components/groupe_gestionnaire/groupe_gestionnaire_gestionnaires/gestionnaire_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::GroupeGestionnaireGestionnaires::GestionnaireComponent < ApplicationComponent include ApplicationHelper diff --git a/app/components/groupe_gestionnaire/groupe_gestionnaire_list_commentaires/commentaire_component.rb b/app/components/groupe_gestionnaire/groupe_gestionnaire_list_commentaires/commentaire_component.rb index 91d1d5ca4..9de6dc646 100644 --- a/app/components/groupe_gestionnaire/groupe_gestionnaire_list_commentaires/commentaire_component.rb +++ b/app/components/groupe_gestionnaire/groupe_gestionnaire_list_commentaires/commentaire_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::GroupeGestionnaireListCommentaires::CommentaireComponent < ApplicationComponent include ApplicationHelper diff --git a/app/components/groupe_gestionnaire/groupe_gestionnaire_tree_structures/tree_structure_component.rb b/app/components/groupe_gestionnaire/groupe_gestionnaire_tree_structures/tree_structure_component.rb index a24c6c487..3279c1809 100644 --- a/app/components/groupe_gestionnaire/groupe_gestionnaire_tree_structures/tree_structure_component.rb +++ b/app/components/groupe_gestionnaire/groupe_gestionnaire_tree_structures/tree_structure_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class GroupeGestionnaire::GroupeGestionnaireTreeStructures::TreeStructureComponent < ApplicationComponent include ApplicationHelper diff --git a/app/components/instructeurs/activate_account_form_component.rb b/app/components/instructeurs/activate_account_form_component.rb index 3cd66c102..614f308b8 100644 --- a/app/components/instructeurs/activate_account_form_component.rb +++ b/app/components/instructeurs/activate_account_form_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Instructeurs::ActivateAccountFormComponent < ApplicationComponent attr_reader :user def initialize(user:) diff --git a/app/components/instructeurs/column_filter_component.rb b/app/components/instructeurs/column_filter_component.rb index f80fa556a..de1826037 100644 --- a/app/components/instructeurs/column_filter_component.rb +++ b/app/components/instructeurs/column_filter_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Instructeurs::ColumnFilterComponent < ApplicationComponent attr_reader :procedure, :procedure_presentation, :statut, :column diff --git a/app/components/instructeurs/column_picker_component.rb b/app/components/instructeurs/column_picker_component.rb index 5e56ce58e..3e27ce7ab 100644 --- a/app/components/instructeurs/column_picker_component.rb +++ b/app/components/instructeurs/column_picker_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Instructeurs::ColumnPickerComponent < ApplicationComponent attr_reader :procedure, :procedure_presentation diff --git a/app/components/instructeurs/column_table_header_component.rb b/app/components/instructeurs/column_table_header_component.rb index afaf175a0..09af953b7 100644 --- a/app/components/instructeurs/column_table_header_component.rb +++ b/app/components/instructeurs/column_table_header_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Instructeurs::ColumnTableHeaderComponent < ApplicationComponent attr_reader :procedure_presentation, :column # maybe extract a ColumnSorter class? diff --git a/app/components/manager/dossier_champ_row_component.rb b/app/components/manager/dossier_champ_row_component.rb index d3bedece7..123eefe9f 100644 --- a/app/components/manager/dossier_champ_row_component.rb +++ b/app/components/manager/dossier_champ_row_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Manager::DossierChampRowComponent < ApplicationComponent with_collection_parameter :row diff --git a/app/components/nested_forms/form_owner_component.rb b/app/components/nested_forms/form_owner_component.rb index ddd125e88..893d9cf68 100644 --- a/app/components/nested_forms/form_owner_component.rb +++ b/app/components/nested_forms/form_owner_component.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # context: https://github.com/demarches-simplifiees/demarches-simplifiees.fr/issues/8661 # a11y: a post/delete/patch/put action must be wrapped in a