MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isEnvTemplateFile

Function isEnvTemplateFile

cli/src/utils/create-run-config.ts:75–78  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

73const ENV_TEMPLATE_SUFFIXES = ['.env.example', '.env.sample', '.env.template']
74
75export const isEnvTemplateFile = (filePath: string) =>
76 ENV_TEMPLATE_SUFFIXES.some((suffix) =>
77 path.basename(filePath).endsWith(suffix),
78 )
79
80/**
81 * Check if a file is a sensitive file that should be blocked from reading.

Callers 5

FilePathsDescriptionFunction · 0.90
renderFunction · 0.90
isEnvFileFunction · 0.85
createRunConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected