class

Detector::Groovy::Grails

Inherits Detector < Reference < Object

Constants

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

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
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
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