Skip to content

fix: two small issues in skipped manifest dependencies section (#841 follow-up) #842

Description

@sonukapoor

Two small issues in the skipped manifest dependencies feature added in #841.

1. Dead null guard in renderSkippedDependenciesSection

src/output/html-reporter.ts line with the early return:

if (!skipped || skipped.length === 0) return "";

skipped is typed string[] (non-optional), so !skipped can never be true. The guard should be:

if (skipped.length === 0) return "";

As written, it implies the argument could be null or undefined, which misleads anyone reading it alongside the type signature.

2. Icon collision - two sections in the same report

renderSkippedSection (the existing "Skipped findings" card) already uses . The new renderSkippedDependenciesSection also uses , so a report that has both sections will show two visually identical headers for different concepts - fix-plan exclusions vs. unresolvable manifest specifiers.

The new section should use a distinct symbol (e.g. ) so users can tell the two sections apart at a glance.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions