Skip to content

feat: add dead code detection and configurable entry points - #4

Merged
millareskenneth merged 1 commit into
mainfrom
feat/dead-code
Jun 6, 2026
Merged

feat: add dead code detection and configurable entry points#4
millareskenneth merged 1 commit into
mainfrom
feat/dead-code

Conversation

@millareskenneth

Copy link
Copy Markdown
Member
  • Add minimatch dependency for glob pattern matching
  • Implement getDeadFiles() function to identify unreferenced and isolated files
  • Add DEFAULT_ENTRY_PATTERNS constant with built-in entry point patterns
  • Introduce entryPatterns and replaceDefaultEntryPatterns options to analyze()
  • Add --dead-code, --entry, and --show-entry-patterns CLI flags
  • Classify files as entry points, reachable, or dead in dependency graph
  • Add graph tests for entry point detection and dead code classification
  • Update renderer to display dead files with visual distinction
  • Update HTML report generator to include dead code section
  • Enables users to detect unused files and configure custom entry points for analysis

- Add minimatch dependency for glob pattern matching
- Implement getDeadFiles() function to identify unreferenced and isolated files
- Add DEFAULT_ENTRY_PATTERNS constant with built-in entry point patterns
- Introduce entryPatterns and replaceDefaultEntryPatterns options to analyze()
- Add --dead-code, --entry, and --show-entry-patterns CLI flags
- Classify files as entry points, reachable, or dead in dependency graph
- Add graph tests for entry point detection and dead code classification
- Update renderer to display dead files with visual distinction
- Update HTML report generator to include dead code section
- Enables users to detect unused files and configure custom entry points for analysis
@millareskenneth
millareskenneth merged commit 22deb42 into main Jun 6, 2026
0 of 2 checks passed
@millareskenneth
millareskenneth deleted the feat/dead-code branch June 6, 2026 15:55
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