Skip to content

Yonatha/ai-code-review

Repository files navigation

AI Code Review

Improve code quality through code reviews utilizing artificial intelligence such as ChatGPT, Google Bard and other emerging AI technologies in the market. These tools can help in identifying potential issues, improving code readability, and enhancing overall software functionality. By utilizing these AI capabilities, developers can streamline their code review processes and ensure their code is of the highest quality.

Features:

  • Support to code review any programming language
  • Parameterize the accuracy of code suggestions
  • Optimize time based on your needs
  • Language preference for AI messages (English, Spanish and Portuguese)
  • Compatible with all Jetbrains family products.

Coming soon:
  • Google Bard Support
  • Connection test in plugin configuration screen
  • Validation of configuration screen fields
AI Code Review Settings
AI Code Review Settings

Select code to review
Alt text

Learn from AI suggestions
Select code to review

Usage

  • 1. Access the main menu File -> Settings or press Ctrl+Alt+S
  • 2. Go to Tools -> AI Code Review
  • 3. Insert your OpenAI API Key into the Secret Key field (generate your key here https://platform.openai.com/account/api-keys
  • 4. Select the code suggestion language in the AI Interaction Language field
  • 5. Click Ok
  • 6. Great! Open a file containing the code you want to review
  • 7. Select the code snippet and click on the Code -> AI Code Review menu, or right-click and then select AI Code Review in context menu
  • 8. Wait while the AI performs the code review
  • 9. Check the results and suggestions in the IDE's native clipboard window
  • 10. Enjoy!

Release notes

release/1.3.2

  • Atualização do OpenAIClient para integrar a versão para uso de Chat Completions da Api do OpenAI
  • Adição dos modelos gpt-3.5-turbo, gpt-4, gpt-4-turbo-preview, dall-e-3, davinci-002

Screanshot image examples

public class Program {
    public static void main(String[] args) {
        Integer age = 25;
        if (age >= 5 && age <= 7) {
            return "Category A"
        } else if (age >= 8 && age <= 10) {
            return "Category  B";
        } else if (age >= 11 && age <= 13) {
            return "Category  C";
        } else if (age >= 14 && age <= 17) {
            return "Category D";
        } else if (age >= 18) {
            return "Category E";
        } else {
            return "Age not valid";
        }
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages