refactor: suppress LongParameterList in model module

This commit is contained in:
Harsh Shandilya 2022-10-02 16:08:23 +05:30
parent 16404e6654
commit 1d761b1f6e
No known key found for this signature in database
7 changed files with 13 additions and 6 deletions

View file

@ -1,10 +1,5 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues></ManuallySuppressedIssues>
<CurrentIssues>
<ID>LongParameterList:Comment.kt$Comment$( val comment: String, val url: String, val score: Int, @Serializable(with = JavaInstantSerializer::class) @SerialName("created_at") val createdAt: TemporalAccessor, @Serializable(with = JavaInstantSerializer::class) @SerialName("updated_at") val updatedAt: TemporalAccessor, @SerialName("indent_level") val indentLevel: Int, @SerialName("commenting_user") val user: User, )</ID>
<ID>LongParameterList:ExtendedPostDetails.kt$ExtendedPostDetails$( val title: String, val linkMetadata: LinkMetadata, val description: String, val submitter: User, val tags: List&lt;String&gt;, val comments: List&lt;Comment&gt;, val commentsUrl: String, )</ID>
<ID>LongParameterList:LobstersPost.kt$LobstersPost$( @SerialName("short_id") val shortId: String, @SerialName("created_at") val createdAt: String, val title: String, val url: String, val description: String, @SerialName("comment_count") val commentCount: Int, @SerialName("comments_url") val commentsUrl: String, @SerialName("submitter_user") val submitter: User, val tags: List&lt;String&gt;, )</ID>
<ID>LongParameterList:LobstersPostDetails.kt$LobstersPostDetails$( @SerialName("short_id") val shortId: String, @SerialName("created_at") val createdAt: String, val title: String, val url: String, val description: String, @SerialName("comment_count") val commentCount: Int, @SerialName("comments_url") val commentsUrl: String, @SerialName("submitter_user") val submitter: User, val tags: List&lt;String&gt;, val comments: List&lt;Comment&gt;, )</ID>
</CurrentIssues>
<CurrentIssues></CurrentIssues>
</SmellBaseline>

View file

@ -1,3 +1,5 @@
@file:Suppress("LongParameterList")
package dev.msfjarvis.claw.model
import dev.msfjarvis.claw.serialization.JavaInstantSerializer

View file

@ -1,3 +1,5 @@
@file:Suppress("LongParameterList")
package dev.msfjarvis.claw.model
class ExtendedPostDetails(

View file

@ -1,3 +1,5 @@
@file:Suppress("LongParameterList")
package dev.msfjarvis.claw.model
data class LinkMetadata(

View file

@ -1,3 +1,5 @@
@file:Suppress("LongParameterList")
package dev.msfjarvis.claw.model
import kotlinx.serialization.SerialName

View file

@ -1,3 +1,5 @@
@file:Suppress("LongParameterList")
package dev.msfjarvis.claw.model
import kotlinx.serialization.SerialName

View file

@ -1,3 +1,5 @@
@file:Suppress("LongParameterList")
package dev.msfjarvis.claw.model
import kotlinx.serialization.SerialName