Updates to dependency analysis script.

Bug: 355239547
Bug: 350084892
Bug: 354200888

Test: ./gradlew buildOnServer

Change-Id: Iab7999f3f899e2959a1929a5c9fc447225d95e86
diff --git a/development/buildHealthAdviceToCsv.main.kts b/development/buildHealthAdviceToCsv.main.kts
index 40dc9c4..ca604aa 100755
--- a/development/buildHealthAdviceToCsv.main.kts
+++ b/development/buildHealthAdviceToCsv.main.kts
@@ -95,6 +95,11 @@
 //        return@projectAdvice
 //    }
 
+    // Ignore advice for lint projects: b/350084892
+    if (projectPath.contains("lint")) {
+        return@projectAdvice
+    }
+
     val description = StringBuilder()
     description.appendLine(
         "The dependency analysis gradle plugin found some dependencies that may have been " +
@@ -115,6 +120,13 @@
         val isTransitiveDependencyAdvice = fromConfiguration == null && toConfiguration != null && !isCompileOnly
         val isUnusedDependencyAdvice = fromConfiguration != null && toConfiguration == null
 
+        // Ignore advice for androidx.profileinstaller:profileinstaller.
+        // It needs to remain implementation as that needs to be part of the manifest merger
+        // which is before runtime (b/355239547)
+        if(coordinates.identifier == "androidx.profileinstaller:profileinstaller") {
+            return@forEach
+        }
+
         var identifier = if(resolvedVersion == null) {
             "'${coordinates.identifier}'"
         } else {