File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
runner/ratings/built-in-ratings Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import {
8
8
9
9
// Define the scoring weights for each violation impact level as a coefficient penalty.
10
10
const IMPACT_COEFFICIENTS = {
11
- critical : 0.3 ,
12
- serious : 0.15 ,
13
- moderate : 0.1 ,
14
- minor : 0.05 ,
11
+ critical : 0.5 ,
12
+ serious : 0.3 ,
13
+ moderate : 0.15 ,
14
+ minor : 0.1 ,
15
15
} ;
16
16
17
17
/**
@@ -23,13 +23,13 @@ export const axeRating: PerBuildRating = {
23
23
description : 'Checks for accessibility violations using the Axe-core engine.' ,
24
24
category : RatingCategory . MEDIUM_IMPACT ,
25
25
id : 'axe-a11y' ,
26
- scoreReduction : '10 %' ,
26
+ scoreReduction : '50 %' ,
27
27
rate : ( { buildResult, axeRepairAttempts } ) => {
28
28
const violations = buildResult . axeViolations as Result [ ] | undefined ;
29
29
// Subtract from a starting coefficient of 1 based on the impact of each violation.
30
30
let coefficient = 1.0 ;
31
31
// Apply a penalty for each repair attempt.
32
- coefficient -= ( axeRepairAttempts ?? 0 ) * 0.1 ;
32
+ coefficient -= ( axeRepairAttempts ?? 0 ) * 0.2 ;
33
33
let message : string = '' ;
34
34
35
35
if ( violations === undefined ) {
You can’t perform that action at this time.
0 commit comments