π₯ Build a complete AI-Powered Code Reviewer using Python, Gemini API, Static Analysis, Radon & Streamlit in just one project!
π Part of: Super Sunday Project Series π
- π New AI/ML project every Sunday
- π Learn by building real-world applications
- π Beginner Friendly + Industry Level Concepts
[Watch Full Video](https://youtu.be/YOUR_VIDEO_LINK)
If this project helps you:
- β Star this repository
- π¨βπ» Follow me on GitHub for more AI projects
- πΊ Subscribe to my YouTube Channel
- π Share this project with your friends
An intelligent AI Code Reviewer built using Python, Gemini API, Static Analysis, Radon & Streamlit.
Instead of simply checking whether your code runs, this application performs a detailed review of your Python code by combining traditional code analysis techniques with the power of Google's Gemini AI.
The system helps developers and students:
β
Detect syntax errors
β
Analyze code complexity
β
Measure maintainability
β
Perform static code analysis
β
Generate AI-powered code reviews
β
Suggest best coding practices
β
Improve code readability and quality
- Gemini API integration
- Intelligent code analysis
- AI-generated suggestions
- Code optimization recommendations
- Detect syntax errors instantly
- Highlight invalid Python code
- Beginner-friendly error messages
- Cyclomatic Complexity
- Maintainability Index
- Complexity grading
- Function-wise analysis
- Detect unused variables
- Find potential issues
- Analyze function structure
- Improve code quality
- Performance improvements
- Readability enhancements
- Best coding practices
- Clean code recommendations
- Modern UI
- Interactive code editor
- Instant analysis
- Beautiful report generation
Before running this project, install:
- Python 3.10+
- pip
- Gemini API Key
git clone https://github.com/YOUR_USERNAME/AI-Code-Reviewer.gitcd AI-Code-Reviewerpip install -r requirements.txtCreate a .env file inside the project directory.
GEMINI_API_KEY=YOUR_API_KEY
streamlit run app.pyUser writes or pastes Python code.
β¬οΈ
Syntax Checker validates the code.
β¬οΈ
Static Analyzer examines the program structure.
β¬οΈ
Radon calculates:
- Cyclomatic Complexity
- Maintainability Index
β¬οΈ
Gemini API reviews the complete code.
β¬οΈ
Final AI Review Report is generated.
β Syntax Validation
β Static Code Analysis
β Cyclomatic Complexity
β Maintainability Index
β AI-Based Code Review
β Performance Suggestions
β Best Practice Recommendations
β Clean Code Guidance
| Technology | Purpose |
|---|---|
| Python | Core Programming |
| Streamlit | Web Application |
| Gemini API | AI Code Review |
| Radon | Complexity Analysis |
| AST | Static Code Analysis |
| Streamlit Ace | Code Editor |
| Google GenAI SDK | Gemini Integration |
AI-Code-Reviewer/
β
βββ app.py
βββ reviewer.py
βββ complexity.py
βββ static_analysis.py
βββ syntax_checker.py
βββ utils.py
βββ test.py
βββ requirements.txt
βββ README.md
βββ .gitignore
The application evaluates:
- Cyclomatic Complexity
- Maintainability Index
- Syntax Validation
- Static Analysis
- Code Readability
- AI Quality Score
- Performance Suggestions
By building this project, you will learn:
β Streamlit Dashboard Development
β Gemini API Integration
β Prompt Engineering
β Static Code Analysis using AST
β Cyclomatic Complexity
β Maintainability Index
β Code Quality Analysis
β Python Project Structure
β Environment Variables (.env)
β AI Application Development
- Multi-language support
- GitHub Repository Review
- PDF Review Report
- Code Security Analysis
- AI Bug Detection
- Code Refactoring Suggestions
- Docker Support
- Authentication System
- Team Collaboration
- Cloud Deployment
Deploy this application using:
- Streamlit Community Cloud
- Render
- Railway
- Hugging Face Spaces
- Azure App Service
- AWS EC2
Contributions are always welcome!
If you'd like to improve this project:
- Fork this repository
- Create a feature branch
- Commit your changes
- Push to GitHub
- Open a Pull Request
This project is licensed under the MIT License.
π AI/ML Educator | Full Stack Developer | Content Creator
πΊ YouTube: Study Trigger
πΈ Instagram: https://www.instagram.com/studytrigger/
π LinkedIn: https://www.linkedin.com/in/studytrigger/
π» GitHub: https://github.com/YOUR_USERNAME
Please support by:
β Starring this repository
π΄ Forking the project
πΊ Subscribing to Study Trigger
π€ Sharing with your friends
π¬ Giving your valuable feedback
π Every Sunday = One New Real-World AI/ML Project
Recent Projects:
- π Student Result Analysis System
- π° Smart Expense Tracker
- π§Ή Data Cleaning Tool
- π€ AI Interview Preparation System
- π Smart Shopping Decision Assistant
- π Sales Prediction System
- π€ AI Code Reviewer
Stay Connected β€οΈ
Happy Coding! π