Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Adjust some of the severity scoring parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Feb 27, 2024
1 parent e83f914 commit b153e6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/scorebug/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ <h1>WebCompat Bug Scorer</h1>
<option value=100>Unsupported / Blocked
<option value=60>Workflow broken
<option value=30>Feature broken
<option value=30>Content missing
<option value=20>Significant visual
<option value=1>Minor visual
<option value=20>Unsupported warning
Expand Down
6 changes: 4 additions & 2 deletions docs/scorebug/scorebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ function getSeverity(data, siteRank) {

const severityScore = Math.round(impactScore * affectsModifier * platformModifier);
let severity = "S4";
if (severityScore > 50) {
if (siteRank && siteRank <= 500) {
if (severityScore >= 100) {
if (siteRank && siteRank <= 100) {
severity = "S1";
} else {
severity = "S2";
}
} else if (severityScore > 50) {
severity = "S2";
} else if (severityScore > 25) {
severity = "S3";
} else {
Expand Down

0 comments on commit b153e6d

Please sign in to comment.