Highlights public function names in ViewModel classes that contain UI-specific terms like "Click", "Scroll", or "Swipe".
+ +
+ This inspection helps ensure ViewModel functions are named in a UI-agnostic way by detecting naming patterns that leak UI layer concerns into the presentation layer.
+ It encourages replacing UI interaction verbs with more generic alternatives such as Action to promote cleaner architecture and separation of concerns.
+
+class LoginViewModel {
+ // Correct
+ fun onLoginAction()
+
+ // Incorrect
+ fun onLoginClicked()
+}
+
+
+This inspection supports an auto-fix that renames the function by replacing the UI-related term with Action, e.g., onLoginClicked becomes onLoginAction.