Skip to content

Work/complexity budget#64

Merged
bhdicaire merged 1 commit into
mainfrom
work/complexity-budget
Jun 5, 2026
Merged

Work/complexity budget#64
bhdicaire merged 1 commit into
mainfrom
work/complexity-budget

Conversation

@bhdicaire

Copy link
Copy Markdown
Member

This Pull Request adds the first complexity-budget and functional-core refactor slice for vanityURLs.

Detail

This PR:

  • adds ESLint-based complexity reporting with a ratchet-friendly budget
  • documents the complexity-budget decision in an ADR
  • adds focused upstream release tests
  • extracts pure build helpers from scripts/build.mjs into testable modules
  • adds unit coverage for site config, branding, security.txt, and HTML head normalization helpers
  • keeps scripts/build.mjs closer to an imperative shell that performs filesystem/build orchestration

The goal is to stop silent complexity growth while making future refactors smaller, safer, and easier to review.

Checks

  • npm run test:build-core
  • npm run test:build-html-core
  • npm run build
  • npm run check

Notes

This PR does not change runtime redirect behavior. It moves existing build logic into pure helper modules and adds tests around the extracted behavior.

@bhdicaire bhdicaire self-assigned this Jun 5, 2026
@bhdicaire bhdicaire requested a review from felleg as a code owner June 5, 2026 13:56

@bhdicaire bhdicaire left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is fine

@bhdicaire bhdicaire force-pushed the work/complexity-budget branch from d9656ae to 92d726b Compare June 5, 2026 14:00

@bhdicaire bhdicaire left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@bhdicaire bhdicaire merged commit 4e9dbd4 into main Jun 5, 2026
2 checks passed
@bhdicaire bhdicaire deleted the work/complexity-budget branch June 5, 2026 14:02
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