mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1825116 - do not run spotless lint on firefox-android projects. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201543
This commit is contained in:
parent
f04f333525
commit
e6bb6e9c73
38
build.gradle
38
build.gradle
@ -418,23 +418,33 @@ idea {
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply plugin: "com.diffplug.spotless"
|
||||
subprojects { project ->
|
||||
// Perform spotless lint in GeckoView projects only.
|
||||
def projectName = project.getName()
|
||||
if (projectName.startsWith('geckoview')
|
||||
|| projectName == 'annotations'
|
||||
|| projectName == 'exoplayer2'
|
||||
|| projectName == 'messaging_example'
|
||||
|| projectName == 'port_messaging_example'
|
||||
|| projectName == 'test_runner'
|
||||
) {
|
||||
apply plugin: "com.diffplug.spotless"
|
||||
|
||||
spotless {
|
||||
java {
|
||||
target project.fileTree(project.projectDir) {
|
||||
include '**/*.java'
|
||||
exclude '**/thirdparty/**'
|
||||
spotless {
|
||||
java {
|
||||
target project.fileTree(project.projectDir) {
|
||||
include '**/*.java'
|
||||
exclude '**/thirdparty/**'
|
||||
}
|
||||
googleJavaFormat('1.17.0')
|
||||
}
|
||||
googleJavaFormat('1.17.0')
|
||||
}
|
||||
kotlin {
|
||||
target project.fileTree(project.projectDir) {
|
||||
include '**/*.kt'
|
||||
exclude '**/thirdparty/**'
|
||||
kotlin {
|
||||
target project.fileTree(project.projectDir) {
|
||||
include '**/*.kt'
|
||||
exclude '**/thirdparty/**'
|
||||
}
|
||||
ktlint('0.49.1')
|
||||
}
|
||||
ktlint('0.49.1')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user