From: Jérôme Benoit Date: Thu, 13 Oct 2022 17:59:28 +0000 (+0200) Subject: Fix workspace sonarlint configuration X-Git-Tag: v1.1.82~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=012ae1a9ba663125ec972fa560bb9ee3691aa57a;p=e-mobility-charging-stations-simulator.git Fix workspace sonarlint configuration Signed-off-by: Jérôme Benoit --- diff --git a/e-mobility-charging-stations-simulator.code-workspace b/e-mobility-charging-stations-simulator.code-workspace index e4e47261..b0df61ae 100644 --- a/e-mobility-charging-stations-simulator.code-workspace +++ b/e-mobility-charging-stations-simulator.code-workspace @@ -14,8 +14,8 @@ }, "settings": { "sonarlint.connectedMode.project": { - "connectionId": "sonar-tools-sap", - "projectKey": "e-mobility-cpo" + "connectionId": "sap-1", + "projectKey": "SAP_e-mobility-charging-stations-simulator" } } } diff --git a/src/charging-station/ocpp/OCPPIncomingRequestService.ts b/src/charging-station/ocpp/OCPPIncomingRequestService.ts index 06ccd312..280a812d 100644 --- a/src/charging-station/ocpp/OCPPIncomingRequestService.ts +++ b/src/charging-station/ocpp/OCPPIncomingRequestService.ts @@ -17,7 +17,7 @@ const moduleName = 'OCPPIncomingRequestService'; export default abstract class OCPPIncomingRequestService { private static instance: OCPPIncomingRequestService | null = null; protected asyncResource: AsyncResource; - private ajv: Ajv; + private readonly ajv: Ajv; protected constructor() { this.asyncResource = new AsyncResource(moduleName); diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 68338670..9fa50b4f 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -28,7 +28,7 @@ const moduleName = 'OCPPRequestService'; export default abstract class OCPPRequestService { private static instance: OCPPRequestService | null = null; - private ajv: Ajv; + private readonly ajv: Ajv; private readonly ocppResponseService: OCPPResponseService; diff --git a/src/charging-station/ocpp/OCPPResponseService.ts b/src/charging-station/ocpp/OCPPResponseService.ts index 91b14996..9654b2d7 100644 --- a/src/charging-station/ocpp/OCPPResponseService.ts +++ b/src/charging-station/ocpp/OCPPResponseService.ts @@ -13,7 +13,7 @@ const moduleName = 'OCPPResponseService'; export default abstract class OCPPResponseService { private static instance: OCPPResponseService | null = null; - private ajv: Ajv; + private readonly ajv: Ajv; protected constructor() { this.ajv = new Ajv();