Skip to content

Enforce tagged constructors and Effect tag APIs - #19

Merged
K-Mistele merged 1 commit into
mainfrom
replace-manual-tag-checks-with-tagged-constructors
Aug 27, 2026
Merged

Enforce tagged constructors and Effect tag APIs#19
K-Mistele merged 1 commit into
mainfrom
replace-manual-tag-checks-with-tagged-constructors

Conversation

@K-Mistele

Copy link
Copy Markdown
Contributor

Summary

  • add custom OXLint rules that reject manual _tag comparisons, broad tagged-error discrimination, and production tagged object literals
  • migrate Fold runtime code to Effect v4 Match, Predicate.isTagged, tagged handlers, and schema/data constructors
  • exclude tests, fixtures, and examples only from tagged-construction enforcement while preserving existing TUI overrides

Verification

  • bun run typecheck
  • bun run lint
  • bun run format:check
  • bun run test

@K-Mistele
K-Mistele merged commit f4ffa52 into main Aug 27, 2026
5 checks passed
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