Skip to content

Commit

Permalink
Quote custom strings in finding
Browse files Browse the repository at this point in the history
  • Loading branch information
xcq1 committed Jan 19, 2023
1 parent 6fb1292 commit 5f9bc24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class CopyOnDataClassWithNonPublicConstructor(config: Config) : Rule(config) {
) {
report(
CodeSmell(
issue, Entity.from(expression), "Non-public constructed data class ${calleeExpression.getReceiverExpression()?.text ?: ""}"
+ " of type ${type.fqNameOrNull()} should not bypass constructor by calling copy()."
issue, Entity.from(expression), "Non-public constructed data class '${calleeExpression.getReceiverExpression()?.text ?: ""}'"
+ " of type '${type.fqNameOrNull()}' should not bypass constructor by calling copy()."
)
)
}
Expand Down

0 comments on commit 5f9bc24

Please sign in to comment.