Inspectopedia Help

Other problems

'Enum.values()' is recommended to be replaced by 'Enum.entries' since 1.9   New in this release

Reports calls from Kotlin to values() method in enum classes that can be replaced with entries property read.

'Enum.values()' is recommended to be replaced by 'Enum.getEntries()' since Kotlin 1.9   New in this release

Reports calls from Java to values() method of Kotlin enum classes that can be replaced with getEntries().

'HashMap' can be replaced with 'EnumMap'   New in this release

Reports hashMapOf function or HashMap constructor calls that can be replaced with an EnumMap constructor call.

'StringBuilder.append(CharArray, offset, len)' call on the JVM   New in this release

Reports a StringBuilder.append(CharArray, offset, len) function call on the JVM platform that should be replaced with a StringBuilder.appendRange(CharArray, startIndex, endIndex) function call.

@Deprecated annotation without 'replaceWith' argument   New in this release

Reports deprecated functions and properties that do not have the kotlin.ReplaceWith argument in its kotlin.deprecated annotation and suggests to add one based on their body.

Argument could be converted to 'Set' to improve performance   New in this release

Detects the function calls that could work faster with an argument converted to Set.

Call to 'print()' or 'println()'   New in this release

Reports usages of print or println.

Diagnostic name should be replaced   New in this release

Reports suppressions with old diagnostic names, for example @Suppress("HEADER_WITHOUT_IMPLEMENTATION").

Floating-point literal exceeds the available precision   New in this release

Reports floating-point literals that cannot be represented with the required precision using IEEE 754 Float and Double types.

Missing KDoc comments for public declarations   New in this release

Reports public declarations that do not have KDoc comments.

Public API declaration with implicit return type   New in this release

Reports public and protected functions and properties that have an implicit return type.

Redundant empty initializer block   New in this release

Reports redundant empty initializer blocks.

Last modified: 11 September 2024