- Enhanced the scoring system to provide more accurate and comprehensive code evaluations
- Added detailed scoring criteria for each dimension
- Implemented weighted scoring for different aspects of code quality
The evaluation now covers the following dimensions:
- Readability: Code clarity and understandability
- Efficiency & Performance: Code execution speed and resource usage
- Security: Code security practices and vulnerability prevention
- Structure & Design: Code organization and architectural design
- Error Handling: Robustness in handling errors and edge cases
- Documentation & Comments: Code documentation quality and completeness
- Code Style: Adherence to coding standards and best practices
- Improved timeout handling for API requests
- Added detailed error logging
- Implemented better error recovery mechanisms
- Reduced API call latency
- Optimized memory usage
- Improved concurrent request handling
- Added comprehensive API documentation
- Updated user guides
- Improved code examples and tutorials
-
Ensure the .env file is properly configured, especially:
- Platform tokens (GitHub or GitLab)
- LLM API keys (OpenAI, DeepSeek, etc.)
- SMTP server settings (if email notifications are enabled)
-
If using Gmail for email notifications:
- Enable two-factor authentication for your Google account
- Generate an app-specific password (https://myaccount.google.com/apppasswords)
- Use the app password in your .env file
-
Evaluate Developer Code:
python run_codedog.py eval "developer_name" --start-date YYYY-MM-DD --end-date YYYY-MM-DD
-
Review PR/MR:
# GitHub PR review python run_codedog.py pr "repository_name" PR_number # GitLab MR review python run_codedog.py pr "repository_name" MR_number --platform gitlab # Self-hosted GitLab instance python run_codedog.py pr "repository_name" MR_number --platform gitlab --gitlab-url "https://your.gitlab.instance.com"
-
Set up Git Hooks:
python run_codedog.py setup-hooks
- For large code diffs, you may encounter context length limits. In such cases, consider using
gpt-4-32kor other models with larger context windows. - DeepSeek models have specific message format requirements, please ensure to follow the fixes mentioned above.
- Implement better text chunking and processing for handling large code diffs
- Develop more specialized scoring criteria for different file types
- Further improve report presentation with visual charts
- Deeper integration with CI/CD systems