Skip to content

Commit

Permalink
Fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Feb 4, 2024
1 parent 348a045 commit baf8acf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
<ID>MagicNumber:SHA1.kt$SHA1.IntArrayView$3</ID>
<ID>MagicNumber:SHA1.kt$SHA1.IntArrayView$4</ID>
<ID>MagicNumber:SHA1.kt$SHA1.IntArrayView$8</ID>
<ID>MagicNumber:SecureRandom.kt$SecureRandomBrowser$31</ID>
<ID>MagicNumber:SecureRandom.kt$SecureRandomBrowser$32</ID>
<ID>MagicNumber:SecureRandom.js.kt$SecureRandomBrowser$31</ID>
<ID>MagicNumber:SecureRandom.js.kt$SecureRandomBrowser$32</ID>
<ID>MagicNumber:UUID.kt$UUID$0x0fffL</ID>
<ID>MagicNumber:UUID.kt$UUID$0x1fff</ID>
<ID>MagicNumber:UUID.kt$UUID$0xf000L</ID>
Expand All @@ -91,6 +91,7 @@
<ID>MagicNumber:UUID7.kt$0x80L</ID>
<ID>MagicNumber:UUID7.kt$12</ID>
<ID>MagicNumber:UUID7.kt$16</ID>
<ID>MatchingDeclarationName:Parcelable.android.kt$Parcelable : Parcelable</ID>
<ID>TooManyFunctions:SHA1.kt$SHA1</ID>
<ID>VariableNaming:UUID7.kt$val rand_a = random.nextBits(12).toLong()</ID>
</CurrentIssues>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public expect abstract class Parcelable(
clockSequenceVariantAndNodeRaw: Long
)

public expect interface ParcelableCreator<T: Any>
public expect interface ParcelableCreator<T : Any>

internal expect val creator: ParcelableCreator<UUID>
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ public actual abstract class Parcelable actual constructor(
public actual interface ParcelableCreator<T : Any>

internal actual val creator: ParcelableCreator<UUID> = object : ParcelableCreator<UUID> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public actual abstract class Parcelable actual constructor(
clockSequenceVariantAndNodeRaw: Long
)

public actual interface ParcelableCreator<T: Any>
public actual interface ParcelableCreator<T : Any>

internal actual val creator: ParcelableCreator<UUID> = object: ParcelableCreator<UUID> {}
internal actual val creator: ParcelableCreator<UUID> = object : ParcelableCreator<UUID> {}

0 comments on commit baf8acf

Please sign in to comment.