Skip to content

Commit

Permalink
detekt.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamMc331 committed Apr 22, 2022
1 parent 2743b8d commit a111011
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ style:
MagicNumber:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
ignoreNumbers: ['-1', '0', '1', '2', '10']
ignoreNumbers: ['-1', '0', '1', '2', '3', '10']
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignoreLocalVariableDeclaration: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ data class EventSummaryDisplayModel(
}
}

/**
* Converts an [Event] entity to the user friendly [EventSummaryDisplayModel].
*/
fun Event.toSummaryDisplayModel(
dateTimeFormatter: DateTimeFormatter = DateTimeFormatter(),
): EventSummaryDisplayModel {
Expand Down

0 comments on commit a111011

Please sign in to comment.