Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate OCPP 2.1 public draft messages #845

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from

Merge remote-tracking branch 'origin/main' into feature/ocpp2.1-publi…

92274c3
Select commit
Loading
Failed to load commit list.
Draft

Generate OCPP 2.1 public draft messages #845

Merge remote-tracking branch 'origin/main' into feature/ocpp2.1-publi…
92274c3
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jan 6, 2025 in 0s

53 new issues (0 max.) of at least minor severity.

Codacy 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  2
         

Clones added
============
- lib/ocpp/v21/messages/NotifyAllowedEnergyTransfer.cpp  4
- lib/ocpp/v21/messages/ClearDERControl.cpp  8
- lib/ocpp/v21/messages/BatterySwap.cpp  2
- lib/ocpp/v21/messages/GetTariffs.cpp  5
- lib/ocpp/v21/messages/AFRRSignal.cpp  10
- include/ocpp/v21/messages/GetDERControl.hpp  1
- lib/ocpp/v21/messages/AdjustPeriodicEventStream.cpp  10
- lib/ocpp/v21/messages/GetDERControl.cpp  2
- lib/ocpp/v21/messages/PullDynamicScheduleUpdate.cpp  4
- lib/ocpp/v21/messages/ClosePeriodicEventStream.cpp  1
- lib/ocpp/v21/messages/UsePriorityCharging.cpp  4
- include/ocpp/v21/messages/ClearDERControl.hpp  1
- lib/ocpp/v21/messages/NotifyDERStartStop.cpp  2
- lib/ocpp/v21/messages/SetDERControl.cpp  4
- lib/ocpp/v21/messages/VatNumberValidation.cpp  9
- lib/ocpp/v21/messages/ChangeTransactionTariff.cpp  10
- lib/ocpp/v21/messages/GetCRL.cpp  9
- lib/ocpp/v21/messages/SetDefaultTariff.cpp  8
- lib/ocpp/v21/messages/RequestBatterySwap.cpp  12
- 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/NotifyDisplayMessages.cpp  5
- lib/ocpp/v201/messages/GetTransactionStatus.cpp  2
- lib/ocpp/v201/messages/PublishFirmwareStatusNotification.cpp  6
- include/ocpp/v201/ocpp_types.hpp  2
- lib/ocpp/v201/messages/NotifyChargingLimit.cpp  4
- lib/ocpp/v201/messages/ReportChargingProfiles.cpp  1
- lib/ocpp/v201/messages/LogStatusNotification.cpp  6
- lib/ocpp/v201/messages/PublishFirmware.cpp  1
- lib/ocpp/v201/messages/NotifyCustomerInformation.cpp  1
- lib/ocpp/v201/messages/NotifyEvent.cpp  2
- lib/ocpp/v201/messages/FirmwareStatusNotification.cpp  6
- lib/ocpp/v201/messages/NotifyMonitoringReport.cpp  5
- lib/ocpp/v201/messages/NotifyReport.cpp  5
         

Clones removed
==============
+ lib/ocpp/v201/messages/DeleteCertificate.cpp  -2
+ lib/ocpp/v201/messages/GetBaseReport.cpp  -2
+ lib/ocpp/v201/messages/SetDisplayMessage.cpp  -2
+ lib/ocpp/v201/messages/SendLocalList.cpp  -2
+ lib/ocpp/v201/messages/RequestStopTransaction.cpp  -3
+ lib/ocpp/v201/messages/GetReport.cpp  -2
+ lib/ocpp/v201/messages/SetNetworkProfile.cpp  -2
+ lib/ocpp/v201/messages/GetMonitoringReport.cpp  -2
+ lib/ocpp/v201/messages/ClearedChargingLimit.cpp  -2
+ lib/ocpp/v201/messages/ClearChargingProfile.cpp  -2
+ lib/ocpp/v201/messages/UnlockConnector.cpp  -2
+ lib/ocpp/v201/messages/Reset.cpp  -3
+ lib/ocpp/v201/messages/ClearCache.cpp  -2
+ lib/ocpp/v201/messages/ChangeAvailability.cpp  -5
+ lib/ocpp/v201/messages/TriggerMessage.cpp  -5
+ lib/ocpp/v201/messages/CustomerInformation.cpp  -2
+ lib/ocpp/v201/messages/NotifyEVChargingNeeds.cpp  -2
+ lib/ocpp/v201/messages/GetChargingProfiles.cpp  -1
+ lib/ocpp/v201/messages/NotifyEVChargingSchedule.cpp  -1
+ lib/ocpp/v201/messages/GetDisplayMessages.cpp  -2
+ lib/ocpp/v201/messages/Get15118EVCertificate.cpp  -3
+ lib/ocpp/v201/messages/GetInstalledCertificateIds.cpp  -5
+ lib/ocpp/v201/messages/SetMonitoringLevel.cpp  -2
+ lib/ocpp/v201/messages/DataTransfer.cpp  -1
+ lib/ocpp/v201/messages/GetCompositeSchedule.cpp  -6
+ lib/ocpp/v201/messages/CertificateSigned.cpp  -2
+ lib/ocpp/v201/messages/SetChargingProfile.cpp  -2
+ lib/ocpp/v201/messages/ClearDisplayMessage.cpp  -1
+ lib/ocpp/v201/messages/InstallCertificate.cpp  -2
+ lib/ocpp/v201/messages/UpdateFirmware.cpp  -1
+ lib/ocpp/v201/messages/GetCertificateStatus.cpp  -5
+ lib/ocpp/v201/messages/GetLog.cpp  -5
+ lib/ocpp/v201/messages/RequestStartTransaction.cpp  -6
+ lib/ocpp/v201/messages/SignCertificate.cpp  -1
+ lib/ocpp/v201/messages/ReserveNow.cpp  -2
+ lib/ocpp/v201/messages/BootNotification.cpp  -2
+ lib/ocpp/v201/messages/CancelReservation.cpp  -2
+ lib/ocpp/v201/messages/SetMonitoringBase.cpp  -2
         

