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" }}
|
||||
- store_artifacts:
|
||||
path: ultrasonic/build/reports
|
||||
path: subsonic-api/build/reports
|
||||
destination: reports
|
||||
- store_artifacts:
|
||||
path: build/reports/jacoco/jacocoFullReport/
|
||||
|
|
|
@ -6,8 +6,8 @@ ext.versions = [
|
|||
|
||||
buildTools : "25.0.3",
|
||||
androidTools : "2.3.3",
|
||||
ktlint : "0.9.0",
|
||||
ktlintGradle : "2.1.0",
|
||||
ktlint : "0.12.1",
|
||||
ktlintGradle : "2.3.0",
|
||||
detekt : "1.0.0.RC5-4",
|
||||
jacoco : "0.7.9",
|
||||
jacocoAndroid : "0.1.2",
|
||||
|
|
|
@ -7,6 +7,7 @@ if (isCodeQualityEnabled) {
|
|||
|
||||
ktlint {
|
||||
version = versions.ktlint
|
||||
android = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,8 +46,8 @@ fun parseDate(dateAsString: String): Calendar {
|
|||
return result
|
||||
}
|
||||
|
||||
fun <T: SubsonicResponse> checkErrorCallParsed(mockWebServerRule : MockWebServerRule,
|
||||
apiRequest: () -> Response<T>): T {
|
||||
fun <T : SubsonicResponse> checkErrorCallParsed(mockWebServerRule: MockWebServerRule,
|
||||
apiRequest: () -> Response<T>): T {
|
||||
mockWebServerRule.enqueueResponse("generic_error_response.json")
|
||||
|
||||
val response = apiRequest()
|
||||
|
|
Loading…
Reference in New Issue