Slide 43
Slide 43 text
if (method.name
= =
"Intent"
& &
!node.arguments.contains("component")) {
/ /
Report issue for implicit intents
context.report(
ISSUE, node,
"Implicit Intent detected: Specify a target component."
)
}
}
companion object {
/ /
Def
i
ne the lint issue
val ISSUE = Issue.create(
id = "ImplicitIntent",
description = "Implicit Intent Detected",
explanation = "Implicit intents can cause security risks. " +
"Always use explicit intents.",
category = SECURITY,
priority = 6,
severity = WARNING
)
}
}
Enforce secure communication - Lint
Secure Communication
Enforce