Skip to content

Commit

Permalink
excluding dockerfiles from sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289029 committed Apr 6, 2024
1 parent 71fce0a commit 1cd8873
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion record/historial-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1cd8873

Please sign in to comment.