STUD
← Plays

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

Cost15 credits
ProtectionHeld until verified delivery

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

Smell count0
Score100
Verdictpass

parseIntakeRows

Smells
  • LongMethod
  • DeepNesting
Smell count2
Score60
Verdictwarn

syncCatalogDiff

Smells
  • LongMethod
  • TooManyArguments
  • TooManyAttributes
  • DeepNesting
Smell count4
Score20
Verdictfail
Inputs
Methods

formatCredits

Metrics
Loc12
Args2
Attributes1
Nesting1
Comment ratio0.2

parseIntakeRows

Metrics
Loc34
Args2
Attributes3
Nesting4
Comment ratio0.1

syncCatalogDiff

Metrics
Loc61
Args5
Attributes9
Nesting4
Comment ratio0.1
Thresholds
Max loc20
Max args3
Max attributes8
Max nesting3
Max comment ratio0.5
Gates
Warn at smell count1
Fail at smell count3

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.