Skip to content

Commit 29c2aa0

Browse files
committed
update readme
1 parent 6c80322 commit 29c2aa0

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,38 @@ Instant codebase insights in your terminal — fast, local, zero telemetry.
1010

1111
CodeState analyzes your repository and generates detailed statistics like lines of code by extension, complexity, comment density, hotspots, contributors, and more. It renders ASCII charts in the terminal and can export JSON/HTML/Markdown for reports.
1212

13+
## Features
14+
15+
- Fast codebase overview with caching and .gitignore awareness
16+
- ASCII visuals in-terminal: pie, bar, and complexity heatmap
17+
- Detailed stats: files, LOC, comments, functions, complexity
18+
- Quality checks: duplicates, naming conventions, dead code hints
19+
- History insights: git hotspots/churn and contributors
20+
- Flexible exports: HTML, Markdown, JSON, CSV, Excel
21+
- Works well in CI: produce compact Markdown summaries and artifacts
22+
1323
## Installation
1424

1525
```bash
1626
pip install codestate
1727
```
1828

29+
## Quick Start
30+
31+
```bash
32+
# Option A: install via pipx (recommended for CLI tools)
33+
pipx install codestate
34+
35+
# Option B: install via pip
36+
pip install codestate
37+
38+
# Get a summary of the current repo
39+
codestate --summary
40+
41+
# Export an HTML report
42+
codestate --html --output report.html
43+
```
44+
1945
## Usage
2046

2147
```bash
@@ -53,8 +79,7 @@ codestate --cache-delete
5379
| `--min-lines <N>` | Only show files with total lines >= N |
5480
| `--find <keyword/regex>` | Find all lines matching a keyword or regex in the codebase |
5581
| `--cache` | Build and use cache for much faster repeated analysis (highly recommended for large codebases) |
56-
| `--cache-delete` | Delete all cache data in `.codestate
57-
` (force rebuild cache on next run) |
82+
| `--cache-delete` | Delete all cache data in `.codestate` (force rebuild cache on next run) |
5883
| **[Statistics & Detailed Analysis]** | |
5984
| `--details` | Show detailed statistics for each file |
6085
| `--dup` | Show duplicate code blocks (5+ lines) |
@@ -206,3 +231,11 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file
206231
If you have questions or need help, please open an issue on GitHub.
207232

208233
Thank you to all contributors and the open-source community for your support.
234+
235+
---
236+
237+
## Troubleshooting
238+
239+
- Command not found: try `python -m codestate.cli` instead of `codestate`.
240+
- Windows path/encoding quirks: run from a local folder (avoid syncing folders) and ensure UTF-8 console.
241+
- Very large repos: run once with `--cache`, then subsequent commands will be much faster.

0 commit comments

Comments
 (0)