0

I'm playing around with Android Lint and I'm trying to detect if in a gradle file a method is called, my build.gradle is like this :

plugins { ... }

android { ... }

dependencies { ... }

myMethod()

This myMethod() is a common configuration and I want to verify that is called only in certain cases, or at least if it's in the file, but I can't figure it out using the Detector and the GradleScanner.

Other question is, this applies to all of the build.gradle of my project? I do have a multi-module project and each module have its own build.gradle and I want to check it this for all.

I've tried the visitMethodCall and getApplicableMethodNames and I add the myMethod but it doesn't work even if the method is called because I've added a print and I see it on the logcat.

Note: myMethod is an extension function of Project where I configure some parameters of android

StuartDTO
  • 783
  • 7
  • 26
  • 72

0 Answers0