[devkit] Add UIComponent to the list of forbidden receivers of extension functions

GitOrigin-RevId: 4c27a54e8ae584e9b10cc94ac8ea24e6baef46c2
This commit is contained in:
Maxim.Kolmakov
2025-02-06 01:46:13 +00:00
committed by intellij-monorepo-bot
parent a624e1c7bc
commit 87f41252f6
@@ -51,7 +51,8 @@ class PublicTestExtensionFunctionInspection : LocalInspectionTool() {
if (function.isLocal) return false
//optimization to avoid resolve
if (receiverTypeRef.text != "Driver" && receiverTypeRef.text != "Finder" && receiverTypeRef.text != "IdeaFrameUI") return false
if (receiverTypeRef.text != "Driver" && receiverTypeRef.text != "Finder" && receiverTypeRef.text != "IdeaFrameUI"
&& receiverTypeRef.text != "UIComponent") return false
// Check if it's public (no visibility modifier means public in Kotlin)
val visibilityModifier = function.visibilityModifier()?.text