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.0

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.0
File Size Uploaded
c_code_score-0.1.0.tar.gz 7.2 kB Details

Built distribution (wheel)

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

Total release size: 14.8 kB

Release files / c_code_score-0.1.0.tar.gz

Download URL c_code_score-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
548825358a63838bc12a40c6f068bc412ed6dc7dbfece7109575995413736f71
BLAKE2b-256 checksum
How to use checksums
15bcf5acd568dc2a80635f1345f9e5f1b4fb8212ed7574635adc3edfae7c2ca5
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.0-py3-none-any.whl

Download URL c_code_score-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96319beb2367e5980230fc5df3585bcba5b76517774137365e87cf1d135338f8
BLAKE2b-256 checksum
How to use checksums
5a940f4dcb799e5189a80d2c012f25795046d8cd7d1709684bcf10492c409295
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

0.1.1

2 release files

This release

0.1.0 This release

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