See the complete overview on Codacy

Annotations

Check notice on line 173 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L173

struct member 'TariffTimePrice::priceMinute' is never used.

Check notice on line 190 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L190

struct member 'TaxRate::tax' is never used.

Check notice on line 265 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L265

struct member 'TariffFixed::fixedFee' is never used.

Check notice on line 337 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L337

struct member 'BatteryData::soC' is never used.

Check notice on line 485 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L485

struct member 'V2XFreqWattPoint::power' is never used.

Check notice on line 567 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L567

struct member 'DERCurvePoints::y' is never used.

Check notice on line 630 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L630

struct member 'DERCurve::curveData' is never used.

Check notice on line 656 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L656

struct member 'DERCurveGet::isSuperseded' is never used.

Check notice on line 671 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L671

struct member 'EnterService::highVoltage' is never used.

Check notice on line 674 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L674

struct member 'EnterService::lowFreq' is never used.

Check notice on line 707 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L707

struct member 'FixedPF::displacement' is never used.

Check notice on line 708 in include/ocpp/v201/ocpp_types.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v201/ocpp_types.hpp#L708

struct member 'FixedPF::excitation' is never used.

Check notice on line 21 in include/ocpp/v21/messages/AdjustPeriodicEventStream.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/AdjustPeriodicEventStream.hpp#L21

struct member 'AdjustPeriodicEventStreamRequest::id' is never used.

Check notice on line 21 in include/ocpp/v21/messages/BatterySwap.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/BatterySwap.hpp#L21

struct member 'BatterySwapRequest::batteryData' is never used.

Check notice on line 21 in include/ocpp/v21/messages/ClearDERControl.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/ClearDERControl.hpp#L21

struct member 'ClearDERControlRequest::isDefault' is never used.

Check notice on line 42 in include/ocpp/v21/messages/ClearTariffs.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/ClearTariffs.hpp#L42

struct member 'ClearTariffsResponse::clearTariffsResult' is never used.

Check notice on line 22 in include/ocpp/v21/messages/GetCRL.hpp

See this annotation in the file changed.

@codacy-production 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/GetDERControl.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/GetDERControl.hpp#L21

struct member 'GetDERControlRequest::isDefault' is never used.

Check notice on line 21 in include/ocpp/v21/messages/NotifyAllowedEnergyTransfer.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/NotifyAllowedEnergyTransfer.hpp#L21

struct member 'NotifyAllowedEnergyTransferRequest::allowedEnergyTransfer' is never used.

Check notice on line 20 in include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp#L20

struct member 'NotifyPeriodicEventStreamRequest::data' is never used.

Check notice on line 21 in include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/NotifyPeriodicEventStream.hpp#L21

struct member 'NotifyPeriodicEventStreamRequest::id' is never used.

Check notice on line 21 in include/ocpp/v21/messages/NotifyPriorityCharging.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/NotifyPriorityCharging.hpp#L21

struct member 'NotifyPriorityChargingRequest::activated' is never used.

Check notice on line 20 in include/ocpp/v21/messages/NotifyQRCodeScanned.hpp

See this annotation in the file changed.

@codacy-production 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

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/NotifyQRCodeScanned.hpp#L21

struct member 'NotifyQRCodeScannedRequest::timeout' is never used.

Check notice on line 21 in include/ocpp/v21/messages/SetDefaultTariff.hpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

include/ocpp/v21/messages/SetDefaultTariff.hpp#L21

struct member 'SetDefaultTariffRequest::evseId' is never used.