Skip to content

Commit 7db6bbb

Browse files
author
Really Him
committed
chore: more renaming
1 parent 501bc11 commit 7db6bbb

25 files changed

+129
-129
lines changed

DEMOS/TUTORIAL/compare_versions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def extract_metrics(output: str) -> dict:
13-
"""Extract key metrics from code-cop output."""
13+
"""Extract key metrics from antipasta output."""
1414
metrics = {
1515
"cyclomatic": None,
1616
"cognitive": None,
@@ -52,9 +52,9 @@ def main():
5252
results = []
5353

5454
for file in version_files:
55-
# Run code-cop on each file
55+
# Run antipasta on each file
5656
result = subprocess.run(
57-
["code-cop", "metrics", "--files", str(file)], capture_output=True, text=True
57+
["antipasta", "metrics", "--files", str(file)], capture_output=True, text=True
5858
)
5959

6060
metrics = extract_metrics(result.stderr)

DEMOS/stats_examples.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
#!/bin/bash
2-
# Examples of using the code-cop stats command
2+
# Examples of using the antipasta stats command
33

44
echo "=== Basic Statistics for Python Files ==="
5-
code-cop stats --pattern "**/*.py"
5+
antipasta stats --pattern "**/*.py"
66

77
echo -e "\n=== Statistics by Directory ==="
8-
code-cop stats --pattern "**/*.py" --by-directory
8+
antipasta stats --pattern "**/*.py" --by-directory
99

1010
echo -e "\n=== Statistics by Module (Python packages) ==="
11-
code-cop stats --pattern "**/*.py" --by-module
11+
antipasta stats --pattern "**/*.py" --by-module
1212

1313
echo -e "\n=== Include Complexity Metrics ==="
14-
code-cop stats --pattern "**/*.py" \
14+
antipasta stats --pattern "**/*.py" \
1515
--metric cyclomatic_complexity \
1616
--metric cognitive_complexity \
1717
--metric maintainability_index
1818

1919
echo -e "\n=== Statistics for Specific Directories ==="
20-
code-cop stats --pattern "src/**/*.py" --pattern "tests/**/*.py" --by-directory
20+
antipasta stats --pattern "src/**/*.py" --pattern "tests/**/*.py" --by-directory
2121

2222
echo -e "\n=== Export as CSV ==="
23-
code-cop stats --pattern "**/*.py" --by-directory --format csv > code_metrics.csv
23+
antipasta stats --pattern "**/*.py" --by-directory --format csv > code_metrics.csv
2424
echo "Saved to code_metrics.csv"
2525

2626
echo -e "\n=== Export as JSON ==="
27-
code-cop stats --pattern "**/*.py" --format json > code_metrics.json
27+
antipasta stats --pattern "**/*.py" --format json > code_metrics.json
2828
echo "Saved to code_metrics.json"
2929

3030
echo -e "\n=== Find Large Files ==="
3131
echo "Files with more than 200 LOC:"
32-
code-cop stats --pattern "**/*.py" --format json | \
32+
antipasta stats --pattern "**/*.py" --format json | \
3333
python -c "
3434
import json, sys
3535
data = json.load(sys.stdin)
@@ -40,7 +40,7 @@ print('Run with --by-file flag (when implemented) to see individual files')
4040

4141
echo -e "\n=== Compare Frontend vs Backend ==="
4242
echo "Frontend (JS/TS):"
43-
code-cop stats --pattern "**/*.js" --pattern "**/*.ts" --pattern "**/*.jsx" --pattern "**/*.tsx"
43+
antipasta stats --pattern "**/*.js" --pattern "**/*.ts" --pattern "**/*.jsx" --pattern "**/*.tsx"
4444

4545
echo -e "\nBackend (Python):"
46-
code-cop stats --pattern "**/*.py"
46+
antipasta stats --pattern "**/*.py"

DEMOS/stats_examples_unified.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,33 @@ echo "The stats command now analyzes files only once!"
66
echo
77

88
echo "=== Basic Statistics (displayed to terminal) ==="
9-
code-cop stats --pattern "**/*.py"
9+
antipasta stats --pattern "**/*.py"
1010

1111
echo -e "\n=== Save to file ==="
12-
code-cop stats --pattern "**/*.py" --output stats.txt
12+
antipasta stats --pattern "**/*.py" --output stats.txt
1313
echo "Saved to stats.txt"
1414

1515
echo -e "\n=== Export as JSON ==="
16-
code-cop stats --pattern "**/*.py" --format json --output stats.json
16+
antipasta stats --pattern "**/*.py" --format json --output stats.json
1717
echo "Saved to stats.json"
1818

1919
echo -e "\n=== Export as CSV ==="
20-
code-cop stats --pattern "**/*.py" --format csv --output stats.csv
20+
antipasta stats --pattern "**/*.py" --format csv --output stats.csv
2121
echo "Saved to stats.csv"
2222

2323
echo -e "\n=== Statistics by Directory ==="
24-
code-cop stats --pattern "**/*.py" --by-directory
24+
antipasta stats --pattern "**/*.py" --by-directory
2525

2626
echo -e "\n=== Statistics by Module ==="
27-
code-cop stats --pattern "**/*.py" --by-module
27+
antipasta stats --pattern "**/*.py" --by-module
2828

2929
echo -e "\n=== Generate ALL reports at once (9 files from 1 analysis!) ==="
30-
code-cop stats --pattern "**/*.py" --format all --output ./all_reports/
30+
antipasta stats --pattern "**/*.py" --format all --output ./all_reports/
3131
echo
3232
ls -la ./all_reports/
3333

3434
echo -e "\n=== Include additional metrics ==="
35-
code-cop stats --pattern "**/*.py" \
35+
antipasta stats --pattern "**/*.py" \
3636
--metric cyclomatic_complexity \
3737
--metric cognitive_complexity \
3838
--metric maintainability_index
@@ -41,4 +41,4 @@ echo -e "\n=== Key Features ==="
4141
echo "✓ Single analysis for any output format"
4242
echo "✓ Save to file with --output"
4343
echo "✓ Generate all 9 report combinations with --format all"
44-
echo "✓ Efficient performance - no redundant analysis!"
44+
echo "✓ Efficient performance - no redundant analysis!"

INTERNAL/PLANNING/DASHBOARD/dashboard-ticket-list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The antipasta dashboard provides a web-based interface for visualizing code qual
2121
└────────────────────┬────────────────────────────────────────────┘
2222
2323
┌────────────────────▼────────────────────────────────────────────┐
24-
Code-Cop Core Engine │
24+
antipasta Core Engine │
2525
│ MetricCollector, Analyzers, Configuration │
2626
└─────────────────────────────────────────────────────────────────┘
2727
```
@@ -287,4 +287,4 @@ The antipasta dashboard provides a web-based interface for visualizing code qual
287287
4. Integration - Connect frontend to API
288288
5. Polish - Animations, transitions, edge cases
289289
6. Performance - Optimize for large codebases
290-
7. Documentation - User guide and API docs
290+
7. Documentation - User guide and API docs

INTERNAL/PLANNING/DASHBOARD/terminal-dashboard-design.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The terminal dashboard provides a rich, interactive TUI (Terminal User Interface
2828
└────────────────────┬────────────────────────────────────────────┘
2929
3030
┌────────────────────▼────────────────────────────────────────────┐
31-
Code-Cop Core Engine │
31+
antipasta Core Engine │
3232
└─────────────────────────────────────────────────────────────────┘
3333
```
3434

@@ -225,4 +225,4 @@ terminal:
225225
- Virtual scrolling for file lists
226226
- Debounced updates during rapid changes
227227
- Minimal redraw regions
228-
- Background metric calculation
228+
- Background metric calculation

INTERNAL/PLANNING/current-state-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Code-Cop Project State Overview
1+
# antipasta Project State Overview
22

33
## Executive Summary
44

5-
Code-Cop has evolved from a simple Claude Code hook into a comprehensive code quality enforcement tool with a modular Python package architecture. The project has successfully implemented its core functionality (Phase 1 & 2) and made significant progress on the terminal dashboard feature (Phases 1-3), with some components still in development.
5+
antipasta has evolved from a simple Claude Code hook into a comprehensive code quality enforcement tool with a modular Python package architecture. The project has successfully implemented its core functionality (Phase 1 & 2) and made significant progress on the terminal dashboard feature (Phases 1-3), with some components still in development.
66

77
## Project Vision vs Current State
88

@@ -168,4 +168,4 @@ The project has achieved its core goals:
168168
- ✅ Rich terminal interface for visualization
169169
- ✅ Extensible architecture for future growth
170170

171-
The foundation is solid and the tool is production-ready for Python projects, with clear paths for expansion to meet the full vision.
171+
The foundation is solid and the tool is production-ready for Python projects, with clear paths for expansion to meet the full vision.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test-cov: install-dev ## Run tests with coverage report
6060
@mkdir -p .coverage
6161
# Set up trap to clean up on interrupt (Ctrl+C) and preserve final .coverage file if it exists
6262
@trap 'mv .coverage/.coverage .coverage.tmp 2>/dev/null; rm -rf .coverage 2>/dev/null; mv .coverage.tmp .coverage 2>/dev/null || true' EXIT INT TERM; \
63-
$(VENV_DIR)/bin/pytest --cov=code_cop --cov-branch --cov-report=term-missing --cov-report=html -p no:cacheprovider; \
63+
$(VENV_DIR)/bin/pytest --cov=antipasta --cov-branch --cov-report=term-missing --cov-report=html -p no:cacheprovider; \
6464
mv .coverage/.coverage .coverage 2>/dev/null || true
6565

6666
check: lint type-check test ## Run all quality checks (lint, type-check, test)
@@ -77,4 +77,4 @@ clean-venv: ## Remove virtual environment
7777
rm -rf $(VENV_DIR)
7878

7979
clean-cov: ## Clean up coverage files
80-
rm -rf .coverage htmlcov
80+
rm -rf .coverage htmlcov

antipasta/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""code-cop: A code quality enforcement tool that analyzes code complexity metrics."""
1+
"""antipasta: A code quality enforcement tool that analyzes code complexity metrics."""
22

33
from antipasta.__version__ import __version__, __version_info__
44

antipasta/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Version information for code-cop."""
1+
"""Version information for antipasta."""
22

33
__version__ = "0.1.0"
44
__version_info__ = tuple(int(i) for i in __version__.split("."))

antipasta/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""CLI module for code-cop."""
1+
"""CLI module for antipasta."""
22

33
from antipasta.cli.main import main
44

0 commit comments

Comments
 (0)