Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 2.82 KB

File metadata and controls

83 lines (63 loc) · 2.82 KB

CodeDog Project Updates

Latest Updates

1. Improved Scoring System

  • 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

2. Evaluation Dimensions

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

3. Enhanced Error Handling

  • Improved timeout handling for API requests
  • Added detailed error logging
  • Implemented better error recovery mechanisms

4. Performance Optimizations

  • Reduced API call latency
  • Optimized memory usage
  • Improved concurrent request handling

5. Documentation Updates

  • Added comprehensive API documentation
  • Updated user guides
  • Improved code examples and tutorials

Running the Project

Environment Setup

  1. 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)
  2. If using Gmail for email notifications:

Running Commands

  1. Evaluate Developer Code:

    python run_codedog.py eval "developer_name" --start-date YYYY-MM-DD --end-date YYYY-MM-DD
  2. 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"
  3. Set up Git Hooks:

    python run_codedog.py setup-hooks

Important Notes

  • For large code diffs, you may encounter context length limits. In such cases, consider using gpt-4-32k or other models with larger context windows.
  • DeepSeek models have specific message format requirements, please ensure to follow the fixes mentioned above.

Future Improvements

  1. Implement better text chunking and processing for handling large code diffs
  2. Develop more specialized scoring criteria for different file types
  3. Further improve report presentation with visual charts
  4. Deeper integration with CI/CD systems