mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-16 11:41:16 +01:00
Update ktlint to 0.12.1 version.
Also updated ktlint-gradle to 2.3.0 version. Added ktlint reports to circle CI. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
7c3d19b048
commit
c917bcb1a6
@ -34,6 +34,7 @@ jobs:
|
|||||||
key: gradle-cache-{{ checksum "dependencies.gradle" }}
|
key: gradle-cache-{{ checksum "dependencies.gradle" }}
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ultrasonic/build/reports
|
path: ultrasonic/build/reports
|
||||||
|
path: subsonic-api/build/reports
|
||||||
destination: reports
|
destination: reports
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build/reports/jacoco/jacocoFullReport/
|
path: build/reports/jacoco/jacocoFullReport/
|
||||||
|
@ -6,8 +6,8 @@ ext.versions = [
|
|||||||
|
|
||||||
buildTools : "25.0.3",
|
buildTools : "25.0.3",
|
||||||
androidTools : "2.3.3",
|
androidTools : "2.3.3",
|
||||||
ktlint : "0.9.0",
|
ktlint : "0.12.1",
|
||||||
ktlintGradle : "2.1.0",
|
ktlintGradle : "2.3.0",
|
||||||
detekt : "1.0.0.RC5-4",
|
detekt : "1.0.0.RC5-4",
|
||||||
jacoco : "0.7.9",
|
jacoco : "0.7.9",
|
||||||
jacocoAndroid : "0.1.2",
|
jacocoAndroid : "0.1.2",
|
||||||
|
@ -7,6 +7,7 @@ if (isCodeQualityEnabled) {
|
|||||||
|
|
||||||
ktlint {
|
ktlint {
|
||||||
version = versions.ktlint
|
version = versions.ktlint
|
||||||
|
android = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ fun parseDate(dateAsString: String): Calendar {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
fun <T: SubsonicResponse> checkErrorCallParsed(mockWebServerRule : MockWebServerRule,
|
fun <T : SubsonicResponse> checkErrorCallParsed(mockWebServerRule: MockWebServerRule,
|
||||||
apiRequest: () -> Response<T>): T {
|
apiRequest: () -> Response<T>): T {
|
||||||
mockWebServerRule.enqueueResponse("generic_error_response.json")
|
mockWebServerRule.enqueueResponse("generic_error_response.json")
|
||||||
|
|
||||||
val response = apiRequest()
|
val response = apiRequest()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user