fix(ci): the book engine's template names count as reached, and formatting

This commit is contained in:
Maurice
2026-10-22 13:31:00 +02:00
parent 8516441cab
commit 92f059f313
2 changed files with 11 additions and 10 deletions
+10 -5
View File
@@ -44,7 +44,8 @@
*
* The en keys nothing reaches are a ratchet. Besides src/, the search for
* references reads server/src (system notice and notification channel keys
* the server sends, *Key properties in its registries) and plugin-sdk/src, so
* the server sends, *Key properties in its registries), plugin-sdk/src and
* shared/src/book (the Studio's layout template names), so
* a key the server uses does not read as dead; those references only count as
* reached, they are not held to the rules above. The unused keys per en
* domain file may not rise above scripts/i18n-unused-baseline.json, and an
@@ -69,11 +70,15 @@ const UNUSED_BASELINE = join(HERE, 'i18n-unused-baseline.json');
/**
* Where else a translation key can be named: the server sends keys for the
* client to translate (system notices, notification channels), and the plugin
* SDK names the ones plugin surfaces use. Read only to find which en keys are
* reached.
* client to translate (system notices, notification channels), the plugin
* SDK names the ones plugin surfaces use, and the shared book engine names
* its layout templates. Read only to find which en keys are reached.
*/
export const REFERENCE_ROOTS = [join(HERE, '..', '..', 'server', 'src'), join(HERE, '..', '..', 'plugin-sdk', 'src')];
export const REFERENCE_ROOTS = [
join(HERE, '..', '..', 'server', 'src'),
join(HERE, '..', '..', 'plugin-sdk', 'src'),
join(HERE, '..', '..', 'shared', 'src', 'book'),
];
/** How many en keys a template may reach and still pass without an entry below. */
export const MAX_IMPLICIT_MATCHES = 30;
+1 -5
View File
@@ -258,11 +258,7 @@ function runningTotals(legs: readonly number[]): number[] {
}
/** The walking minutes from the start to each point, the whole time split over the legs by the signposts' rule. */
function waypointMinutesOf(
line: readonly GeometryPoint[],
positions: readonly number[],
total: number,
): number[] {
function waypointMinutesOf(line: readonly GeometryPoint[], positions: readonly number[], total: number): number[] {
return runningTotals(legMinutes(line, positions, total));
}