Skip to content

Commit adf3f00

Browse files
committed
chore: add formatting
1 parent 957a5c9 commit adf3f00

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/codecov-upload-flags.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const pkgsWithFlag = pkgFiles.flat().map((f) => {
3737
'./codecov --verbose',
3838
'upload-coverage',
3939
'--git-service github',
40-
// we don't need xcrun or pycoverage
40+
// we don't need xcrun or pycoverage plugins
4141
'--plugin gcov',
4242
'--gcov-executable gcov',
4343
'--sha', commitSha,
@@ -52,7 +52,7 @@ const pkgsWithFlag = pkgFiles.flat().map((f) => {
5252
return { name, flag, len: flag.length, path, report, command };
5353
});
5454

55-
// Download codecov
55+
// Download codecov-cli if necessary
5656
const baseUrl = 'https://cli.codecov.io/latest/';
5757
const urlMap = {
5858
linux: `${baseUrl}linux/codecov`,
@@ -66,7 +66,6 @@ if (!url) {
6666
process.exit(-1);
6767
}
6868

69-
// Download CLI tool if needed
7069
if (existsSync(codecovPath)) {
7170
console.log(`Codecov binary found.`);
7271
} else {
@@ -85,7 +84,7 @@ chmodSync(codecovPath, 0o555);
8584
for (const pkg of pkgsWithFlag) {
8685
if (existsSync(pkg.report)) {
8786
const command = pkg.command;
88-
console.log(`CODECOV: Uploading report of "${pkg.name}" with flag "${pkg.flag}"\n${command}\n\n`);
87+
console.log(`\n\nCODECOV: Uploading report of "${pkg.name}" with flag "${pkg.flag}"\n${command}`);
8988
execCmd(command);
9089
}
9190
}

0 commit comments

Comments
 (0)