Score · Assess & Decide · Engineering
Clean-code smell scorecard for a method
A per-method clean-code smell scorecard: which thresholds each method exceeds (long method, too many arguments, deep nesting, and more), a 0-100 score, and a pass/warn/fail verdict.
You receive: A reviewed smell-scoring calculator + the passing test report, run on your method metrics.
Part of Ship MVP
What's verified: STUD verifies the scorecard on held-out cases: each of the five metrics (length, arguments, attributes, nesting depth, comment ratio) flags a smell when it strictly exceeds your threshold, the 0-100 score is 100*(5 - smell count)/5, and the pass/warn/fail verdict follows your smell-count gates. STUD does NOT extract these metrics from real code, nor judge whether a method is genuinely clean; it checks the scoring on the metrics you provide.
Opens soon
This play is verified and ready. It opens soon, once sign-in and payments are live.
Example
A sample of what this play produces. Your result is generated for your inputs.
Rows
formatCredits
parseIntakeRows
- LongMethod
- DeepNesting
syncCatalogDiff
- LongMethod
- TooManyArguments
- TooManyAttributes
- DeepNesting
Inputs
formatCredits
parseIntakeRows
syncCatalogDiff
Arithmetic recomputed against the tasks.py compute_code_smell_scorecard oracle, 2026-08-08: a metric flags a smell only when it strictly exceeds its threshold. With the default thresholds (max_loc 20, max_args 3, max_attributes 8, max_nesting 3, max_comment_ratio 0.5), formatCredits exceeds none (score 100, pass), parseIntakeRows exceeds max_loc (34 > 20) and max_nesting (4 > 3) for 2 smells (score 100*(5-2)/5 = 60, warn at the default warn_at_smell_count of 1), and syncCatalogDiff exceeds four thresholds (loc 61 > 20, args 5 > 3, attributes 9 > 8, nesting 4 > 3) for 4 smells (score 100*(5-4)/5 = 20, fail at the default fail_at_smell_count of 3). The method metrics are illustrative figures for three methods in a marketplace platform's intake, credits, and catalog sync paths, the kind STUD's own codebase carries; STUD checks the scoring on the metrics you provide, it does not extract metrics from your code.
Get early access to STUD the day it goes live.