Skip to content

Rewrite CRAP analyzer for TypeScript - #2

Draft
midastruth wants to merge 1 commit into
unclebob:mainfrom
midastruth:agent/rewrite-crap-analyzer-typescript
Draft

Rewrite CRAP analyzer for TypeScript#2
midastruth wants to merge 1 commit into
unclebob:mainfrom
midastruth:agent/rewrite-crap-analyzer-typescript

Conversation

@midastruth

Copy link
Copy Markdown

Summary

  • replace the Java/Maven CRAP analyzer with a TypeScript/Node.js implementation
  • add TypeScript method parsing, Istanbul coverage ingestion, package-aware analysis, and CLI reporting
  • update the package metadata, documentation, specification, and automated tests for crap4ts

Why

This moves the analyzer to the TypeScript ecosystem and lets TypeScript projects calculate CRAP metrics directly from source files and Istanbul coverage data.

Impact

The project is now distributed as the crap4ts npm package and requires Node.js 22.18 or newer. The previous Java/Maven implementation is removed.

Validation

  • git diff --check origin/main..HEAD passed
  • npm test and npm run check were not run locally because dependencies are not installed and the VPS resource probe reported critical memory pressure; these checks are deferred 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