Commit Graph

14 Commits

Author SHA1 Message Date
Claude Bot
bb924092ad Make stats table more compact and informative
- Reduced column widths to minimum needed
- Category column sized to fit longest category name (16 chars)
- Added all requested categories:
  - JavaScript, TypeScript
  - React Components (when detected)
  - Stylesheets
  - CommonJS Modules, ECMA Modules
  - node_modules (separate from source)
  - Your Code (excluding node_modules)
  - Tests
  - All Code (grand total)
- All counts properly exclude node_modules except for node_modules and All Code rows
- Added high coupling warning when imports/file > 10

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 01:41:32 +00:00
Claude Bot
5d78352248 Improve stats table formatting and terminology
- Replace 'Methods' with 'Functions' throughout
- Change F/C (Functions per Class) to F/M (Functions per Module)
- Use beautiful unicode box-drawing characters for table
- Switch from f32 to f64 for better precision
- Add chart emoji to code ratio display

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 00:44:18 +00:00
autofix-ci[bot]
09062a8ebe [autofix.ci] apply automated fixes 2025-09-08 00:35:15 +00:00
Claude Bot
b8f5b494ba Fix stats command to suppress module resolution errors
- Continue parsing files despite module resolution errors
- Suppress all error output during stats collection
- Remove unnecessary summary text output
- Stats now silently handles missing dependencies and continues

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 00:33:06 +00:00
autofix-ci[bot]
baed5516e0 [autofix.ci] apply automated fixes 2025-09-07 23:51:23 +00:00
Claude Bot
138858da1a Improve bun stats command with AST-based counting and cleaner output
- Use parsed AST to accurately count functions/classes instead of string searching
  - Count s_function, s_class statements
  - Check s_local declarations for function/class values
  - Check s_expr for function/class expressions
  - Check s_export_default for exported functions/classes
- Ignore module resolution and syntax errors so stats collection continues
- Remove unnecessary output text for cleaner, Rails-like formatting
- Add M/C (Methods per Class) and LOC/M (Lines per Method) metrics
- Safely handle CSS files and empty AST parts
- Fix ASAN errors by properly checking parts.len before access
2025-09-07 23:49:01 +00:00
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