Skip to content

AI Code Critic: An efficient desktop app leveraging ChatGPT for automated, language-agnostic code reviews. Streamlines code analysis with AI insights, enhancing code quality and developer productivity.

Notifications You must be signed in to change notification settings

kmesiab/ai-code-critic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Code-Critic 🚀

Golang

Build Build Build Go Report Card

Overview 🌟

AI-Code-Critic is a desktop application designed to automate code reviews across various programming languages, utilizing OpenAI's ChatGPT API. It offers intelligent insights and suggestions to improve code quality and developer efficiency.

Features 🛠️

  • Language-Agnostic Analysis: Compatible with multiple programming languages.
  • AI-Powered Insights: Employs ChatGPT for in-depth code analysis.
  • User-Friendly Interface: Simple and intuitive GUI for effortless usage, built with Fyne.

Installation 🔧

To install AI-Code-Critic, you need to have Go installed on your machine. Follow these steps:

go install github.com/kmesiab/ai-code-critic@latest

Set your OpenAI API Key

echo "export OPENAI_API_KEY=sk-[SECRET]" > .env && source .env

Set your Ignore Files. These are file types that will be excluded from code reviews. They should be a comma-separated list of file extensions.

ex:

echo "export IGNORE_FILES=.mod,.sum" > .env && source .env

To run the program:

./ai-code-critic

Usage 💡

Screenshot

  1. Click the "+" button and enter the url to a GitHub pull request.
  2. Wait patiently while things happen.
  3. The diff will be loaded in the right pane.
  4. The report will appear shortly after in the left pane.

Development and Testing 🧪

Building the Project 🏗️

make build

Running Tests ✔️

make test
make test-verbose
make test-race

Installing Tools 🛠️

make install-tools

Linting 🧹

make lint
make lint-markdown

Contributing 🤝

Forking and Sending a Pull Request

  1. Fork the Repository: Click the 'Fork' button at the top right of this page.

  2. Clone Your Fork:

    git clone https://github.com/kmesiab/ai-code-critic
    cd ai-code-critic
  3. Create a New Branch:

    git checkout -b your-branch-name
  4. Make Your Changes: Implement your changes or fix issues.

  5. Commit and Push:

    git commit -m "Add your commit message"
    git push origin your-branch-name
  6. Create a Pull Request: Go to your fork on GitHub and click the 'Compare & pull request' button.

Github Guidelines

Please ensure your code adheres to the project's standards and guidelines.

Quick Tips

Run make lint before committing to ensure your code is properly formatted.

  1. Always rebase, never merge commit
  2. Always use a description commit message
  3. Separate your title from your description
  4. Keep commit messages under 50 characters
  5. Start your branch with feat|bugfix|docs|style|refactor|perf|test
  6. Squash your commits into logical units of work

License 📝

Information regarding the licensing of AI-Code-Critic will be included here.


Note: This project is under active development. Additional features and documentation will be updated in due course. 🌈

About

AI Code Critic: An efficient desktop app leveraging ChatGPT for automated, language-agnostic code reviews. Streamlines code analysis with AI insights, enhancing code quality and developer productivity.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published