Commit Graph

8 Commits

Author SHA1 Message Date
autofix-ci[bot]
5bc237352b [autofix.ci] apply automated fixes 2025-09-07 13:56:55 +00:00
Claude Bot
d3cc0813a5 fix: correct bounds checking logic to prevent index out of bounds
- Use >= instead of < for bounds checking (array indices are 0-based)
- Add comprehensive bounds checks for both sources and loaders arrays
- Check bounds before accessing any array element
- This prevents crashes when processing files with mismatched array sizes
2025-09-07 13:54:43 +00:00
autofix-ci[bot]
6898e8a76e [autofix.ci] apply automated fixes 2025-09-07 13:26:44 +00:00
Claude Bot
5be0ade599 fix: change target to .bun and add error logging for resolver failures
- Use .bun target instead of .browser to properly resolve test files and Bun-specific imports
- Add error logging to show bundler errors when files fail to resolve
- This allows the stats command to work with test files and Bun modules
2025-09-07 13:24:14 +00:00
Claude Bot
33aa520794 refactor: remove Buntastic rating system, keep speed metric
Keep the clean speed metric showing LOC analyzed and time taken,
but remove the rating system to keep the feature focused.
2025-09-07 13:04:03 +00:00
Claude Bot
b2a6c0ae44 feat: add BUNTASTIC rating system to bun stats
- Add speed flex message showing LOC analyzed and time taken
- Add Bun API usage detection and rating system (1-10)
- Show encouraging messages based on Bun API usage
- Track imports of 'bun' and 'bun:*' modules
- Detect usage of Bun.* in source code

The rating system encourages developers to use more Bun APIs
by giving them a fun score and helpful suggestions.
2025-09-07 12:52:19 +00:00
Claude Bot
b1ce142e29 fix: improve bun stats implementation
- Fix type mismatches in stats_command.zig
- Add proper handling for virtual and builtin files
- Skip runtime file (index 0) in statistics
- Handle bounds checking for AST arrays
- Fix export count calculation for named exports

The stats command now correctly processes files using the bundler's
DependencyScanner and generates accurate statistics.
2025-09-07 12:34:06 +00:00
Claude Bot
5e8e8423f1 “wip” 2025-09-07 12:08:33 +00:00