MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / lint

Function lint

@commitlint/travis-cli/src/cli.ts:82–94  ·  view source on GitHub ↗
(args: string[], nodeOptions: SpawnOptions = {}, input: string = "")

Source from the content-addressed store, hash-verified

80}
81
82async function lint(args: string[], nodeOptions: SpawnOptions = {}, input: string = "") {
83 const result = x(COMMITLINT, args, {
84 nodeOptions: {
85 stdio: ["pipe", "inherit", "inherit"],
86 ...nodeOptions,
87 },
88 });
89
90 result.process?.stdin?.write(input);
91 result.process?.stdin?.end();
92
93 return result;
94}
95
96async function log(hash: string) {
97 const result = await git(["log", "-n", "1", "--pretty=format:%B", hash], {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected