Skip to content

Commit

Permalink
Distribution build
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek authored and github-actions[bot] committed Dec 23, 2024
1 parent 2ea8e0a commit 695ccb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48902,7 +48902,7 @@ var require_codelimit = __commonJS({
if (profile[3] > 0) {
return makeBadgeSvg("Needs refactoring", "red");
} else {
const profile2Percentage = Math.floor(profile[2] / (profile[0] + profile[1] + profile[2]) * 100);
const profile2Percentage = Math.round(profile[2] / (profile[0] + profile[1] + profile[2]) * 100);
const color = profile2Percentage > 20 ? "orange" : "brightgreen";
return makeBadgeSvg(`${100 - profile2Percentage}%`, color);
}
Expand Down Expand Up @@ -48995,7 +48995,7 @@ var require_version = __commonJS({
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.version = void 0;
exports2.version = {
"revision": "171fe46",
"revision": "2ea8e0a",
"year": "2024"
};
}
Expand Down Expand Up @@ -49044,8 +49044,8 @@ var utils_1 = require_utils7();
var version_1 = require_version();
function generateMarkdownReport(clBinary) {
return __awaiter(this, void 0, void 0, function* () {
const totalsMarkdown = yield (0, exec_1.getExecOutput)(clBinary, ["report", "--totals", "--format", "markdown"]);
const unitsMarkdown = yield (0, exec_1.getExecOutput)(clBinary, ["report", "--full", "--format", "markdown"]);
const totalsMarkdown = yield (0, exec_1.getExecOutput)(clBinary, ["report", "--format", "markdown"]);
const unitsMarkdown = yield (0, exec_1.getExecOutput)(clBinary, ["findings", "--format", "markdown"]);
let result = "";
result += "## Codebase totals\n";
result += totalsMarkdown.stdout;
Expand Down

0 comments on commit 695ccb1

Please sign in to comment.