mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
This commit only adds a single package and all of its transitive dependencies. The github-linguist package will be used for counting lines of code as a baseline for databases we are analyzing.
29 lines
583 B
TypeScript
29 lines
583 B
TypeScript
import { LineInfo } from './file';
|
|
export interface LocDirOptions {
|
|
cwd?: string;
|
|
include?: string[] | string;
|
|
exclude?: string[] | string;
|
|
}
|
|
export interface LocResult {
|
|
files: string[];
|
|
info: LineInfo;
|
|
languages: {
|
|
[key: string]: LineInfo & {
|
|
sum: number;
|
|
};
|
|
};
|
|
}
|
|
/**
|
|
* Collect the info of a directory.
|
|
*/
|
|
export declare class LocDir {
|
|
private cwd;
|
|
private include;
|
|
private exclude;
|
|
constructor(options: LocDirOptions);
|
|
/**
|
|
* Calculate directory info.
|
|
*/
|
|
loadInfo(): Promise<LocResult>;
|
|
}
|