Skip to content

Commit

Permalink
Clarify the missing baseline lines of code warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
aeisenberg committed May 5, 2021
1 parent 925cef7 commit 9228317
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
9 changes: 8 additions & 1 deletion lib/count-loc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/count-loc.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion src/count-loc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,16 @@ export async function countLoc(
logger.debug(` ${language}: ${count}`);
}
} else {
logger.warning("Did not find any lines of code in database.");
logger.warning(
"Could not determine the number of lines of code for this repository. " +
"Because of this, it will not be possible compare the number of lines " +
"of code analyzed by code scanning with the total number of lines of " +
"code in the repository. This will not affect the results of the code " +
"scan. If you have any questions, you can raise an issue at " +
"https://github.com/github/codeql-action/issues. Please include a link " +
"to the repository if public, otherwise information code scanning " +
"workflow you are using."
);
}

return lineCounts;
Expand Down

0 comments on commit 9228317

Please sign in to comment.