Showing 2 of 20 total issues
Method onBindViewHolder
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
val message = messages[position]
// Fill the holder view with appropriate data based on the type of view
when (holder.itemViewType) {
VIEW_TYPE_TEXT_INCOMING, VIEW_TYPE_TEXT_OUTGOING -> {
Method insertAll
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
fun insertAll(user: UserEntity, dailyGoals: List<DailyGoalEntity>, milestones: List<MilestoneEntity>, runs: List<RunEntity>, points: List<PointsEntity>) {