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

Function detect

src/resolution/frameworks/play.ts:32–38  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

30 languages: ['scala', 'java', 'yaml'],
31
32 detect(context: ResolutionContext): boolean {
33 const buildSbt = context.readFile('build.sbt');
34 if (buildSbt && /playframework|"play"|sbt-plugin|PlayScala|PlayJava/i.test(buildSbt)) return true;
35 if (context.fileExists('conf/routes')) return true;
36 if (context.fileExists('conf/application.conf')) return true;
37 return false;
38 },
39
40 // The handler is `Controller.method` (a class-qualified action), which names no
41 // bare declared symbol, so resolveOne's pre-filter could drop it — claim it.

Callers

nothing calls this directly

Calls 2

readFileMethod · 0.80
fileExistsMethod · 0.80

Tested by

no test coverage detected