Skip to content

Commit

Permalink
Merge pull request #160 from frogggias/fix/110-add-in-to-forbidden-ke…
Browse files Browse the repository at this point in the history
…ywords

Add "in" to forbidden keywords
  • Loading branch information
arnaudgiuliani authored Sep 17, 2024
2 parents cd97c34 + 3727e24 commit 029ed18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ internal fun List<KSValueArgument>.getValueArgument(): String? {

fun KSClassDeclaration.getPackageName() : String = packageName.asString()

val forbiddenKeywords = listOf("interface","it")
val forbiddenKeywords = listOf("in","interface","it")
fun String.filterForbiddenKeywords() : String{
return split(".").joinToString(".") {
if (it in forbiddenKeywords) "`$it`" else it
Expand Down

0 comments on commit 029ed18

Please sign in to comment.