feat: Add handling for TxDefaultProfile #6
reviewdog [detekt] report
reported by reviewdog 🐶
Findings (0)
Filtered Findings (73)
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/createchargepoint/ChargePointForm.kt|46 col 5| The function ChargePointForm is too long (222). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/components/ChargePointLogView.kt|29 col 5| The function chargePointLogComponent is too long (64). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/components/security/SecurityEventComponent.kt|25 col 17| The function securityEventComponent is too long (78). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/components/AuthorizeComponent.kt|28 col 14| The function authorizeComponent is too long (68). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/components/ChargePointCard.kt|180 col 13| The function ChargePointDeleteButton is too long (61). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/components/pbm/PbmDialog.kt|26 col 5| The function PbmDialog is too long (78). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/screens/ChargePointPage.kt|78 col 13| The function innerChargePointPage is too long (105). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/SendMessageWindow.kt|253 col 5| The function defaultPayload is too long (85). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/SendMessageWindow.kt|106 col 22| The function SendMessageWindow is too long (140). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/SendMessageWindow.kt|99 col 7| The file name 'SendMessageWindow' does not match the name of the single top-level declaration 'SendMessageWindowViewModel'.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/EditMessageWindow.kt|46 col 22| The function EditMessageWindow is too long (66). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/EditMessageWindow.kt|40 col 7| The file name 'EditMessageWindow' does not match the name of the single top-level declaration 'EditMessageWindowViewModel'.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/EditMessageWindow.kt|66 col 13| This comment contains 'TODO:' that has been defined as forbidden.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/EditMessageWindow.kt|66 col 13| Forbidden TODO todo marker in comment, please do the changes.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/view/BasePage.kt|36 col 5| The function BasePage is too long (86). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepointconnector/view/ConnectorStateView.kt|25 col 17| The function ConnectorStateView is too long (81). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepointconnector/view/ConnectorCard.kt|45 col 5| The function ConnectorCard is too long (95). The maximum length is 60.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/view/VehicleView.kt|34 col 5| The function VehicleView is too long (154). The maximum length is 60.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/view/VehicleLogView.kt|26 col 5| The function VehicleLogView is too long (62). The maximum length is 60.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|124 col 22| The caught exception is swallowed. The original exception could be lost.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|181 col 18| The caught exception is swallowed. The original exception could be lost.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|12 col 1| Wildcard import
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|13 col 1| Wildcard import
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|14 col 1| Wildcard import
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|15 col 1| Wildcard import
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|16 col 1| Wildcard import
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|12 col 1| io.ktor.client.* is a wildcard import. Replace it with fully qualified imports.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|13 col 1| io.ktor.client.engine.cio.* is a wildcard import. Replace it with fully qualified imports.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|14 col 1| io.ktor.client.plugins.websocket.* is a wildcard import. Replace it with fully qualified imports.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|15 col 1| io.ktor.client.request.* is a wildcard import. Replace it with fully qualified imports.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/connection/ChargePointConnection.kt|16 col 1| io.ktor.websocket.* is a wildcard import. Replace it with fully qualified imports.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/ChargePointManager.kt|252 col 18| The caught exception is swallowed. The original exception could be lost.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/interceptor/Interception.kt|60 col 22| The caught exception is swallowed. The original exception could be lost.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/view/VehicleExtensions.kt|20 col 14| The caught exception is swallowed. The original exception could be lost.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/eichrecht/EichrechtSignatureService.kt|133 col 18| The caught exception is swallowed. The original exception could be lost.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/eichrecht/EichrechtSignatureService.kt|148 col 18| The caught exception is swallowed. The original exception could be lost.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|205 col 17| Do not print a stack trace. These debug statements should be removed or replaced with a logger.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|86 col 22| The caught exception is swallowed. The original exception could be lost.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|13 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|14 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|15 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|16 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|17 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|18 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|19 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|20 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|21 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|92 col 25| Function getUpdateFromGitHub has 5 return statements which exceeds the limit of 4.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|13 col 1| io.ktor.client.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|14 col 1| io.ktor.client.call.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|15 col 1| io.ktor.client.engine.cio.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|16 col 1| io.ktor.client.plugins.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|17 col 1| io.ktor.client.plugins.contentnegotiation.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|18 col 1| io.ktor.client.plugins.logging.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|19 col 1| io.ktor.client.request.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|20 col 1| io.ktor.client.statement.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt|21 col 1| io.ktor.serialization.jackson.* is a wildcard import. Replace it with fully qualified imports.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/profile/FirmwareManagementHandler.kt|14 col 1| Wildcard import
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/profile/FirmwareManagementHandler.kt|14 col 1| io.ktor.http.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|9 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|10 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|11 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|12 col 1| Wildcard import
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|9 col 1| io.ktor.client.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|10 col 1| io.ktor.client.plugins.logging.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|11 col 1| io.ktor.client.request.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/vehicle/VehicleService.kt|12 col 1| io.ktor.http.* is a wildcard import. Replace it with fully qualified imports.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/common/components/ViewExtensions.kt|36 col 12| String.format("%.1f", this) uses implicitly default locale for string formatting.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/common/components/ViewExtensions.kt|41 col 12| String.format("%.2f", this) uses implicitly default locale for string formatting.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/v16/profile/SmartChargingClientHandler.kt|136 col 25| Function setChargingProfileForTransaction has 9 return statements which exceeds the limit of 4.
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/common/util/ChargingProfileCalculator.kt|18 col 17| Function getAmps has 5 return statements which exceeds the limit of 4.
common/src/jvmMain/kotlin/com/monta/ocpp/emulator/common/components/FormInput.kt|73 col 13| Private function FormInput_Preview
is unused.
v201/src/jvmMain/kotlin/com/monta/ocpp/emulator/v201/service/ocpp/OcppClientEventsHandler.kt|18 col 17| onDisconnect is returning a constant. Prefer declaring a constant instead.