Implement TrailingCommaInspection
#KT-34744
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection
|
||||
@@ -0,0 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Add trailing comma
|
||||
|
||||
fun a(i: Int,
|
||||
b: Boolean<caret>) = Unit
|
||||
@@ -0,0 +1,7 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Add trailing comma
|
||||
|
||||
fun a(
|
||||
i: Int,
|
||||
b: Boolean,
|
||||
) = Unit
|
||||
@@ -0,0 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Fix comma position
|
||||
|
||||
fun a(i: Int /*
|
||||
*/<caret>, b: Boolean) = Unit
|
||||
@@ -0,0 +1,8 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Fix comma position
|
||||
|
||||
fun a(
|
||||
i: Int, /*
|
||||
*/
|
||||
b: Boolean,
|
||||
) = Unit
|
||||
@@ -0,0 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Remove trailing comma
|
||||
|
||||
fun a(i: Int, b: Boolean,<caret>) = Unit
|
||||
@@ -0,0 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Remove trailing comma
|
||||
|
||||
fun a(i: Int, b: Boolean<caret>) = Unit
|
||||
Reference in New Issue
Block a user