Skip to content

chore: fix fallow dead-code false positives for docs site#43

Merged
benjamineckstein merged 1 commit into
mainfrom
chore/fallow-docs-entrypoints
Jun 6, 2026
Merged

chore: fix fallow dead-code false positives for docs site#43
benjamineckstein merged 1 commit into
mainfrom
chore/fallow-docs-entrypoints

Conversation

@benjamineckstein

Copy link
Copy Markdown
Contributor

What

Fixes the 2 fallow dead-code (unused-files) findings:

  • docs/src/components/Footer.astro
  • docs/src/styles/custom.css

Why these are false positives

Both files ARE used by the docs site, but only through Starlight config strings in docs/astro.config.mjs that fallow's static analysis cannot follow:

  • components.Footer: './src/components/Footer.astro' (line 90)
  • customCss: ['./src/styles/custom.css'] (line 88)

Deleting them would break the docs footer override and custom styling. The correct fix is to declare them as fallow entry points so they are treated as reachable.

Change

  • Add entry for the two Starlight-referenced files.
  • Add docs/dist/** to ignorePatterns (scan hygiene for built output).
  • Config-only. No source/library change. CLAUDE.md and shipped package unaffected.

Result

fallow dead-code: 2 issues -> 0. Changed-file audit clean.

Note: the remaining dupes (clone groups in the multi-variant writer/parser) and health hotspots are advisory and pre-existing; not addressed here (see PR discussion).

fallow flagged docs/src/components/Footer.astro and
docs/src/styles/custom.css as unused files. Both are reachable, just
through Starlight config strings (components.Footer override and
customCss) in docs/astro.config.mjs that fallow's static analysis cannot
trace. Declare them as fallow entry points so they are correctly treated
as reachable instead of deleting working files. Also ignore docs/dist/**
build output for scan hygiene.

dead-code: 2 issues -> 0.
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Fallow audit report

No GitHub PR/MR findings.

Generated by fallow.

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Fallow audit report

0 inline findings selected for GitHub review.

@benjamineckstein benjamineckstein merged commit 6beb6a2 into main Jun 6, 2026
2 checks passed
@benjamineckstein benjamineckstein deleted the chore/fallow-docs-entrypoints branch June 6, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant