From f0be2d0f2d4f5260d4e4ea173f29ab4a2a9ca103 Mon Sep 17 00:00:00 2001 From: Ranjan Mohanty Date: Mon, 16 Nov 2026 01:24:01 +0100 Subject: [PATCH 1/2] Codacy: bind colors.c explicitly in renderWorkspaces Co-Authored-By: Claude Opus 5.5 --- src/report/terminal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report/terminal.ts b/src/report/terminal.ts index 9afafb2..9cf7192 100644 --- a/src/report/terminal.ts +++ b/src/report/terminal.ts @@ -25,7 +25,7 @@ export interface TerminalOptions { const MAX_PACKAGES_SHOWN = 10; function renderWorkspaces(ws: WorkspaceReport, colors: Colors, opts: TerminalOptions): string[] { - const { c } = colors; + const c = colors.c.bind(colors); const out: string[] = ['']; const agg = ws.aggregate === null From d751d5e284926ffee0581695a24732eff27f0d8d Mon Sep 17 00:00:00 2001 From: Ranjan Mohanty Date: Mon, 16 Nov 2026 01:24:32 +0100 Subject: [PATCH 2/2] Same explicit bind in the other renderer, for consistency Co-Authored-By: Claude Opus 5.5 --- src/report/terminal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report/terminal.ts b/src/report/terminal.ts index 9cf7192..f263ce5 100644 --- a/src/report/terminal.ts +++ b/src/report/terminal.ts @@ -71,7 +71,7 @@ function renderWorkspaces(ws: WorkspaceReport, colors: Colors, opts: TerminalOpt } export function renderTerminal(report: Report, colors: Colors, opts: TerminalOptions): string { - const { c } = colors; + const c = colors.c.bind(colors); const out: string[] = []; out.push(''); out.push(