GradleReleaseConfigRule class
SD009 — release build type without code shrinking.
Text-based on purpose: Gradle scripts are Turing-complete, so the
rule only asserts what it can see literally inside a release { }
block — an explicit minifyEnabled false, or minification enabled
without resource shrinking. Values set through variables or plugins
stay unflagged (quiet over clever).
Constructors
- GradleReleaseConfigRule()
-
const
Properties
- cwe → int
-
CWE id without the prefix, e.g.
319for CWE-319.no setteroverride - description → String
-
What the rule detects and why it matters.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable identifier,
SD###.no setteroverride - masvs → String
-
OWASP MASVS requirement id, e.g.
MASVS-NETWORK-1.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → Severity
-
no setteroverride
- title → String
-
Short human-readable name of the check.
no setteroverride
Methods
-
appliesTo(
ScanFile file) → bool -
Whether
fileis worth checking at all (usually a ScanFile.kind test). Files that do not apply are never passed to check.override -
check(
ScanFile file) → List< Finding> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited