Enable lint checks in pull-requests

commit_hash:84aa329b2a8885bc0aee17be3dc52a0c489ed840
This commit is contained in:
grechka62
2025-03-28 12:00:57 +03:00
parent 7dd5307274
commit 3fa67b1458
5 changed files with 10 additions and 3 deletions
+6
View File
@@ -88,6 +88,12 @@ subprojects {
}
}
if (project.tasks.names.contains("lint")) {
project.tasks.named("lint").get().configure { task ->
unitTests.dependsOn(task)
}
}
project.tasks.withType(PublishToMavenRepository).configureEach { task ->
task.finalizedBy(reportBuildNumber)
}
@@ -1,4 +1,5 @@
package com.yandex.div.core.annotations
@RequiresOptIn("This API is experimental. It may be changed in the future without notice.")
@Retention(AnnotationRetention.BINARY)
public annotation class ExperimentalApi
@@ -1,6 +1,5 @@
package com.yandex.div.internal.parser
import android.annotation.SuppressLint
import com.yandex.div.internal.util.forEach
import com.yandex.div.json.ParsingErrorLogger
import com.yandex.div.json.ParsingException
@@ -47,7 +46,6 @@ internal object JsonTopologicalSorting {
* @throws ParsingException if top level object has no parent reference or it is empty.
* @throws JSONException if json is malformed.
*/
@SuppressLint("NewApi")
@Throws(JSONException::class, ParsingException::class, CyclicDependencyException::class)
fun sort(context: ParsingContext, json: JSONObject): Map<String, Set<String>> {
val types = parseTypeDependencies(context, json)
@@ -5,7 +5,7 @@ import androidx.test.services.storage.TestStorage
import java.io.OutputStream
@JvmInline
@SuppressLint("UnsafeOptInUsageError")
@SuppressLint("RestrictedApi", "UnsafeOptInUsageError")
value class TestFile(val path: String) {
fun open(): OutputStream = testStorage.openOutputFile(path)
@@ -1,5 +1,6 @@
package com.yandex.test.util
import android.annotation.SuppressLint
import androidx.test.espresso.BaseLayerComponent
import androidx.test.espresso.Espresso
import androidx.test.espresso.Root
@@ -19,6 +20,7 @@ fun assertPopupDisplayed() {
}
internal val activeRoots: List<Root>
@SuppressLint("RestrictedApi")
get() = performOnMain {
Reflection.staticField("BASE")
.ofType(BaseLayerComponent::class.java)