Skip to content

Commit a4aed8e

Browse files
committed
Fix detekt warnings
1 parent 46cac3a commit a4aed8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/FormatValidator.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import kotlin.jvm.JvmStatic
55

66
/**
77
* The [FormatValidator] is used to check whether the [AbstractElement] matches the expected format.
8-
* If the [AbstractElement] is not of the required type (e.g. validator expects string but the [AbstractElement] is an object)
8+
* If the [AbstractElement] is not of the required type
9+
* (e.g. validator expects string but the [AbstractElement] is an object)
910
* the validator **MUST** return [FormatValidator.Valid] result
1011
*/
1112
@ExperimentalApi

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/util/NumberParts.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ private const val TEN: Double = 10.0
2525
* This function should be used only if you are certain that the [element] is a number
2626
*/
2727
internal fun numberParts(element: PrimitiveElement): NumberParts {
28+
@Suppress("detekt:ForbiddenComment")
2829
if (element.content.run { contains(E_SMALL_CHAR) || contains(E_BIG_CHAR) }) {
2930
// FIXME: if we add support for YAML then we should handle +Inf and -Inf values correctly
3031
val number = requireNotNull(element.number) { "element '${element.content}' is not a number" }

0 commit comments

Comments
 (0)