From 012ae1a9ba663125ec972fa560bb9ee3691aa57a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 13 Oct 2022 19:59:28 +0200 Subject: [PATCH] Fix workspace sonarlint configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- e-mobility-charging-stations-simulator.code-workspace | 4 ++-- src/charging-station/ocpp/OCPPIncomingRequestService.ts | 2 +- src/charging-station/ocpp/OCPPRequestService.ts | 2 +- src/charging-station/ocpp/OCPPResponseService.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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(); -- 2.34.1