Skip to content

Commit

Permalink
ISSUE-405: fix static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
OvsyannikovMaksim committed Dec 23, 2023
1 parent d55b08a commit e91aea5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ data class RecyclerView(
) : BaseView {

val childClassNames = List(childView.size) { if (it == 0) "RecyclerViewItem" else "RecyclerViewItem$it" }

private val amountOfTabs = 7
override fun toKaspressoExpression(): String {
return """val ${resourceId.toCamelCase()} = KRecyclerView(
builder = { withId(R.id.$resourceId) },
itemTypeBuilder = { ${childClassNames.joinToString(separator = ",\n" + "\t".repeat(7)) { "itemType(::$it)" }} },
itemTypeBuilder = { ${childClassNames.joinToString(separator = ",\n" + "\t".repeat(amountOfTabs)) { "itemType(::$it)" }} },
)"""
}
}
Expand Down

0 comments on commit e91aea5

Please sign in to comment.