v1.0-snapshot
Pre-release
Pre-release
In the current version, we can detect the following 11 code smell:
| Type | Description |
| Circular References 馃煥 | Two or more classes or files have interdependencies that form a closed loop |
| Excessive Parameters 馃煥 | A method has too many arguments |
| Unused Import 馃煥 | Classes, attributes, methods, or packages that have been imported into a file, but have never been used |
| Complex Method 馃煥 | The complexity of the loop is too large |
| Provide Immutable Collection 馃煩 | Kotlin provides immutable collection types when java calling Kotlin's API |
| Internal Exposed 馃煩 | Java inherits or implements an abstract class or interface for Internal in kotlin and extends its access to public |
| Unclear Platform Type 馃煩 | Kotlin calls the Java return value non-null-safe API and does not specify the nullability of the return value |
| When Instead Of Cascade If 馃煪 | If statements with too many cascades should be replaced with when statements |
| Implicit Single Expression Function 馃煪 | kotlin's one-expression method returns a value of type other than Unit, but does not specify the return type |
| Object Extends Throwable 馃煪 | The class decorated with kotlin object inherits from Throwable |
| Optimized Tail Recursion 馃煪 | The tail recursion function in Kotlin does not indicate that it is tail recursive |
In the table, yellow is common to Java Kotlin, green is generated when Koltin Java calls each other, and purple is unique to Kotlin.