Skip to content

Correction des warnings à la compilation#1354

Merged
alexisben merged 72 commits intomainfrom
warn-cleanup
Mar 3, 2026
Merged

Correction des warnings à la compilation#1354
alexisben merged 72 commits intomainfrom
warn-cleanup

Conversation

@alexisben
Copy link
Copy Markdown
Contributor

@alexisben alexisben commented Feb 24, 2026

Type

  • Nouvelle fonctionnalité
  • Bug
  • Ajustement
  • Rangement

Description

Retirer la condition et simplifier l'appel du partiel "GetHeadingTag".

  • 6 occurences dans le thème dont les appels sont déjà corrects.

Il reste un warning lié au partiel d'image à corriger.

Niveau d'incidence

  • Incidence faible 😌
  • Incidence moyenne 😲
  • Incidence forte 😱

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 24, 2026

djLint

Unclosed string found in template syntax.

layouts/_partials/commons/image/helpers/GetDimensions.html, line 12:2, code T027

{{ $svgWidth := inde

Unclosed string found in template syntax.

layouts/_partials/commons/image/helpers/GetDimensions.html, line 13:2, code T027

{{ $svgHeight := ind

Unclosed string found in template syntax.

layouts/_partials/commons/image/helpers/GetDimensions.html, line 18:4, code T027

{{ $svgViewBoxSizes 

Tag seems to be an orphan.

layouts/_partials/contents/list.html, line 42:2, code H025

</div>

Tag seems to be an orphan.

layouts/_partials/taxonomies/section-list.html, line 9:2, code H025

<div class="taxonomi

Duplicate attribute found.

layouts/alias.html, line 9:43, code H037

url

Linted 573 files, found 6 errors.

Hugo analyzer

Directories

Directories should not contain too many files, it's probably a sign of mess.

Id State Files Directory
dir-1 26 _partials
dir-2 ⚠️ 17 _partials/commons
dir-3 ⚠️ 14 _partials/programs/single
dir-4 ⚠️ 12 _partials/footer
dir-5 ⚠️ 11 _partials/hooks

Partials calls

Partials called once might be in the wrong place. Partials never called might be metaprogrammed, or obsolete.

Id State Calls Fragment Partial
cal-1 ⚠️ 1 GetCategoriesSlug _partials/GetCategoriesSlug.html
cal-2 ⚠️ 1 GetLightboxUrl _partials/GetLightboxUrl.html
cal-3 ⚠️ 1 GetTermsFromTaxonomies _partials/GetTermsFromTaxonomies.html
cal-4 ⚠️ 1 isInteractiveMapPresent _partials/isInteractiveMapPresent.html
cal-5 0 posts/partials/layouts/list/list _partials/posts/partials/layouts/list/list.html
cal-6 0 teachers/single _partials/teachers/single.html
cal-7 0 posts/partials/layouts/large/large _partials/posts/partials/layouts/large/large.html
cal-8 0 laboratories/single/summary _partials/laboratories/single/summary.html
cal-9 0 toc/default _partials/toc/default.html
cal-10 0 commons/menu/item/title _partials/commons/menu/item/title.html
cal-11 0 programs/single/hero/logos _partials/programs/single/hero/logos.html
cal-12 0 commons/lang-switch _partials/commons/lang-switch.html
cal-13 0 projects/single/hero/infos _partials/projects/single/hero/infos.html
cal-14 0 pages/partials/layouts/list/list _partials/pages/partials/layouts/list/list.html
cal-15 0 pages/partials/layouts/large/large _partials/pages/partials/layouts/large/large.html
cal-16 0 pages/partials/layouts/grid/grid _partials/pages/partials/layouts/grid/grid.html
cal-17 0 pages/partials/layouts/cards/cards _partials/pages/partials/layouts/cards/cards.html
cal-18 0 programs/single/toc _partials/programs/single/toc.html
cal-19 0 categories/partials/layouts/default _partials/categories/partials/layouts/default.html
cal-20 0 pages/single/toc _partials/pages/single/toc.html
cal-21 0 pages/partials/layouts/alternate/alternate _partials/pages/partials/layouts/alternate/alternate.html
cal-22 0 diplomas/single/hero/essential _partials/diplomas/single/hero/essential.html
cal-23 0 sitemap/toc _partials/sitemap/toc.html
cal-24 0 papers/single/toc _partials/papers/single/toc.html
cal-25 0 organizations/partials/layouts/map/map _partials/organizations/partials/layouts/map/map.html
cal-26 0 blocks/templates/timeline/vertical _partials/blocks/templates/timeline/vertical.html
cal-27 0 blocks/templates/timeline/horizontal _partials/blocks/templates/timeline/horizontal.html
cal-28 0 organizations/partials/layouts/large/large _partials/organizations/partials/layouts/large/large.html
cal-29 0 organizations/partials/layouts/grid/grid _partials/organizations/partials/layouts/grid/grid.html
cal-30 0 persons/partials/persons _partials/persons/partials/persons.html
cal-31 0 organizations/partials/layouts/carousel/carousel _partials/organizations/partials/layouts/carousel/carousel.html
cal-32 0 locations/single/hero/address _partials/locations/single/hero/address.html
cal-33 0 footer/backtotop _partials/footer/backtotop.html
cal-34 0 posts/partials/layouts/alternate/alternate _partials/posts/partials/layouts/alternate/alternate.html
cal-35 0 posts/partials/layouts/carousel/carousel _partials/posts/partials/layouts/carousel/carousel.html
cal-36 0 posts/partials/layouts/grid/grid _partials/posts/partials/layouts/grid/grid.html
cal-37 0 posts/partials/layouts/highlight/highlight _partials/posts/partials/layouts/highlight/highlight.html
cal-38 0 programs/single/hero/essential _partials/programs/single/hero/essential.html

Too many lines

Files should not be too long, it's a sign of mess and a difficulty for overrides.

Id State Lines Path
lin-1 154 _partials/programs/single/toc.html
lin-2 151 _partials/blocks/templates/contact.html
lin-3 148 _partials/contents/backlinks.html
lin-4 118 _partials/header/hero.html
lin-5 109 _partials/programs/single/admission.html
lin-6 108 _partials/persons/single.html
lin-7 107 _partials/debug/tools/images.html
lin-8 106 _partials/commons/pagination.html
lin-9 104 _partials/events/partials/event.html
lin-10 91 _partials/commons/image.html
lin-11 91 _partials/posts/partials/post.html
lin-12 90 _partials/programs/single/presentation.html
lin-13 88 _partials/blocks/templates/programs.html
lin-14 85 _partials/debug/tools/help.html
lin-15 83 _partials/posts/partials/layouts/highlight/highlight.html
lin-16 82 _partials/programs/partials/program.html
lin-17 81 _partials/head/seo.html
lin-18 81 pages/sitemap.html
lin-19 79 _partials/organizations/partials/layouts/map/map.html
lin-20 74 _partials/debug/tools/spacing.html
lin-21 73 alias.html
lin-22 73 _partials/papers/single/sidebar.html
lin-23 ⚠️ 69 _partials/exhibitions/partials/exhibition.html
lin-24 ⚠️ 68 _partials/commons/contact-details.html
lin-25 ⚠️ 68 _partials/programs/single/hero/essential.html
lin-26 ⚠️ 66 _partials/organizations/partials/organization.html
lin-27 ⚠️ 66 _partials/events/single/event-infos.html
lin-28 ⚠️ 64 _partials/projects/partials/project.html
lin-29 ⚠️ 63 _partials/pages/partials/layouts/list/list.html
lin-30 ⚠️ 63 _partials/commons/image/helpers/get-url/Osuny.html
lin-31 ⚠️ 62 _partials/blocks/templates/testimonials.html
lin-32 ⚠️ 61 _partials/commons/agenda/dates.html
lin-33 ⚠️ 61 _partials/debug/tools/grid.html
lin-34 ⚠️ 59 _partials/commons/share/links.html
lin-35 ⚠️ 57 _partials/persons/partials/person.html
lin-36 ⚠️ 56 _partials/commons/item/schedule.html
lin-37 ⚠️ 55 _partials/jobs/partials/job.html
lin-38 ⚠️ 55 _partials/blocks/templates/video.html
lin-39 ⚠️ 54 _partials/pages/partials/layouts/grid/grid.html
lin-40 ⚠️ 53 _partials/footer/js.html
lin-41 ⚠️ 53 _partials/pages/partials/layouts/alternate/alternate.html
lin-42 ⚠️ 53 _partials/papers/partials/paper.html
lin-43 ⚠️ 52 _partials/exhibitions/single/exhibition-infos.html
lin-44 ⚠️ 52 _partials/blocks/templates/features.html
lin-45 ⚠️ 52 _partials/events/section/calendar/month.html
lin-46 ⚠️ 51 _partials/locations/partials/map.html
lin-47 ⚠️ 50 _partials/blocks/templates/persons.html
lin-48 ⚠️ 49 _partials/pages/partials/layouts/cards/cards.html
lin-49 ⚠️ 49 _partials/commons/siblings-navigation.html
lin-50 ⚠️ 49 _partials/pages/partials/layouts/large/large.html
lin-51 ⚠️ 49 _partials/blocks/templates/links.html
lin-52 ⚠️ 49 _partials/pages/partials/page.html
lin-53 ⚠️ 48 _partials/diplomas/partials/diplomas.html
lin-54 ⚠️ 47 _partials/events/partials/agenda.html
lin-55 ⚠️ 46 _partials/commons/i18n.html
lin-56 ⚠️ 46 _partials/persons/section.html
lin-57 ⚠️ 46 _partials/events/single.html
lin-58 ⚠️ 45 _partials/blocks/templates/locations.html
lin-59 ⚠️ 44 _partials/blocks/templates/testimonials/carousel.html
lin-60 ⚠️ 44 _partials/debug/tools/cross.html
lin-61 ⚠️ 44 _partials/events_categories/single.html
lin-62 ⚠️ 43 _partials/programs/single/pedagogy.html
lin-63 ⚠️ 43 _partials/contents/list.html
lin-64 ⚠️ 43 _partials/taxonomies/single-list.html
lin-65 ⚠️ 42 _partials/blocks/templates/call_to_action.html
lin-66 ⚠️ 42 _partials/locations/partials/location.html
lin-67 ⚠️ 42 _partials/jobs/single/job-infos.html
lin-68 ⚠️ 42 _partials/blocks/templates/posts.html
lin-69 ⚠️ 42 _partials/diplomas/single.html
lin-70 ⚠️ 41 _partials/publications/partials/publication.html
lin-71 ⚠️ 41 _partials/blocks/templates/pages.html
lin-72 ⚠️ 40 _partials/blocks/templates/key_figures.html
lin-73 ⚠️ 40 baseof.html
lin-74 ⚠️ 39 _partials/programs/section.html
lin-75 ⚠️ 39 _partials/organizations/single.html
lin-76 ⚠️ 39 _partials/journals/partials/journal.html
lin-77 ⚠️ 39 _partials/laboratories/partials/laboratory.html
lin-78 ⚠️ 39 _partials/schools/partials/school.html
lin-79 ⚠️ 38 _partials/taxonomies/section-list.html
lin-80 ⚠️ 38 _partials/blocks/templates/chapter.html
lin-81 ⚠️ 38 _partials/papers/partials/actions.html
lin-82 ⚠️ 37 _partials/blocks/templates/sound.html
lin-83 ⚠️ 37 _partials/commons/categories.html
lin-84 ⚠️ 37 _partials/commons/item/heading.html
lin-85 ⚠️ 36 _partials/programs/single/related/projects.html
lin-86 ⚠️ 36 _partials/commons/image/helpers/get-url/Keycdn.html
lin-87 ⚠️ 36 _partials/organizations/section.html
lin-88 ⚠️ 36 _partials/programs/single/related/posts.html
lin-89 ⚠️ 36 _partials/commons/socials.html
lin-90 ⚠️ 36 _partials/posts/single/post-infos.html
lin-91 ⚠️ 36 _partials/programs/single/related/events.html
lin-92 ⚠️ 36 _partials/programs/single/related/exhibitions.html
lin-93 ⚠️ 36 _partials/blocks/templates/datatable.html
lin-94 ⚠️ 36 _partials/footer/site/school.html

Complexity

Cyclomatic complexity should not be too high.

Id State Complexity File
cpx-1 30 _partials/programs/single/toc.html
cpx-2 27 _partials/blocks/templates/contact.html
cpx-3 26 _partials/commons/image.html
cpx-4 25 _partials/commons/pagination.html
cpx-5 24 _partials/header/hero.html
cpx-6 21 _partials/programs/single/admission.html
cpx-7 19 _partials/persons/single.html
cpx-8 18 _partials/posts/partials/post.html
cpx-9 17 _partials/events/partials/event.html
cpx-10 17 _partials/programs/single/presentation.html
cpx-11 17 _partials/head/seo.html
cpx-12 15 _partials/commons/agenda/dates.html
cpx-13 15 _partials/organizations/partials/organization.html
cpx-14 15 alias.html
cpx-15 15 _partials/events/single/event-infos.html
cpx-16 14 _partials/commons/image/helpers/get-url/Osuny.html
cpx-17 14 _partials/programs/single/hero/essential.html
cpx-18 14 _partials/blocks/templates/testimonials.html
cpx-19 14 _partials/blocks/templates/testimonials/carousel.html
cpx-20 14 _partials/posts/partials/layouts/highlight/highlight.html
cpx-21 13 _partials/projects/partials/project.html
cpx-22 13 pages/sitemap.html
cpx-23 12 _partials/commons/contact-details.html
cpx-24 12 _partials/blocks/templates/call_to_action.html
cpx-25 12 _partials/locations/partials/map.html
cpx-26 12 _partials/commons/item/schedule.html
cpx-27 12 _partials/programs/partials/program.html
cpx-28 12 _partials/persons/partials/person.html
cpx-29 12 _partials/pages/partials/layouts/list/list.html
cpx-30 11 _partials/papers/partials/paper.html
cpx-31 11 _partials/papers/single/sidebar.html
cpx-32 11 _partials/exhibitions/single/exhibition-infos.html
cpx-33 11 _partials/blocks/templates/programs.html
cpx-34 11 _partials/header/breadcrumbs.html
cpx-35 11 _partials/organizations/partials/layouts/map/map.html
cpx-36 ⚠️ 10 _partials/blocks/templates/posts.html
cpx-37 ⚠️ 10 _partials/events/section/calendar/month.html
cpx-38 ⚠️ 10 _partials/blocks/templates/links.html
cpx-39 ⚠️ 10 _partials/pages/partials/layouts/grid/grid.html
cpx-40 ⚠️ 10 _partials/rss/channel/attributes.html
cpx-41 ⚠️ 10 _partials/commons/share/links.html
cpx-42 ⚠️ 10 _partials/blocks/templates/features.html
cpx-43 ⚠️ 9 _partials/head/favicons.html
cpx-44 ⚠️ 9 _partials/commons/address.html
cpx-45 ⚠️ 9 _partials/blocks/templates/video.html
cpx-46 ⚠️ 9 _partials/taxonomies/single-list.html
cpx-47 ⚠️ 9 _partials/taxonomies/section-list.html
cpx-48 ⚠️ 9 _partials/exhibitions/partials/exhibition.html
cpx-49 ⚠️ 9 _partials/blocks/templates/key_figures.html
cpx-50 ⚠️ 9 _partials/events/partials/agenda.html
cpx-51 ⚠️ 9 _partials/jobs/single/job-infos.html
cpx-52 ⚠️ 9 _partials/blocks/templates/persons.html
cpx-53 ⚠️ 9 _partials/debug/tools/images.html
cpx-54 ⚠️ 8 _partials/pages/partials/layouts/alternate/alternate.html
cpx-55 ⚠️ 8 _partials/commons/summary-in-content.html
cpx-56 ⚠️ 8 _partials/persons/section/persons-taxonomies.html
cpx-57 ⚠️ 8 _partials/commons/menu/item/title.html
cpx-58 ⚠️ 8 _partials/blocks/templates/pages.html
cpx-59 ⚠️ 8 _partials/posts/single/post-infos.html
cpx-60 ⚠️ 8 _partials/commons/image/helpers/GetDimensions.html
cpx-61 ⚠️ 8 _partials/commons/i18n.html
cpx-62 ⚠️ 8 _partials/isInteractiveMapPresent.html
cpx-63 ⚠️ 8 _partials/contents/list.html
cpx-64 ⚠️ 8 _partials/commons/image/helpers/get-url/Keycdn.html
cpx-65 ⚠️ 8 _partials/jobs/partials/job.html
cpx-66 ⚠️ 7 _partials/blocks/templates/gallery.html
cpx-67 ⚠️ 7 _partials/persons/partials/list.html
cpx-68 ⚠️ 7 _partials/blocks/top.html
cpx-69 ⚠️ 7 _partials/events/partials/event/meta-dates.html
cpx-70 ⚠️ 7 _partials/blocks/templates/locations.html
cpx-71 ⚠️ 7 _partials/publications/partials/publication.html
cpx-72 ⚠️ 7 _partials/commons/socials.html
cpx-73 ⚠️ 7 _partials/persons/section.html
cpx-74 ⚠️ 7 _partials/commons/categories.html
cpx-75 ⚠️ 7 _partials/contents/backlinks.html
cpx-76 ⚠️ 7 _partials/commons/menu/helpers/GetSummary.html
cpx-77 ⚠️ 7 _partials/commons/download-link.html
cpx-78 ⚠️ 7 _partials/pages/partials/page.html
cpx-79 ⚠️ 7 _partials/programs/single/related.html
cpx-80 ⚠️ 7 _partials/blocks/templates/exhibitions.html
cpx-81 ⚠️ 7 _partials/papers/partials/actions.html
cpx-82 ⚠️ 7 _partials/blocks/templates/agenda.html
cpx-83 ⚠️ 7 _partials/commons/logo.html
cpx-84 ⚠️ 7 _partials/commons/siblings-navigation.html
cpx-85 ⚠️ 7 _partials/blocks/templates/files.html
cpx-86 ⚠️ 6 _partials/diplomas/single.html
cpx-87 ⚠️ 6 _partials/header/accessibility.html
cpx-88 ⚠️ 6 _partials/blocks/templates/datatable.html
cpx-89 ⚠️ 6 _partials/GetHumanSize.html
cpx-90 ⚠️ 6 _partials/organizations/partials/layouts/large/large.html
cpx-91 ⚠️ 6 _partials/diplomas/partials/diplomas.html
cpx-92 ⚠️ 6 _partials/programs/single/pedagogy.html
cpx-93 ⚠️ 6 _partials/organizations/partials/layouts/grid/grid.html
cpx-94 ⚠️ 6 _partials/blocks/templates/projects.html
cpx-95 ⚠️ 6 _partials/blocks/templates/chapter.html
cpx-96 ⚠️ 6 _partials/commons/item/heading.html
cpx-97 ⚠️ 6 _partials/footer/site/school.html
cpx-98 ⚠️ 6 _partials/pages/partials/layouts/large/large.html
cpx-99 ⚠️ 6 _partials/publications/partials/publications.html
cpx-100 ⚠️ 6 _partials/categories/partials/category.html
cpx-101 ⚠️ 6 _partials/publications/single/researchers.html
cpx-102 ⚠️ 6 _partials/pages/partials/layouts/cards/cards.html

@arnaudlevy
Copy link
Copy Markdown
Member

@alexisben je propose qu'on garde la convention suivante

  • partiels normaux lowercase, tirets, appel avec .html (ça dit bien qu'on appelle un morceau d'html)
  • partiels helpers upper camel case, extension html présente pour le linter mais appel sans .html
    Ok ?

@alexisben
Copy link
Copy Markdown
Contributor Author

@alexisben je propose qu'on garde la convention suivante

  • partiels normaux lowercase, tirets, appel avec .html (ça dit bien qu'on appelle un morceau d'html)
  • partiels helpers upper camel case, extension html présente pour le linter mais appel sans .html
    Ok ?

Oui ! https://developers.osuny.org/docs/theme/html/structure/#nommage-et-appels-des-partiels

@arnaudlevy arnaudlevy moved this to In progress in Refactor theme Osuny Feb 26, 2026
@arnaudlevy arnaudlevy moved this from In progress to In review in Refactor theme Osuny Feb 26, 2026
@arnaudlevy arnaudlevy moved this from In review to In progress in Refactor theme Osuny Feb 26, 2026
@arnaudlevy arnaudlevy changed the title Correction des warning à la compilation Correction des warnings à la compilation Feb 27, 2026
@alexisben alexisben marked this pull request as ready for review March 3, 2026 09:42
@alexisben alexisben merged commit 9c8d1a4 into main Mar 3, 2026
7 checks passed
@alexisben alexisben deleted the warn-cleanup branch March 3, 2026 10:08
@github-project-automation github-project-automation Bot moved this from In progress to Done in Refactor theme Osuny Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants