MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isSpringConfigFile

Function isSpringConfigFile

src/resolution/frameworks/java.ts:337–340  ·  view source on GitHub ↗

Spring config file patterns: application(-profile)?.{yml,yaml,properties} + * bootstrap variants. Matches the basename, not the path, so a project that * vendors `application.yml` under `src/main/resources` and one under `src/test/ * resources` are both picked up.

(filePath: string)

Source from the content-addressed store, hash-verified

335 * vendors `application.yml` under `src/main/resources` and one under `src/test/
336 * resources` are both picked up. */
337function isSpringConfigFile(filePath: string): boolean {
338 const base = filePath.split('/').pop() ?? '';
339 return /^(application|bootstrap)(-[\w.-]+)?\.(yml|yaml|properties)$/i.test(base);
340}
341
342/**
343 * Parse a Spring config file (YAML or .properties) and emit one `constant`

Callers 1

extractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected