You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/docs/scoring.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,15 +297,16 @@ xychart-beta
297
297
298
298
---
299
299
300
-
### Issue Penalty Scoring
300
+
### Issue Penalty Scoring Details
301
301
302
-
Combines threshold limits with diagnostic penalties for comprehensive scoring.
302
+
Combines threshold limits with diagnostic penalties for comprehensive scoring.**Builds on [Linear Overshoot](#linear-overshoot-details)** by adding penalty deductions based on diagnostic issues.
303
303
304
304
**Pros:**
305
305
306
306
- Combines quantitative limits with quality metrics
307
307
- Configurable penalty weights for different issue types
308
308
- Applicable to any metric with both thresholds and diagnostics
309
+
- Familiar [Linear Overshoot](#linear-overshoot-details) behavior for size component
309
310
310
311
**Cons:**
311
312
@@ -325,7 +326,7 @@ function issuePenaltyScore(value: number, threshold: number, errors: number, war
325
326
```
326
327
327
328
**When to use it:**
328
-
Ideal for production metrics where you need to balance performance targets with maintainability diagnostics.
329
+
Ideal for production metrics where you need to balance performance targets with maintainability diagnostics. Natural extension if you're already using [Linear Overshoot](#linear-overshoot-details) and want to add quality penalties.
0 commit comments