Skip to content

Commit 5321045

Browse files
authored
Merge pull request #475 from github/aeisenberg/warning-message
Clarify the missing baseline lines of code warning message
2 parents 46d0d27 + c2ec5a2 commit 5321045

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

lib/count-loc.js

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/count-loc.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/count-loc.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,16 @@ export async function countLoc(
7272
logger.debug(` ${language}: ${count}`);
7373
}
7474
} else {
75-
logger.warning("Did not find any lines of code in database.");
75+
logger.info(
76+
"Could not determine the total number of lines of code in this repository. " +
77+
"Because of this, it will not be possible to compare the number of lines " +
78+
"of code analyzed by code scanning with the total number of lines of " +
79+
"code in the repository. This will not affect the results produced by code " +
80+
"scanning. If you have any questions, you can raise an issue at " +
81+
"https://github.com/github/codeql-action/issues. Please include a link " +
82+
"to the repository if public, or otherwise information about the code scanning " +
83+
"workflow you are using."
84+
);
7685
}
7786

7887
return lineCounts;

0 commit comments

Comments
 (0)