Your code has problems. Rick has solutions. Click above for the full experience.
"Listen up, burp Jerry! This tool might actually make your code half-decent, which is saying a lot. Don't break it, or I'll turn your code repository into a Cronenberg disaster."
- Rick Sanchez, Inventor of Stuff Way Better Than This
Rick's Code Analyzer is a Python-based static code analysis tool for detecting code smells, security vulnerabilities, and poor programming practices in your codebase. The tool provides detailed reports with visualizations, metrics, and recommendations, all wrapped in a delightfully sarcastic Rick and Morty themed interface.
Designed to assess code quality in various languages with a heavy dose of sass, because let's face it, your code could probably use some tough love.
- Basic Code Analysis: Language detection, line counting, project stats
- Advanced Analysis:
- 🔍 Code smell detection (long functions, nested conditionals, etc.)
- 🔒 Security vulnerability identification
- ⚡ Performance issue detection
- 🎨 Style issue highlighting
- 🔄 Duplicated code identification
- Interactive HTML Reports: Colorful visualizations of your code's problems
- Dependency Graph: Visual representation of your project's import relationships
- Security Scanning: Checks Python dependencies for vulnerabilities
- "Jerry Code" Detection: Identifies overly simplistic or redundant code patterns
- Rick & Morty References: Scans comments and strings for show references
- Code Personality Assignment: Labels your files with personalities from the show
Even Jerry could follow these steps (probably):
# Clone the repository
git clone https://github.com/bneidlinger/rickscodeanalyzer_advanced.git
cd ricks-code-analyzer
# Set up a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt- Python 3.6+
- Required packages:
jinja2: For HTML report generationpygments: For code syntax highlightingchardet: For file encoding detection
# Run the analyzer
python rickscode_advanced.py
# Or for command-line usage (if implemented)
python rickscode_advanced.py --path /path/to/your/terrible/code- Select your project directory
- Run basic analysis
- Run advanced analysis
- Generate an HTML report
- Marvel at how many issues Rick found in your code
Pull requests are acceptable, but Rick will judge them harshly. As he would say:
"If you somehow make this tool better, consider it beginner's luck. If you break it, well... that's just classic Jerry."
This project is licensed under the "Don't Be a Jerry" License - Basically, do whatever you want but don't blame me when you break it.
Created by Rick Sanchez, C-137. Documented reluctantly for Jerry.