Skip to content

chore: add fallow static analysis to CI#9

Merged
mroderick merged 2 commits intomainfrom
chore/add-fallow
Apr 18, 2026
Merged

chore: add fallow static analysis to CI#9
mroderick merged 2 commits intomainfrom
chore/add-fallow

Conversation

@mroderick
Copy link
Copy Markdown
Collaborator

@mroderick mroderick commented Apr 18, 2026

This PR has been branched from #8, please review and merge that one first :)

Summary

Integrates fallow static analysis into the project and CI pipeline to catch dead code, duplication, and complexity issues.

Changes

Package.json

  • Added fallow as devDependency (^2.40.3)
  • Added npm run fallow script

CI Workflow

  • Added npm run fallow to smoke test job

Current Status

All fallow checks currently pass:

$ npm run fallow

> fallow
> fallow dead-code && fallow dupes && fallow health

✓ No issues found (dead code)
✓ No code duplication found
Health score: 92 A

Why This Matters

Fallow catches:

  • Dead code: Unused exports, files, dependencies
  • Duplication: Code clones across the project
  • Complexity: Functions that are too large or complex

Running in CI ensures these issues don't creep back in.

Notes

  • Dependabot will keep fallow updated
  • Version allows minor/patch updates (^2.40.3)
  • Uses existing .fallowrc.json configuration

@mroderick mroderick force-pushed the chore/add-fallow branch 2 times, most recently from 5adf133 to 7447368 Compare April 18, 2026 07:54
@mroderick mroderick marked this pull request as ready for review April 18, 2026 07:57
@mroderick mroderick requested a review from till April 18, 2026 07:57
@mroderick
Copy link
Copy Markdown
Collaborator Author

Fixes #2

till
till previously approved these changes Apr 18, 2026
@mroderick mroderick dismissed till’s stale review April 18, 2026 10:27

The merge-base changed after approval.

…lication

Extract duplicated POST request logic in magic-links.test.js into a
standalone helper function. The same 9-line block appeared in two tests
for requesting magic links.

Fallow report (before):
  test/features/magic-links.test.js:11-24
  test/features/magic-links.test.js:34-48
  15 lines duplicated across 2 instances

Fallow report (after):
  ✓ No code duplication found
Add fallow static analysis tool to catch dead code, duplication, and
complexity issues:

- Add fallow ^2.40.3 to devDependencies
- Add npm run fallow script (runs dead-code, dupes, health)
- Integrate into smoke test job in CI workflow

This allows Dependabot to keep fallow updated and ensures all code
quality checks run on every PR.

All current fallow checks pass:
- Dead code: No issues
- Duplicates: No duplication
- Health: 92 A score
@mroderick mroderick requested a review from till April 18, 2026 10:28
@mroderick
Copy link
Copy Markdown
Collaborator Author

Hmm .. stacked PRs and requiring a review on every final commit in a branch means re-reviewing things ... sorry about that. I'll try to not make stacked PRs to avoid this

@till
Copy link
Copy Markdown
Collaborator

till commented Apr 18, 2026

It's fine, Github showed me what I have to look at. Aka zero new changes.

@mroderick mroderick merged commit dbc73bb into main Apr 18, 2026
5 checks passed
@mroderick mroderick deleted the chore/add-fallow branch April 18, 2026 10:35
mroderick added a commit that referenced this pull request Apr 18, 2026
chore: add fallow static analysis to CI
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.

2 participants