Skip to content

Commit

Permalink
Merge pull request #475 from github/aeisenberg/warning-message
Browse files Browse the repository at this point in the history
Clarify the missing baseline lines of code warning message
  • Loading branch information
aeisenberg authored May 5, 2021
2 parents 46d0d27 + c2ec5a2 commit 5321045
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.info(
"Could not determine the total number of lines of code in this repository. " +
"Because of this, it will not be possible to 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 produced by code " +
"scanning. 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, or otherwise information about the code scanning " +
"workflow you are using."
);
}

return lineCounts;
Expand Down

0 comments on commit 5321045

Please sign in to comment.