mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 11:10:22 +08:00
Upgrade linguist dependency
This version changes how it counts python heredoc. All heredoc is counted as code.
This commit is contained in:
8
node_modules/github-linguist/src/cli.ts
generated
vendored
8
node_modules/github-linguist/src/cli.ts
generated
vendored
@@ -13,7 +13,7 @@ program
|
||||
.description('count lines of code in a file')
|
||||
.action(async (pathPattern) => {
|
||||
try {
|
||||
const info = await (new LocFile(pathPattern).getFileInfo());
|
||||
const info = await new LocFile(pathPattern).getFileInfo();
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
chalk.cyan(`
|
||||
@@ -52,9 +52,9 @@ const formatInfo = (
|
||||
|
||||
program.arguments('<cmd> [env]').action(async (cmd) => {
|
||||
try {
|
||||
const { info, languages } = await (new LocDir({
|
||||
include: cmd
|
||||
}).loadInfo());
|
||||
const { info, languages } = await new LocDir({
|
||||
include: cmd,
|
||||
}).loadInfo();
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(chalk.cyan(formatInfo(info, languages)));
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user