class

Detector::Groovy::Grails

Inherits Detector < Reference < Object

Constants

GRADLE_FILES = {"build.gradle", "build.gradle.kts", "settings.gradle", "settings.gradle.kts"}

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

Memo safety: applicable? consults the path (/grails-app/ gate), not just the basename.

The gate matches that segment on the RAW path while detect matches it on base_relative_path, so the gate is deliberately the wider of the two. It only decides whether detect is dispatched — detect is what answers — and keeping it a pure string test keeps the per-file lookup off the base resolution.

Source
detect(filename : String, file_contents : String) : Bool
Source
path_sensitive?

Memo safety: applicable? consults the path (/grails-app/ gate), not just the basename.

The gate matches that segment on the RAW path while detect matches it on base_relative_path, so the gate is deliberately the wider of the two. It only decides whether detect is dispatched — detect is what answers — and keeping it a pure string test keeps the per-file lookup off the base resolution.

Source
set_name

Memo safety: applicable? consults the path (/grails-app/ gate), not just the basename.

The gate matches that segment on the RAW path while detect matches it on base_relative_path, so the gate is deliberately the wider of the two. It only decides whether detect is dispatched — detect is what answers — and keeping it a pure string test keeps the per-file lookup off the base resolution.

Source