Metrics

Complexity Report

Findings

Total: 143

complexity: 12

CyclomaticComplexMethod: 2 Prefer splitting up complex methods into smaller, easier to test methods. Documentation
LongMethod: 7 One method should have one responsibility. Long methods tend to handle many things at once. Prefer smaller methods to make them easier to understand. Documentation
LongParameterList: 2 The more parameters a function has the more complex it is. Long parameter lists are often used to control complex algorithms and violate the Single Responsibility Principle. Prefer functions with short parameter lists. Documentation
TooManyFunctions: 1 Too many functions inside a/an file/class/object/interface always indicate a violation of the single responsibility principle. Maybe the file/class/object/interface wants to manage too many things at once. Extract functionality which clearly belongs together. Documentation

exceptions: 6

SwallowedException: 3 The caught exception is swallowed. The original exception could be lost. Documentation
TooGenericExceptionCaught: 3 The caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled. Documentation

naming: 17

FunctionNaming: 15 Function names should follow the naming convention set in the configuration. Documentation
MatchingDeclarationName: 2 If a source file contains only a single non-private top-level class or object, the file name should reflect the case-sensitive name plus the .kt extension. Documentation

potential-bugs: 1

ImplicitDefaultLocale: 1 Implicit default locale used for string processing. Consider using explicit locale. Documentation

style: 107

MagicNumber: 57 Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Documentation
MaxLineLength: 21 Line detected, which is longer than the defined maximum line length in the code style. Documentation
NewLineAtEndOfFile: 12 Checks whether files end with a line separator. Documentation
UnusedParameter: 1 Function parameter is unused and should be removed. Documentation
UnusedPrivateMember: 2 Private function is unused and should be removed. Documentation
UnusedPrivateProperty: 1 Property is unused and should be removed. Documentation
WildcardImport: 13 Wildcard imports should be replaced with imports using fully qualified class names. Wildcard imports can lead to naming conflicts. A library update can introduce naming clashes with your classes which results in compilation errors. Documentation
generated with detekt version 1.23.1 on 2025-07-04 17:54:42 UTC.