Skip to content

Commit

Permalink
fix: 🩹 Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 10, 2024
1 parent 7c0428e commit db10a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codelimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getReportContent(): string | undefined {
return fs.readFileSync('.codelimit_cache/codelimit.json', 'utf8');
}

function makeBadgeSvg(message: string, color: 'red' | 'orange' | 'green' | 'grey'): string {
function makeBadgeSvg(message: string, color: string): string {
const badge = {
label: 'Code Limit',
message: message,
Expand All @@ -66,7 +66,7 @@ export function getBadgeContent(reportContent: string | undefined): string {
} else if (profile[2] > 0) {
return makeBadgeSvg('Needs refactoring', 'orange');
} else {
return makeBadgeSvg('Passed', 'green');
return makeBadgeSvg('Passed', 'brightgreen');
}
}
}

0 comments on commit db10a03

Please sign in to comment.