Skip to content

Commit ac9ced0

Browse files
committed
Update dependencies
1 parent 990ffc9 commit ac9ced0

11 files changed

Lines changed: 21 additions & 44 deletions

File tree

config/detekt.yml

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
11
complexity:
2-
ComplexCondition:
3-
active: false
4-
ComplexInterface:
5-
active: false
6-
ComplexMethod:
7-
active: false
8-
LabeledExpression:
9-
active: false
10-
LargeClass:
11-
active: false
12-
LongParameterList:
13-
active: false
14-
NestedBlockDepth:
15-
active: false
16-
StringLiteralDuplication:
17-
active: false
18-
TooManyFunctions:
19-
active: false
2+
active: false
203

21-
naming:
22-
FunctionMaxLength:
23-
maximumFunctionNameLength: 40
4+
exceptions:
5+
TooGenericExceptionCaught:
6+
active: false
247

258
performance:
269
SpreadOperator:
2710
active: false
2811

29-
potential-bugs:
30-
UnsafeCast:
31-
active: false
32-
3312
style:
34-
ExpressionBodySyntax:
35-
active: false
36-
ForbiddenComment:
37-
active: true
38-
values: 'FIXME:,STOPSHIP:'
3913
MagicNumber:
4014
active: false
41-
ReturnCount:
42-
active: false
43-
ThrowsCount:
44-
active: false
45-
UnnecessaryApply:
46-
active: false
47-
UseIfInsteadOfWhen:
15+
ForbiddenComment:
4816
active: false

gradle/versions.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ ext {
22
version = "5.1.1"
33
group = "com.github.proxer"
44

5-
gradleVersion = "6.3"
5+
gradleVersion = "6.5"
66

77
kotlinVersion = "1.3.72"
88
dokkaVersion = "0.9.18"
99

1010
jacocoVersion = "0.8.5"
1111
ktlintVersion = "9.2.1"
12-
detektVersion = "1.6.0"
12+
detektVersion = "1.10.0"
1313

1414
gradleVersionsPluginVersion = "0.28.0"
1515
buildConfigPluginVersion = "1.1.8"
1616

17-
retrofitVersion = "2.8.1"
18-
okHttpVersion = "4.6.0"
17+
retrofitVersion = "2.9.0"
18+
okHttpVersion = "4.7.2"
1919
okioVersion = "2.6.0"
20-
moshiVersion = "1.9.2"
20+
moshiVersion = "1.9.3"
2121
moshiLazyAdaptersVersion = "2.2"
2222

2323
junitVersion = "5.6.1"

gradle/wrapper/gradle-wrapper.jar

216 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

library/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ ktlint {
9090
}
9191

9292
detekt {
93+
version = detektVersion
94+
buildUponDefaultConfig = true
95+
9396
config = files("$rootDir/config/detekt.yml")
94-
failFast = true
9597
}
9698

9799
publishing {

library/src/main/kotlin/me/proxer/library/ProxerCall.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class ProxerCall<T> internal constructor(private val internalCall: Call<ProxerRe
110110
return internalCall.request()
111111
}
112112

113+
@Suppress("ThrowsCount")
113114
private fun processResponse(response: Response<ProxerResponse<T>>): T? {
114115
if (response.isSuccessful) {
115116
val proxerResponse = response.body() ?: throw ProxerException(ProxerException.ErrorType.PARSING)

library/src/main/kotlin/me/proxer/library/internal/adapter/DelimitedEnumSetAdapterFactory.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import java.util.Locale
1919
*/
2020
internal class DelimitedEnumSetAdapterFactory : JsonAdapter.Factory {
2121

22+
@Suppress("ReturnCount")
2223
override fun create(type: Type, annotations: Set<Annotation>, moshi: Moshi): JsonAdapter<*>? {
2324
val rawType = Types.getRawType(type)
2425

library/src/main/kotlin/me/proxer/library/internal/adapter/DelimitedStringSetAdapterFactory.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import java.lang.reflect.Type
1313
*/
1414
internal class DelimitedStringSetAdapterFactory : JsonAdapter.Factory {
1515

16+
@Suppress("ReturnCount")
1617
override fun create(type: Type, annotations: Set<Annotation>, moshi: Moshi): JsonAdapter<*>? {
1718
val rawType = Types.getRawType(type)
1819

0 commit comments

Comments
 (0)