Skip to main content

score.py

Ein winziges, dependency-freies Werkzeug, das jede C-Funktion mit einer einzigen Zahl bewertet. Hoher Score heißt: Diese Funktion lohnt einen prüfenden Blick — als Review-Kandidat und als Refactoring-Hinweis.

score(f) = Verschachtelung × Zeiger-Tiefe × Deref-Kette

Auf zwei sehr unterschiedlichen Codebasen (libXt, libtiff) ranket der Score die Funktionen mit dem höchsten Wartungs-Churn besser als Zeilenzahl oder zyklomatische Komplexität. Es ist ein Triage-Werkzeug, kein Bug-Detektor.

Dateien

  • quickstart.md — in 30 Sekunden loslegen
  • anleitung.md — Metrik, Interpretation, Grenzen
  • artikel.md — der kurze Artikel zur Veröffentlichung
  • score.py — das Werkzeug selbst (eine Datei, kein Dependency)

Kurz

python3 score.py --selftest      # Selbsttest
python3 score.py pfad/zu/datei.c # Funktionen + Score

Metadata

Release files for c-code-score 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for c-code-score 0.1.1
File Size Uploaded
c_code_score-0.1.1.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for c-code-score 0.1.1
File Interpreter ABI Platform
c_code_score-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / c_code_score-0.1.1.tar.gz

Download URL c_code_score-0.1.1.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
40ae89771bb42c7d11acd7c86002048e81d515f04f5c320e434895a9c41989c9
BLAKE2b-256 checksum
How to use checksums
f034b57fa29065e38008d44c9e7f16b5e0e107a8128ce676caf0283947c7d169
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / c_code_score-0.1.1-py3-none-any.whl

Download URL c_code_score-0.1.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d96b21b9717a461c7397c71e0190f0e7da34ecbde48d3c1565c00d2aec8e710b
BLAKE2b-256 checksum
How to use checksums
cdae1e9578783b16cd5848f610264928497d617c7c8c9239eefbb4d6af8d986a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page