Generate OCPP 2.1 public draft messages #845
53 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 4
- Added 53
Complexity increasing per file
==============================
- src/code_generator/common/generate_cpp.py 1
Clones added
============
- lib/ocpp/v21/messages/NotifyPeriodicEventStream.cpp 14
- lib/ocpp/v21/messages/NotifyAllowedEnergyTransfer.cpp 5
- lib/ocpp/v21/messages/ClearDERControl.cpp 11
- lib/ocpp/v21/messages/BatterySwap.cpp 2
- lib/ocpp/v21/messages/NotifySettlement.cpp 1
- lib/ocpp/v21/messages/GetTariffs.cpp 11
- lib/ocpp/v21/messages/AFRRSignal.cpp 14
- include/ocpp/v21/messages/GetDERControl.hpp 1
- lib/ocpp/v21/messages/AdjustPeriodicEventStream.cpp 14
- lib/ocpp/v21/messages/GetDERControl.cpp 4
- lib/ocpp/v21/messages/ClosePeriodicEventStream.cpp 15
- lib/ocpp/v21/messages/UsePriorityCharging.cpp 5
- include/ocpp/v21/messages/ClearDERControl.hpp 1
- lib/ocpp/v21/messages/NotifyDERStartStop.cpp 3
- lib/ocpp/v21/messages/SetDERControl.cpp 12
- lib/ocpp/v21/messages/VatNumberValidation.cpp 7
- lib/ocpp/v21/messages/ChangeTransactionTariff.cpp 11
- lib/ocpp/v21/messages/GetCRL.cpp 13
- lib/ocpp/v21/messages/SetDefaultTariff.cpp 9
- lib/ocpp/v21/messages/RequestBatterySwap.cpp 16
- tests/lib/ocpp/v201/test_composite_schedule.cpp 2
- tests/lib/ocpp/v201/test_charge_point.cpp 1
- tests/lib/ocpp/v201/test_smart_charging_handler.cpp 2
- lib/ocpp/v201/messages/PublishFirmwareStatusNotification.cpp 2
- include/ocpp/v201/ocpp_types.hpp 2
- lib/ocpp/v201/messages/LogStatusNotification.cpp 2
- lib/ocpp/v201/messages/NotifyEVChargingSchedule.cpp 1
- lib/ocpp/v201/messages/FirmwareStatusNotification.cpp 2
- lib/ocpp/v201/messages/RequestStartTransaction.cpp 1
Clones removed
==============
+ lib/ocpp/v201/messages/ClearedChargingLimit.cpp -2
+ lib/ocpp/v201/messages/TriggerMessage.cpp -3
+ lib/ocpp/v201/messages/NotifyEVChargingNeeds.cpp -1
+ lib/ocpp/v201/messages/ReserveNow.cpp -1
See the complete overview on Codacy
Annotations
Check notice on line 190 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L190
struct member 'TaxRate::tax' is never used.
Check notice on line 235 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L235
struct member 'TariffEnergy::prices' is never used.
Check notice on line 337 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L337
struct member 'BatteryData::soC' is never used.
Check notice on line 338 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L338
struct member 'BatteryData::soH' is never used.
Check notice on line 484 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L484
struct member 'V2XFreqWattPoint::frequency' is never used.
Check notice on line 630 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L630
struct member 'DERCurve::curveData' is never used.
Check notice on line 672 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L672
struct member 'EnterService::lowVoltage' is never used.
Check notice on line 674 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L674
struct member 'EnterService::lowFreq' is never used.
Check notice on line 708 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L708
struct member 'FixedPF::excitation' is never used.
Check notice on line 778 in include/ocpp/v201/ocpp_types.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v201/ocpp_types.hpp#L778
struct member 'FreqDroop::underFreq' is never used.
Check notice on line 24 in include/ocpp/v21/messages/BatterySwap.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/BatterySwap.hpp#L24
struct member 'BatterySwapRequest::requestId' is never used.
Check notice on line 22 in include/ocpp/v21/messages/GetCRL.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/GetCRL.hpp#L22
struct member 'GetCRLRequest::requestId' is never used.
Check notice on line 21 in include/ocpp/v21/messages/NotifyAllowedEnergyTransfer.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyAllowedEnergyTransfer.hpp#L21
struct member 'NotifyAllowedEnergyTransferRequest::allowedEnergyTransfer' is never used.
Check notice on line 21 in include/ocpp/v21/messages/NotifyCRL.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyCRL.hpp#L21
struct member 'NotifyCRLRequest::requestId' is never used.
Check notice on line 23 in include/ocpp/v21/messages/NotifyDERAlarm.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyDERAlarm.hpp#L23
struct member 'NotifyDERAlarmRequest::extraInfo' is never used.
Check notice on line 21 in include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp#L21
struct member 'NotifyPeriodicEventStreamRequest::data' is never used.
Check notice on line 22 in include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp#L22
struct member 'NotifyPeriodicEventStreamRequest::id' is never used.
Check notice on line 23 in include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp#L23
struct member 'NotifyPeriodicEventStreamRequest::pending' is never used.
Check notice on line 20 in include/ocpp/v21/messages/NotifyQRCodeScanned.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyQRCodeScanned.hpp#L20
struct member 'NotifyQRCodeScannedRequest::evseId' is never used.
Check notice on line 21 in include/ocpp/v21/messages/NotifyQRCodeScanned.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifyQRCodeScanned.hpp#L21
struct member 'NotifyQRCodeScannedRequest::timeout' is never used.
Check notice on line 23 in include/ocpp/v21/messages/NotifySettlement.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/NotifySettlement.hpp#L23
struct member 'NotifySettlementRequest::settlementAmount' is never used.
Check notice on line 21 in include/ocpp/v21/messages/PullDynamicScheduleUpdate.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/PullDynamicScheduleUpdate.hpp#L21
struct member 'PullDynamicScheduleUpdateRequest::chargingProfileId' is never used.
Check notice on line 21 in include/ocpp/v21/messages/SetDERControl.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/SetDERControl.hpp#L21
struct member 'SetDERControlRequest::isDefault' is never used.
Check notice on line 21 in include/ocpp/v21/messages/SetDefaultTariff.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/SetDefaultTariff.hpp#L21
struct member 'SetDefaultTariffRequest::evseId' is never used.
Check notice on line 21 in include/ocpp/v21/messages/UpdateDynamicSchedule.hpp
codacy-production / Codacy Static Code Analysis
include/ocpp/v21/messages/UpdateDynamicSchedule.hpp#L21
struct member 'UpdateDynamicScheduleRequest::chargingProfileId' is never used.