Related Code Files:
requirements-core.txt- Core dependencies onlyrequirements-optional.txt- Optional dependencies for advanced featurescheck_java_structure.py- Renamed from check_structure.pyexamples/data-analysis/- Moved project-specific scripts
-
Removed Project-Specific Scripts
- Moved
analyze_diff_time_severity.py→ examples/data-analysis/ - Moved
analyze_nonzero_difftime.py→ examples/data-analysis/ - Moved
check_medium_scores.py→ examples/data-analysis/ - These domain-specific tools are now in examples, not the core toolkit
- Moved
-
Fixed Hardcoded Paths
- Verified
find_references_rg.py- Already uses.as default scope ✓ - Verified
analyze_dependencies_rg.py- Already uses.as default scope ✓ - Both were already fixed by the previous migration
- Verified
-
Separated Dependencies
- Created
requirements-core.txt- Only 3 essential packages:- javalang (Java AST parsing)
- esprima (JavaScript AST parsing)
- psutil (System utilities)
- Created
requirements-optional.txt- Advanced features:- rope (Python refactoring)
- numpy, pandas, sklearn (semantic_diff_v3)
- Development and testing tools
- Updated main
requirements.txtto reference both files
- Created
-
Renamed for Clarity
check_structure.py→check_java_structure.py- Updated wrapper script references
- Clarified description: "Validate Java source file structure and syntax"
- Cleaner Structure - No project-specific tools in main directory
- Minimal Dependencies - Core functionality needs only 3 packages
- Clear Purpose - Tool names now clearly indicate their function
- Easy Installation - Users can choose core-only or full installation
The toolkit is now cleaner and more focused. Next phases will tackle:
- Consolidating multiple versions of tools
- Standardizing argument parsing
- Adding comprehensive documentation
All Phase 1 tasks completed successfully with minimal effort!