Repository navigation
Major Update to PureCode v0.2.0 - #2
Merged
Merged
Conversation
- Implement snapshot analysis for file directories - Add complexity scoring based on churn and code type - Introduce configuration file (.purecode.toml) for defaults - Update CLI with subcommands for diff and files modes - Enhance classifiers for better HTML/Vue comment handling - Add per-file statistics and CI-friendly output formats - Bump version to 0.2.0 with new features and improved documentation BREAKING CHANGE: CLI structure updated with subcommands; root command remains backward compatible for diff mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a major update to PureCode, evolving it from a simple git diff analyzer to a comprehensive code analysis tool with support for both diff and snapshot modes, configuration files, and enhanced CI integration.
Key Changes
🚀 New Features
purecode filescommand to analyze entire directories/files instead of just diffs.purecode.tomlfor default settings (base branch, format, thresholds, etc.)diffandfilessubcommands for better organization🔧 Improvements
🛠️ Technical Changes
serde,serde_json,toml,walkdir,globfor configuration and file handlingconfig.rs,files.rs,language.rs)FileStats,AnalysisResult, andThresholdErrorfor better type safety📚 Documentation
.purecode.tomlconfiguration optionsBreaking Changes
Migration Guide
purecodedirectly will continue to work (diff mode)purecode files.purecode.tomlto your repo root for project-specific defaults--ciflag for machine-readable outputTesting
This update significantly expands PureCode's capabilities while maintaining backward compatibility for core diff analysis functionality. The tool is now ready for broader use cases including codebase audits, CI/CD pipelines, and team workflow integration.