Welcome to the AI Code Reviewer repository! This project provides an AI-powered tool for reviewing code files and providing actionable feedback to fix bugs, improve application speed, and fix security problems.
- Automated code review for various programming languages.
- In-depth suggestions for improving code quality.
- Simple command-line interface for ease of use.
- Fix Calculate Circumference - https://youtu.be/gjapO5D0guk
- Fix copy and paste bug - https://youtu.be/YdeEu7ofzV4
- Used the wrong collection java code output
- Buggy algorithm java code output
- Inefficient String concatenation java code output
- Hardcoded constant instead of PI java code output
- Swapped fields in constructor java code output
- Copy paste bug in constructor java code output
Before running the AI Code Reviewer, you need to install and set up the following dependencies:
-
Java
Ensure you have Java installed on your system. The tool requires Java to run the.jar
file. -
Ollama
The AI Code Reviewer depends on Ollama, which needs to be installed locally. -
AI Models
Install the following AI models via Ollama:gemma2
llama3.1
llama3.2
qwen2.5-coder
falcon3
Download and install Java from https://www.java.com if it is not already installed on your system.
Follow the instructions at Ollama's official site to install it locally.
Once Ollama is installed, add the required models:
ollama pull gemma2
ollama pull llama3.1
ollama pull llama3.2
ollama pull qwen2.5-coder
ollama pull falcon3
Clone this repository to your local machine:
git clone https://github.com/yourusername/aicodereviewer.git
cd aicodereviewer
Run the AI Code Reviewer using the following command:
java -jar dli-0.0.2-SNAPSHOT.jar <filename_to_review>
Replace <filename_to_review>
with the path to the file you want to review. For example:
java -jar dli-0.0.2-SNAPSHOT.jar src/MyCodeFile.java
The AI Code Reviewer will analyze the provided file and output suggestions directly in the terminal, highlighting areas for improvement, potential bugs, and optimization tips.
We welcome contributions! If you would like to contribute to the AI Code Reviewer project:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
. - Commit your changes:
git commit -m "Add feature"
. - Push to the branch:
git push origin feature-name
. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have questions, please open an issue in the repository
Happy coding and reviewing! 🚀