You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(wc): improve naming consistency and code clarity
- Rename parameters and variables for better descriptiveness:
- files → filePaths
- showAll → shouldShowAllStats
- results → allFileStats
- stats → fileStats
- totals → grandTotals
- label → displayName
- s → stat (in reduce callbacks)
- w → word (in filter callback)
- output → outputColumns
- format → formatColumn
- printReport → printFormattedReport
- Extract inline calculations to named variables in calculateFileStats()
- lines, words, bytes for improved readability
- Maintain all functionality and test coverage
- No behavioral changes, purely refactoring for clarity
0 commit comments