@rolaabuhasna/diff-reviewer
v1.4.0
Published
A CLI tool for automated git diff reviews using AI and static analysis
Maintainers
Readme
Diff Reviewer
A command-line tool that provides automated code reviews for your git diff changes using both static analysis and AI-powered feedback.
Features
- 🔍 Automated code analysis of:
- Latest commit changes (
--type diff) - Current working directory changes (
--type working)
- Latest commit changes (
- 🤖 AI-powered code review using CodeLlama via Ollama
- ✨ ESLint integration for static code analysis
- 📊 Detailed review reports including:
- Code quality issues
- Potential bugs
- Security concerns
- Best practice suggestions
- 🎨 Beautiful CLI output with color formatting
Prerequisites
- Node.js 16 or higher
- Git installed and configured
- Ollama installed with the CodeLlama model (https://ollama.com/blog/run-code-llama-locally)
Installation
npm install -g @rolaabuhasna/diff-reviewerUsage
Review latest commit changes:
diff-reviewer review
# or explicitly
diff-reviewer review --type diffReview current working directory changes (before committing):
diff-reviewer review --type workingOptions
-t, --type <type>: Choose what to reviewdiff: Review latest commit (default)working: Review current changes in working directory
--no-llm: Disable AI-powered review--no-static: Disable static code analysis
Repository
Check out the source code on GitHub: AI-Diff-Reviewer
Contributing
- Fork the repository
- Create a new branch
- Make your changes and commit them
- Push to your fork
- Create a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
