(context: ResolutionContext)
| 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. |
nothing calls this directly
no test coverage detected