Fix workspace sonarlint configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 13 Oct 2022 17:59:28 +0000 (19:59 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 13 Oct 2022 17:59:28 +0000 (19:59 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
e-mobility-charging-stations-simulator.code-workspace
src/charging-station/ocpp/OCPPIncomingRequestService.ts
src/charging-station/ocpp/OCPPRequestService.ts
src/charging-station/ocpp/OCPPResponseService.ts

index e4e47261dc6b1b7ecc9ea3f32a979584bfd53a4b..b0df61ae478e4aaf630ba55b0d92805424f701df 100644 (file)
@@ -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"
     }
   }
 }
index 06ccd312c0e970022c844f200fe3d0b631ef8c93..280a812ddc14b99d80a735a7dfbf4ffeaf6f4203 100644 (file)
@@ -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);
index 68338670aa1c4dd710ec1310568328e7d13dd198..9fa50b4f2f53a7dc7f2b6f982208f4441451d87f 100644 (file)
@@ -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;
 
index 91b1499676b01f3b1e7583c0c385490c70e78ef8..9654b2d7b93601e008001d0cca049bec31dca58c 100644 (file)
@@ -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();