DEPRECATION WARNING
+{{deprecation_warning|safe}}
+ {% endif %} {% include "summary_table.html" %} {% include "summary_notes.html" %} {% for section in sections %} diff --git a/Lib/fontbakery/reporters/templates/markdown/main.markdown b/Lib/fontbakery/reporters/templates/markdown/main.markdown index b573d5543e..3bc6481a34 100644 --- a/Lib/fontbakery/reporters/templates/markdown/main.markdown +++ b/Lib/fontbakery/reporters/templates/markdown/main.markdown @@ -2,6 +2,11 @@ fontbakery version: {{fb_version}} +{% if deprecation_warning %} +### DEPRECATION WARNING +{{deprecation_warning}} +{% endif %} + {% if fatal_checks %} ## Checks with FATAL results diff --git a/Lib/fontbakery/reporters/terminal.py b/Lib/fontbakery/reporters/terminal.py index db8e85af6e..8ac95e319b 100644 --- a/Lib/fontbakery/reporters/terminal.py +++ b/Lib/fontbakery/reporters/terminal.py @@ -197,6 +197,26 @@ def end(self): and self._counter[PASS.name] > 20 ): self._console.print(CUPCAKE) + if self.legacy_checkid_references: + self._console.print( + "[message-FATAL]DEPRECATION WARNING[/]:\n" + "By late-December 2024, FontBakery version 0.13.0 introduced a new" + " naming scheme for the check-IDs.\n" + "\n" + "Fontbakery detected usage of old IDs and performed an automatic" + " backwards-compatibility translation for you.\n" + "This automatic translation will be deprecated in the next" + " major release.\n" + "\n" + "Please start using the new check-IDs as documented at\n" + "https://github.com/fonttools/fontbakery/blob/" + "83db7cc2a6ad58585ddec9397306e0420843edb1/Lib/" + "fontbakery/legacy_checkids.py\n" + "\n" + "The following legacy check-IDs were detected:\n" + f" - {'\n - '.join(self.legacy_checkid_references)}\n" + "\n" + ) self._console.print("DONE!") def receive_result(self, checkresult: CheckResult):