Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.73 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.73 KB

Python Code Quality Checker

Python License: MIT

A Python tool to analyze code quality, maintainability, and complexity. Automatically detects PEP8 violations, syntax errors, and calculates cyclomatic complexity to help developers write cleaner, more maintainable code.

🔍 Features

  • Detects PEP8 violations in Python scripts.
  • Identifies syntax errors.
  • Calculates cyclomatic complexity and maintainability index.
  • Generates JSON and HTML reports for easy review.

🛠️ Technologies Used

📂 Project Structure

code_quality_checker/ ├── reports/ # Generated JSON and HTML reports ├── scripts/ # Sample Python scripts for analysis ├── Code_Quality_Check.ipynb # Main notebook ├── requirements.txt # Project dependencies └── README.md

Clone the repository:

git clone https://github.com/aditivir29/code_quality_checker.git cd code_quality_checker

Launch Jupyter Notebook:

jupyter notebook

Open Code_Quality_Check.ipynb and follow the instructions to analyze Python scripts.

📈 Output

JSON report: reports/analysis_report.json HTML report: reports/analysis_report.html Metrics include: Cyclomatic Complexity Maintainability Index PEP8 Violations Syntax Errors

📝 Future Enhancements

Add GUI interface for easier interaction. Integrate automated GitHub repository analysis. Support multiple languages beyond Python.