0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Anki-Android/lint-rules/build.gradle
David Allison 14898fa14f lint: kotlin conversion corrupting emails
The Java -> Kotlin migration converts <...> into html tags
if the comment is /** instead of /*

This often catches the copyright header of files, which is bad
as it corrupts the emails in the copyright.

Pickup the email `<http:></http:>` and report this
2021-10-30 08:25:25 -05:00

30 lines
791 B
Groovy

apply plugin: "java-library"
apply plugin: 'kotlin'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
ktlint {
disabledRules = ["no-wildcard-imports"]
}
repositories {
google()
mavenCentral()
}
dependencies {
compileOnly "com.android.tools.lint:lint-api:$lint_version"
compileOnly "com.android.tools.lint:lint:$lint_version"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation "junit:junit:4.13.2"
testImplementation "com.android.tools.lint:lint:$lint_version"
testImplementation "com.android.tools.lint:lint-api:$lint_version"
testImplementation "com.android.tools.lint:lint-tests:$lint_version"
testImplementation 'org.hamcrest:hamcrest-all:1.3'
}