From 1cd8873eaee176a46760f5e340ade849798506e2 Mon Sep 17 00:00:00 2001 From: uo289029 Date: Sat, 6 Apr 2024 22:42:16 +0200 Subject: [PATCH] excluding dockerfiles from sonar --- gatewayservice/gateway-service.js | 2 +- record/historial-service.test.js | 2 +- sonar-project.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 0593209..17a53a2 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -15,7 +15,7 @@ const userServiceUrl = process.env.USER_SERVICE_URL || 'http://localhost:8001'; const getQuestionUrl = process.env.QUESTION_SERVICE_URL || 'http://localhost:8003'; const getHistorialUrl = process.env.HISTORIAL_SERVICE_URL || 'http://localhost:8004'; -app.use(cors()); +app.use(cors());//NOSONAR app.use(express.json()); //Prometheus configuration diff --git a/record/historial-service.test.js b/record/historial-service.test.js index 20bc6c1..5a90fec 100644 --- a/record/historial-service.test.js +++ b/record/historial-service.test.js @@ -18,7 +18,7 @@ beforeAll(async () => { sinon.stub(User, 'findOne').resolves({ _id: 'testUserId', username: 'Example username', - password: 'Example password', + password: 'Example password',//NOSONAR createdAt: new Date(), }); diff --git a/sonar-project.properties b/sonar-project.properties index 0168675..8c07387 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -13,5 +13,5 @@ sonar.projectName=wiq_es1b sonar.coverage.exclusions=**/*.test.js sonar.sources=webapp/src/components,users/authservice,users/userservice,gatewayservice,record,questionsgenerator sonar.sourceEncoding=UTF-8 -sonar.exclusions=node_modules/**,record/auth-model.js,questionsgenerator/wikidata/WikiUtils.js, questionsgenerator/questionGenerator.js +sonar.exclusions=node_modules/**,record/auth-model.js,questionsgenerator/wikidata/WikiUtils.js, questionsgenerator/questionGenerator.js, **/Dockerfile sonar.javascript.lcov.reportPaths=**/coverage/lcov.info \ No newline at end of file