MCPcopy Create free account
hub / github.com/code-pushup/cli / resolveGitignore

Function resolveGitignore

packages/create-cli/src/lib/setup/gitignore.ts:8–15  ·  view source on GitHub ↗
(tree: Tree)

Source from the content-addressed store, hash-verified

6const REPORTS_SECTION = `# Code PushUp reports\n${REPORTS_DIR}\n`;
7
8export async function resolveGitignore(tree: Tree): Promise<void> {
9 const content = await tree.read(GITIGNORE_FILENAME);
10 const updated = resolveGitignoreContent(content);
11
12 if (updated != null) {
13 await tree.write(GITIGNORE_FILENAME, updated);
14 }
15}
16
17function resolveGitignoreContent(content: string | null): string | null {
18 if (content == null) {

Callers 2

runSetupWizardFunction · 0.85

Calls 1

resolveGitignoreContentFunction · 0.85

Tested by

no test coverage detected