(tree: Tree)
| 6 | const REPORTS_SECTION = `# Code PushUp reports\n${REPORTS_DIR}\n`; |
| 7 | |
| 8 | export 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 | |
| 17 | function resolveGitignoreContent(content: string | null): string | null { |
| 18 | if (content == null) { |
no test coverage detected