mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
Enable lint checks in pull-requests
commit_hash:84aa329b2a8885bc0aee17be3dc52a0c489ed840
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
-2
@@ -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)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user