Skip to content

RpcApi: clang-format types header

6945661
Select commit
Loading
Failed to load commit list.
Open

RpcApi: add new JSON RPC API module #1583

RpcApi: clang-format types header
6945661
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jan 14, 2026 in 0s

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

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 160
           

Complexity increasing per file
==============================
- modules/API/RpcApi/server/WebsocketServer.cpp  43
- modules/API/RpcApi/helpers/LimitDecimalPlaces.cpp  7
- modules/API/RpcApi/tests/helpers/RequestHandlerDummy.cpp  11
- modules/API/RpcApi/rpc/notifications/ChargePoint.cpp  2
- modules/API/RpcApi/tests/server/WebsocketServerTests.cpp  12
- modules/API/RpcApi/rpc/methods/Api.cpp  10
- modules/API/RpcApi/rpc/methods/Api.hpp  1
- modules/API/RpcApi/rpc/methods/Evse.cpp  37
- modules/API/RpcApi/rpc/RpcHandler.cpp  46
- modules/API/RpcApi/server/TransportInterface.hpp  1
- modules/API/RpcApi/rpc/RpcHandler.hpp  10
- modules/API/RpcApi/helpers/ErrorHandler.cpp  14
- modules/API/RpcApi/helpers/Conversions.cpp  56
- modules/API/RpcApi/rpc/notifications/Evse.cpp  5
- modules/API/RpcApi/rpc/methods/ChargePoint.hpp  1
- modules/API/RpcApi/data/DataStore.hpp  4
- modules/API/RpcApi/tests/helpers/WebSocketTestClient.cpp  35
- modules/API/RpcApi/rpc/methods/Evse.hpp  1
- modules/API/RpcApi/RpcApiRequestHandler.cpp  48
- modules/API/RpcApi/tests/helpers/JsonRpcUtils.hpp  9
- modules/API/RpcApi/data/DataStore.cpp  65
- modules/API/RpcApi/tests/rpc/RpcHandlerTests.cpp  23
- modules/API/RpcApi/server/TransportInterface.cpp  3
- modules/API/RpcApi/tests/helpers/WebSocketTestClient.hpp  8
- modules/API/RpcApi/data/GenericInfoStore.hpp  10
- modules/API/RpcApi/data/SessionInfo.cpp  49
- modules/API/RpcApi/rpc/methods/ChargePoint.cpp  5
- modules/API/RpcApi/tools/python-client-gui/everest-json-rpc-websocket-client.py  48
- modules/API/RpcApi/RpcApi.hpp  1
- modules/API/RpcApi/RpcApi.cpp  72
- modules/API/RpcApi/data/SessionInfo.hpp  1
- modules/API/RpcApi/types/json_rpc_api/json_rpc_api.hpp  450
         

Clones added
============
- modules/API/API/API.hpp  2
- modules/API/RpcApi/tests/helpers/RequestHandlerDummy.hpp  1
- modules/API/RpcApi/server/WebsocketServer.cpp  2
- modules/API/RpcApi/tests/helpers/RequestHandlerDummy.cpp  1
- modules/API/RpcApi/RpcApiRequestHandler.hpp  1
- modules/API/RpcApi/tests/server/WebsocketServerTests.cpp  2
- modules/API/RpcApi/RpcApiRequestHandler.cpp  18
- modules/API/RpcApi/tests/rpc/RpcHandlerTests.cpp  19
- modules/API/RpcApi/data/SessionInfo.cpp  7
- modules/API/RpcApi/RpcApi.cpp  5
- modules/API/RpcApi/data/SessionInfo.hpp  2
- modules/API/RpcApi/types/json_rpc_api/json_rpc_api.hpp  85
         

See the complete overview on Codacy

Annotations

Check warning on line 8 in modules/API/RpcApi/RpcApi.cpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.cpp#L8

Include file: <cmath> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 14 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L14

Include file: <generated/interfaces/empty/Implementation.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 17 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L17

Include file: <generated/interfaces/charger_information/Interface.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 19 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L19

Include file: <generated/interfaces/external_energy_limits/Interface.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 27 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L27

Include file: <types/json_rpc_api/json_rpc_api.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 34 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L34

struct member 'Conf::websocket_enabled' is never used.

Check warning on line 35 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L35

struct member 'Conf::websocket_port' is never used.

Check warning on line 37 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L37

struct member 'Conf::websocket_tls_enabled' is never used.

Check warning on line 39 in modules/API/RpcApi/RpcApi.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApi.hpp#L39

struct member 'Conf::max_decimal_places_other' is never used.

Check warning on line 4 in modules/API/RpcApi/RpcApiRequestHandler.cpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApiRequestHandler.cpp#L4

Include file: <everest/external_energy_limits/external_energy_limits.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 6 in modules/API/RpcApi/RpcApiRequestHandler.cpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApiRequestHandler.cpp#L6

Include file: <utils/date.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 6 in modules/API/RpcApi/RpcApiRequestHandler.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApiRequestHandler.hpp#L6

Include file: <generated/interfaces/error_history/Interface.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 41 in modules/API/RpcApi/RpcApiRequestHandler.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApiRequestHandler.hpp#L41

class member 'RpcApiRequestHandler::evse_managers' is never used.

Check warning on line 42 in modules/API/RpcApi/RpcApiRequestHandler.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/RpcApiRequestHandler.hpp#L42

class member 'RpcApiRequestHandler::evse_energy_sink' is never used.

Check warning on line 8 in modules/API/RpcApi/data/DataStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/DataStore.hpp#L8

Include file: <atomic> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 10 in modules/API/RpcApi/data/DataStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/DataStore.hpp#L10

Include file: <condition_variable> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 11 in modules/API/RpcApi/data/DataStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/DataStore.hpp#L11

Include file: <everest/logging.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 63 in modules/API/RpcApi/data/DataStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/DataStore.hpp#L63

class member 'EVSEStatusStore::field_status' is never used.

Check warning on line 67 in modules/API/RpcApi/data/DataStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/DataStore.hpp#L67

class member 'EVSEStatusStore::requested_current_limit' is never used.

Check warning on line 68 in modules/API/RpcApi/data/DataStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/DataStore.hpp#L68

class member 'EVSEStatusStore::configured_current_limit' is never used.

Check warning on line 6 in modules/API/RpcApi/data/GenericInfoStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/GenericInfoStore.hpp#L6

Include file: <atomic> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 7 in modules/API/RpcApi/data/GenericInfoStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/GenericInfoStore.hpp#L7

Include file: <functional> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 8 in modules/API/RpcApi/data/GenericInfoStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/GenericInfoStore.hpp#L8

Include file: <mutex> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 9 in modules/API/RpcApi/data/GenericInfoStore.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/GenericInfoStore.hpp#L9

Include file: <nlohmann/json.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 12 in modules/API/RpcApi/data/SessionInfo.hpp

See this annotation in the file changed.

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

modules/API/RpcApi/data/SessionInfo.hpp#L12

Include file: <generated/types/evse_manager.hpp> not found. Please note: Cppcheck does not need standard library headers to get proper results.