ai_code_review

2.0.0 • Public • Published

Code Critique

Code Critique Logo


Code Critique is an AI-powered command-line interface (CLI) tool that helps review code in projects before raising pull requests (PRs). It helps reduce the time spent on code reviews.

Publish to NPM

Features

  • AI code reviews
  • Version control integration
  • Security reviews
  • Architecture reviews

Introduction

Using OpenAI, Code Critique reviews changes in files, criticizes bad coding habits, and suggests improvements. This significantly reduces the number of required corrections.

Constraints and Limitations

  • File size limitations
  • Errors and timeouts
  • Slower response time due to ChatGPT

Installation

npm install -g ai_code_review

Usage

code_review

all criticism is put in a file called feedback.md

Changing API keys

to change your API key use this command

code_review --clear_api_key

using github

if you want to review only your git changes add this configuration file to the root of your document.

// codereview.json
{
    "name": "",
    "description": "",
    "git": true,
    "defaultBranch": "master"
}

Roadmap

  • [x] AI code reviews
  • [x] Version control integration
  • [ ] Security reviews
  • [ ] Architecture reviews

Todo

  • [x] Git integration
  • [x] Retrieve files and send them to OpenAI
  • [x] Receive responses from OpenAI
  • [x] Send responses to the user
  • [x] Create an npm module
  • [x] Publish the module
  • [x] Set up continuous integration
  • [ ] Add support for Vue.js
  • [x] Move reviewed code from feedback.txt to locally hosted html and css
  • [ ] Bugs, context and file structure

Contributing

License

Package Sidebar

Install

npm i ai_code_review

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

200 kB

Total Files

47

Last publish

Collaborators

  • bemijonathan