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

Function isSpringConfigFile

src/resolution/frameworks/java.ts:339–342  ·  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

337 * vendors `application.yml` under `src/main/resources` and one under `src/test/
338 * resources` are both picked up. */
339function isSpringConfigFile(filePath: string): boolean {
340 const base = filePath.split('/').pop() ?? '';
341 return /^(application|bootstrap)(-[\w.-]+)?\.(yml|yaml|properties)$/i.test(base);
342}
343
344/**
345 * 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