Metadata-Version: 2.4
Name: codequality-cli
Version: 0.1.0
Summary: Lightweight, fast code quality analyzer for Python projects. Detects code smells without AI.
Author: codequality-cli contributors
License: MIT
Project-URL: Homepage, https://github.com/morata43-png/codequality
Project-URL: Issues, https://github.com/morata43-png/codequality/issues
Keywords: code-quality,linter,code-smells,complexity,python,cli,static-analysis
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: mypy>=1.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Dynamic: license-file

# codequality

> Lightweight, fast code quality analyzer for Python projects. **No AI, no API costs.**

A simple CLI tool that detects common code smells in your Python codebase. Designed to be a lightweight alternative to heavyweight solutions like SonarQube.

## Why codequality?

- ✅ **No API costs** - Pure static analysis, runs entirely on your machine
- ✅ **Fast** - Analyzes thousands of files in seconds
- ✅ **No setup** - Just `pipx install codequality` and run
- ✅ **Human-readable output** - Markdown reports that your team will actually read
- ✅ **Open source** - MIT license, code on GitHub

## Installation

```bash
pipx install codequality
```

Or with pip:

```bash
pip install --user codequality
```

## Usage

```bash
# Analyze current directory
codequality

# Analyze specific path
codequality analyze ./my-project

# Output as JSON
codequality analyze ./my-project --format json

# Output to file
codequality analyze ./my-project --output report.md

# Check only specific rules
codequality analyze ./my-project --only function-length,complexity

# CI-friendly output (exit non-zero on issues)
codequality analyze ./my-project --strict
```

## What does it detect?

| Rule | Description | Severity |
|------|-------------|----------|
| `function-length` | Functions longer than 50 lines | Warning |
| `file-length` | Files longer than 500 lines | Warning |
| `function-params` | Functions with more than 5 parameters | Info |
| `complexity` | Cyclomatic complexity > 10 | Warning |
| `nested-depth` | Nesting deeper than 4 levels | Warning |
| `returns` | Functions with more than 5 return statements | Info |

## Pricing

| Tier | Price | Features |
|------|-------|----------|
| **Free** | $0/mes | 1 repo, basic rules, markdown output |
| **Pro** | **$7/mes** | Unlimited repos, JSON output, CI integration, custom rules, dashboards |
| **Team** | $25/mes | Multi-repo dashboards, team analytics, priority support |

## License

MIT
