Skip to content

Commit

Permalink
detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Nov 16, 2023
1 parent 07dac91 commit 86ac1c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/com/slack/auto/value/kotlin/AvkBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public data class AvkBuilder(
val classAnnotations: List<AnnotationSpec>
) {

@Suppress("LongMethod")
@Suppress("LongMethod", "CyclomaticComplexMethod")
public fun createType(messager: Messager): TypeSpec {
val builder =
TypeSpec.classBuilder(name).addModifiers(visibility).addAnnotations(classAnnotations)
Expand All @@ -59,6 +59,7 @@ public data class AvkBuilder(

val propsToCreateWith = mutableListOf<CodeBlock>()

@Suppress("DestructuringDeclarationWithTooManyEntries")
for (builderProp in builderProps) {
val (propName, type, setters, propertyBuilder) = builderProp
// Add param to constructor
Expand Down

0 comments on commit 86ac1c5

Please sign in to comment.