Skip to content

siddharthkarn2212/AI-code-Reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Code Reviewer

License: MIT

A simple AI-based Python tool to automatically review code for:

  • Syntax errors
  • Oversized functions

This project demonstrates the use of Python for static code analysis and is designed with extensibility in mind.


πŸ“Œ Features

  • Detects and reports syntax errors in Python files.
  • Identifies functions exceeding a defined size threshold.
  • Generates human-readable reports inside the Reports/ folder.
  • Modular design: review logic is separated (ai.reviewer.py) from the main entry script (main.py).

πŸ› οΈ Tech Stack

  • Language: Python 3.x
  • Libraries Used: ast, os, sys (no heavy dependencies)

πŸš€ How to Run

  1. Clone the repository:
    git clone https://github.com/siddharthkarn2212/AI-code-Reviewer.git
    cd AI-code-Reviewer
  2. Run the reviewer on a test file:

python main.py sample_testing.py

  1. Check results inside the Reports/ folder.

πŸ“‚ Project Structure

AI-code-Reviewer/ β”‚ β”œβ”€β”€ Reports/ # Stores generated reports β”œβ”€β”€ ai.reviewer.py # Core review logic β”œβ”€β”€ main.py # Entry point for execution β”œβ”€β”€ sample_testing.py # Example file to test reviewer └── README.md # Documentation

πŸ“‘ Future Improvements

  1. Extend error coverage beyond syntax and size.
  2. More types of checks (unused variables, complexity, etc.).
  3. Integrate with GitHub Actions for automated code reviews.

πŸ“œ License

This project is licensed under the MIT License.

πŸ‘¨β€πŸ’» About

Author: Siddharth Karn Year: 2025 Contact: [email protected]

About

A simple AI based Python tool to check code for syntax error and oversized function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages