Skip to content

larrydiamond/AICodeReviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Code Reviewer README

Bugs Code Smells Reliability Rating Security Rating Maintainability Rating Vulnerabilities

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.


Features

  • Automated code review for various programming languages.
  • In-depth suggestions for improving code quality.
  • Simple command-line interface for ease of use.

Demos


Examples


Requirements

Before running the AI Code Reviewer, you need to install and set up the following dependencies:

  1. Java
    Ensure you have Java installed on your system. The tool requires Java to run the .jar file.

  2. Ollama
    The AI Code Reviewer depends on Ollama, which needs to be installed locally.

  3. AI Models
    Install the following AI models via Ollama:

    • gemma2
    • llama3.1
    • llama3.2
    • qwen2.5-coder
    • falcon3

Installation

1. Install Java

Download and install Java from https://www.java.com if it is not already installed on your system.

2. Install Ollama

Follow the instructions at Ollama's official site to install it locally.

3. Install AI Models

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

4. Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/yourusername/aicodereviewer.git
cd aicodereviewer

Usage

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

Example Output

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.


Contributing

We welcome contributions! If you would like to contribute to the AI Code Reviewer project:

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature-name.
  3. Commit your changes: git commit -m "Add feature".
  4. Push to the branch: git push origin feature-name.
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Support

If you encounter any issues or have questions, please open an issue in the repository


Happy coding and reviewing! 🚀