From f11256919201b30de18993e93dd4797d1cae68b7 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 5 Feb 2024 12:54:52 +0100 Subject: [PATCH] fix(haml-lint): TrailingEmptyLine --- .../attachment/edit_component/edit_component.html.haml | 1 - .../autosave_footer_component.html.haml | 1 - .../en_construction_not_submitted_component.html.haml | 1 - .../errors_full_messages_component.html.haml | 1 - .../export_link_component/export_link_component.html.haml | 1 - .../pending_correction_checkbox_component.html.haml | 1 - .../checkbox_component/checkbox_component.html.haml | 1 - .../editable_champ/cnaf_component/cnaf_component.html.haml | 1 - .../editable_champ/mesri_component/mesri_component.html.haml | 1 - .../instruction_menu_component.html.haml | 1 - .../estimated_delay_component.html.haml | 1 - .../instructeurs_menu_component.html.haml | 1 - .../profile/api_token_component/api_token_component.html.haml | 1 - .../tags_button_list_component.html.haml | 1 - .../administrateur_mailer/notify_service_without_siret.haml | 1 - .../attestation_templates/_informations.html.haml | 1 - app/views/administrateurs/procedures/zones.html.haml | 1 - .../types_de_champ/move_and_morph.turbo_stream.haml | 1 - app/views/gestionnaires/groupe_gestionnaires/show.html.haml | 1 - .../groupe_gestionnaires/tree_structure.html.haml | 1 - .../instructeurs/dossiers/_decisions_rendues_block.html.haml | 1 - app/views/layouts/_setup_theme.html.haml | 1 - app/views/shared/_mailer_round_button.html.haml | 1 - app/views/shared/archives/_notice.html.haml | 2 -- app/views/shared/champs/cnaf/_adresse.html.haml | 3 --- .../dossiers/_identite_entreprise_bilan_detail.html.haml | 1 - .../super_admins/release_notes/_main_navigation.html.haml | 1 - app/views/super_admins/release_notes/edit.html.haml | 1 - 28 files changed, 31 deletions(-) diff --git a/app/components/attachment/edit_component/edit_component.html.haml b/app/components/attachment/edit_component/edit_component.html.haml index 177902cfa..298972b2d 100644 --- a/app/components/attachment/edit_component/edit_component.html.haml +++ b/app/components/attachment/edit_component/edit_component.html.haml @@ -39,4 +39,3 @@ %p.fr-error-text= t('.errors.uploading') = button_tag(**retry_button_options) do = t(".retry") - diff --git a/app/components/dossiers/autosave_footer_component/autosave_footer_component.html.haml b/app/components/dossiers/autosave_footer_component/autosave_footer_component.html.haml index 9370c64d4..28039d90c 100644 --- a/app/components/dossiers/autosave_footer_component/autosave_footer_component.html.haml +++ b/app/components/dossiers/autosave_footer_component/autosave_footer_component.html.haml @@ -34,4 +34,3 @@ %button.fr-btn.fr-btn--tertiary.fr-btn--sm.autosave-retry{ type: :button, data: { action: 'autosave-status#onClickRetryButton', autosave_status_target: 'retryButton' } } %span.autosave-retry-label Réessayer %span.autosave-retrying-label Enregistrement en cours… - diff --git a/app/components/dossiers/en_construction_not_submitted_component/en_construction_not_submitted_component.html.haml b/app/components/dossiers/en_construction_not_submitted_component/en_construction_not_submitted_component.html.haml index 5fe274281..104ea0b1b 100644 --- a/app/components/dossiers/en_construction_not_submitted_component/en_construction_not_submitted_component.html.haml +++ b/app/components/dossiers/en_construction_not_submitted_component/en_construction_not_submitted_component.html.haml @@ -6,4 +6,3 @@ %ul.fr-mt-2w.fr-btns-group.fr-btns-group--inline %li= link_to t(".buttons.edit"), modifier_dossier_path(dossier), class: "fr-btn" %li= button_to t(".buttons.submit"), modifier_dossier_path(dossier), class: "fr-btn fr-btn--secondary", method: :post - diff --git a/app/components/dossiers/errors_full_messages_component/errors_full_messages_component.html.haml b/app/components/dossiers/errors_full_messages_component/errors_full_messages_component.html.haml index 269286402..58d76cb56 100644 --- a/app/components/dossiers/errors_full_messages_component/errors_full_messages_component.html.haml +++ b/app/components/dossiers/errors_full_messages_component/errors_full_messages_component.html.haml @@ -13,4 +13,3 @@ %li = link_to error_descriptor.label, error_descriptor.anchor, class: 'error-anchor' = "(#{error_descriptor.error_message})" - diff --git a/app/components/dossiers/export_link_component/export_link_component.html.haml b/app/components/dossiers/export_link_component/export_link_component.html.haml index 941ca0935..0ed8d34a2 100644 --- a/app/components/dossiers/export_link_component/export_link_component.html.haml +++ b/app/components/dossiers/export_link_component/export_link_component.html.haml @@ -15,4 +15,3 @@ - if export.failed? = button_to refresh_button_options(export)[:title], download_export_path(export_format: export.format, statut: export.statut), refresh_button_options(export) - diff --git a/app/components/dossiers/pending_correction_checkbox_component/pending_correction_checkbox_component.html.haml b/app/components/dossiers/pending_correction_checkbox_component/pending_correction_checkbox_component.html.haml index fc27bf9bd..b031a9101 100644 --- a/app/components/dossiers/pending_correction_checkbox_component/pending_correction_checkbox_component.html.haml +++ b/app/components/dossiers/pending_correction_checkbox_component/pending_correction_checkbox_component.html.haml @@ -7,4 +7,3 @@ - if error? #dossier_pending_correction_error_messages.fr-messages-group{ aria: { live: "assertlive" } } %p.fr-message.fr-message--error= error_message - diff --git a/app/components/editable_champ/checkbox_component/checkbox_component.html.haml b/app/components/editable_champ/checkbox_component/checkbox_component.html.haml index 57368a979..ffead5a43 100644 --- a/app/components/editable_champ/checkbox_component/checkbox_component.html.haml +++ b/app/components/editable_champ/checkbox_component/checkbox_component.html.haml @@ -6,4 +6,3 @@ 'false' %label.fr-label{ for: @champ.input_id, id: @champ.labelledby_id } = render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at - diff --git a/app/components/editable_champ/cnaf_component/cnaf_component.html.haml b/app/components/editable_champ/cnaf_component/cnaf_component.html.haml index 4eeb80fef..2f0876292 100644 --- a/app/components/editable_champ/cnaf_component/cnaf_component.html.haml +++ b/app/components/editable_champ/cnaf_component/cnaf_component.html.haml @@ -15,4 +15,3 @@ aria: { describedby: @champ.describedby_id }, class: "width-33-desktop", id: @champ.code_postal_input_id - diff --git a/app/components/editable_champ/mesri_component/mesri_component.html.haml b/app/components/editable_champ/mesri_component/mesri_component.html.haml index 173fe57f4..2b427a6c4 100644 --- a/app/components/editable_champ/mesri_component/mesri_component.html.haml +++ b/app/components/editable_champ/mesri_component/mesri_component.html.haml @@ -6,4 +6,3 @@ required: @champ.required?, aria: { describedby: @champ.describedby_id }, class: "width-33-desktop", id: @champ.input_id - diff --git a/app/components/instructeurs/instruction_menu_component/instruction_menu_component.html.haml b/app/components/instructeurs/instruction_menu_component/instruction_menu_component.html.haml index 319828d22..84ad380a9 100644 --- a/app/components/instructeurs/instruction_menu_component/instruction_menu_component.html.haml +++ b/app/components/instructeurs/instruction_menu_component/instruction_menu_component.html.haml @@ -31,4 +31,3 @@ - menu.with_item(class: "hidden inactive form-inside fr-pt-1v") do = render partial: 'instructeurs/dossiers/instruction_button_motivation', locals: { dossier: dossier, placeholder: 'Expliquez au demandeur pourquoi ce dossier est refusé (obligatoire)', popup_class: 'refuse', process_action: 'refuser', title: 'Refuser', confirm: 'Confirmez-vous le refus de ce dossier ?' } - diff --git a/app/components/procedure/estimated_delay_component/estimated_delay_component.html.haml b/app/components/procedure/estimated_delay_component/estimated_delay_component.html.haml index cb8aeecd8..ab908c0ae 100644 --- a/app/components/procedure/estimated_delay_component/estimated_delay_component.html.haml +++ b/app/components/procedure/estimated_delay_component/estimated_delay_component.html.haml @@ -2,4 +2,3 @@ %ul - cleaned_nearby_estimation do |estimation, i18n_key| %li= t(".#{i18n_key}", estimation: estimation) - diff --git a/app/components/procedure/instructeurs_menu_component/instructeurs_menu_component.html.haml b/app/components/procedure/instructeurs_menu_component/instructeurs_menu_component.html.haml index f351776b1..df138518d 100644 --- a/app/components/procedure/instructeurs_menu_component/instructeurs_menu_component.html.haml +++ b/app/components/procedure/instructeurs_menu_component/instructeurs_menu_component.html.haml @@ -4,4 +4,3 @@ = render(Dsfr::SidemenuComponent.new) do |component| - component.with_links(links) .fr-col= content - diff --git a/app/components/profile/api_token_component/api_token_component.html.haml b/app/components/profile/api_token_component/api_token_component.html.haml index c2d28e4b3..ec9ccc8d9 100644 --- a/app/components/profile/api_token_component/api_token_component.html.haml +++ b/app/components/profile/api_token_component/api_token_component.html.haml @@ -19,4 +19,3 @@ admin_api_token_path(@api_token), class: 'fr-btn fr-btn--tertiary-no-outline fr-btn--sm fr-btn--icon-left fr-icon-delete-line', data: { turbo_method: :delete, confirm: "Confirmez-vous la suppression du jeton « #{@api_token.name} » ?" } - diff --git a/app/components/tags_button_list_component/tags_button_list_component.html.haml b/app/components/tags_button_list_component/tags_button_list_component.html.haml index 6a5cd2ecb..fa03ff4af 100644 --- a/app/components/tags_button_list_component/tags_button_list_component.html.haml +++ b/app/components/tags_button_list_component/tags_button_list_component.html.haml @@ -6,4 +6,3 @@ - label = button_label(tag) %button.fr-tag.fr-tag--sm{ type: "button", title: button_title(tag), data: { action: 'click->tiptap#insertTag', tiptap_target: 'tag', tag_id: tag[:id], tag_label: label } } = label - diff --git a/app/views/administrateur_mailer/notify_service_without_siret.haml b/app/views/administrateur_mailer/notify_service_without_siret.haml index 8f594dae9..9312f14d8 100644 --- a/app/views/administrateur_mailer/notify_service_without_siret.haml +++ b/app/views/administrateur_mailer/notify_service_without_siret.haml @@ -13,4 +13,3 @@ = link_to admin_procedures_url, admin_procedures_url = render partial: "layouts/mailers/signature" - diff --git a/app/views/administrateurs/attestation_templates/_informations.html.haml b/app/views/administrateurs/attestation_templates/_informations.html.haml index e8b7ae4e7..35d20116d 100644 --- a/app/views/administrateurs/attestation_templates/_informations.html.haml +++ b/app/views/administrateurs/attestation_templates/_informations.html.haml @@ -42,4 +42,3 @@ .fr-mt-4w = render Dsfr::InputComponent.new(form: f, attribute: :footer, input_type: :text_field, opts: { maxlength: 190, size: nil }, required: false) - diff --git a/app/views/administrateurs/procedures/zones.html.haml b/app/views/administrateurs/procedures/zones.html.haml index 5b560292a..e8b6e91eb 100644 --- a/app/views/administrateurs/procedures/zones.html.haml +++ b/app/views/administrateurs/procedures/zones.html.haml @@ -29,4 +29,3 @@ .actions-right = link_to 'Annuler', admin_procedure_path(id: @procedure), class: 'fr-btn fr-btn--tertiary fr-mr-2w', data: { confirm: 'Êtes-vous sûr de vouloir annuler les modifications effectuées ?'} = f.button 'Enregistrer', class: 'fr-btn fr-btn--primary' - diff --git a/app/views/administrateurs/types_de_champ/move_and_morph.turbo_stream.haml b/app/views/administrateurs/types_de_champ/move_and_morph.turbo_stream.haml index 58b10b3c2..500899d89 100644 --- a/app/views/administrateurs/types_de_champ/move_and_morph.turbo_stream.haml +++ b/app/views/administrateurs/types_de_champ/move_and_morph.turbo_stream.haml @@ -1,2 +1 @@ = render partial: 'insert' - diff --git a/app/views/gestionnaires/groupe_gestionnaires/show.html.haml b/app/views/gestionnaires/groupe_gestionnaires/show.html.haml index 5cd67d921..1fa8d87b9 100644 --- a/app/views/gestionnaires/groupe_gestionnaires/show.html.haml +++ b/app/views/gestionnaires/groupe_gestionnaires/show.html.haml @@ -23,4 +23,3 @@ = render GroupeGestionnaire::Card::AdministrateursComponent.new(groupe_gestionnaire: @groupe_gestionnaire, path: gestionnaire_groupe_gestionnaire_administrateurs_path(@groupe_gestionnaire)) = render GroupeGestionnaire::Card::ChildrenComponent.new(groupe_gestionnaire: @groupe_gestionnaire, path: gestionnaire_groupe_gestionnaire_children_path(@groupe_gestionnaire)) = render GroupeGestionnaire::Card::CommentairesComponent.new(groupe_gestionnaire: @groupe_gestionnaire, administrateur: nil, path: gestionnaire_groupe_gestionnaire_commentaires_path(@groupe_gestionnaire), unread_commentaires: @unread_commentaires) - diff --git a/app/views/gestionnaires/groupe_gestionnaires/tree_structure.html.haml b/app/views/gestionnaires/groupe_gestionnaires/tree_structure.html.haml index f3757a96d..3b1055657 100644 --- a/app/views/gestionnaires/groupe_gestionnaires/tree_structure.html.haml +++ b/app/views/gestionnaires/groupe_gestionnaires/tree_structure.html.haml @@ -11,4 +11,3 @@ - @tree_structure.each do |parent, children| %li = render(GroupeGestionnaire::GroupeGestionnaireTreeStructures::TreeStructureComponent.new(parent: parent, children: children)) - diff --git a/app/views/instructeurs/dossiers/_decisions_rendues_block.html.haml b/app/views/instructeurs/dossiers/_decisions_rendues_block.html.haml index 80d2a648b..2ffc80788 100644 --- a/app/views/instructeurs/dossiers/_decisions_rendues_block.html.haml +++ b/app/views/instructeurs/dossiers/_decisions_rendues_block.html.haml @@ -10,4 +10,3 @@ = t(".without_email.#{traitement.state}", processed_at: processed_at) - else %p.tab-paragraph Aucune décision n’a été rendue - diff --git a/app/views/layouts/_setup_theme.html.haml b/app/views/layouts/_setup_theme.html.haml index 57c08dd77..27fb2b790 100644 --- a/app/views/layouts/_setup_theme.html.haml +++ b/app/views/layouts/_setup_theme.html.haml @@ -6,4 +6,3 @@ } } setDarkBeforeRender(); - diff --git a/app/views/shared/_mailer_round_button.html.haml b/app/views/shared/_mailer_round_button.html.haml index 012479f2f..77e0a452b 100644 --- a/app/views/shared/_mailer_round_button.html.haml +++ b/app/views/shared/_mailer_round_button.html.haml @@ -7,4 +7,3 @@ %td{ align:"center", style:"border-radius: 5px;", color: theme[:color], bgcolor: theme[:bg_color] } %a{ href: url, target:"_blank", rel: "noopener", style:"font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #{theme[:color]}; text-decoration: none; text-decoration: none; border-radius: 5px; padding: 12px 25px; border: 1px solid #{theme[:border_color]}; display: inline-block; min-width: 250px" } = text - diff --git a/app/views/shared/archives/_notice.html.haml b/app/views/shared/archives/_notice.html.haml index 4c096ad54..7b6002849 100644 --- a/app/views/shared/archives/_notice.html.haml +++ b/app/views/shared/archives/_notice.html.haml @@ -36,5 +36,3 @@ Nous vous invitons à regarder = link_to 'la documentation', ARCHIVAGE_DOC_URL afin de voir les options à votre disposition pour mettre en place un système d’archive. - - diff --git a/app/views/shared/champs/cnaf/_adresse.html.haml b/app/views/shared/champs/cnaf/_adresse.html.haml index 9c3cbdd1e..7ffbe6b61 100644 --- a/app/views/shared/champs/cnaf/_adresse.html.haml +++ b/app/views/shared/champs/cnaf/_adresse.html.haml @@ -5,6 +5,3 @@ %tr %th= t("api_particulier.providers.cnaf.scopes.adresse.#{key}") %td= adresse[key] - - - diff --git a/app/views/shared/dossiers/_identite_entreprise_bilan_detail.html.haml b/app/views/shared/dossiers/_identite_entreprise_bilan_detail.html.haml index 4611b8e80..d102b632f 100644 --- a/app/views/shared/dossiers/_identite_entreprise_bilan_detail.html.haml +++ b/app/views/shared/dossiers/_identite_entreprise_bilan_detail.html.haml @@ -5,4 +5,3 @@ = "#{pretty_date_exercice(year_for_bilan(bilan))} :" = pretty_currency(value_for_bilan_key(bilan, key), unit: pretty_currency_unit(etablissement.entreprise_bilans_bdf_monnaie)) %br - diff --git a/app/views/super_admins/release_notes/_main_navigation.html.haml b/app/views/super_admins/release_notes/_main_navigation.html.haml index 8207cee48..1485a91fa 100644 --- a/app/views/super_admins/release_notes/_main_navigation.html.haml +++ b/app/views/super_admins/release_notes/_main_navigation.html.haml @@ -13,4 +13,3 @@ %li.fr-nav__item = link_to "Annonces publiées", release_notes_path, class: "fr-nav__link", target: "_self" - diff --git a/app/views/super_admins/release_notes/edit.html.haml b/app/views/super_admins/release_notes/edit.html.haml index df87cc386..d67c2e516 100644 --- a/app/views/super_admins/release_notes/edit.html.haml +++ b/app/views/super_admins/release_notes/edit.html.haml @@ -5,4 +5,3 @@ .fr-col-lg-10 %h1.fr-h2 Annonce = render ReleaseNote::FormComponent.new(release_note: @release_note) -