diff --git a/.gitignore b/.gitignore index 40b878db..bce6cc0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules/ \ No newline at end of file +node_modules/ +.scannerwork/ \ No newline at end of file diff --git a/backend/sonar-project.properties b/backend/sonar-project.properties new file mode 100644 index 00000000..ffa9fa96 --- /dev/null +++ b/backend/sonar-project.properties @@ -0,0 +1 @@ +sonar.javascript.lcov.reportPaths=./coverage/lcov.info \ No newline at end of file diff --git a/backend/src/index.ts b/backend/src/index.ts index 48b6a2b6..7ed2523b 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -20,6 +20,7 @@ import { requestsRouter } from './routes/requests.route'; import { adminRouter } from './routes/admin.route'; import { reportsRouter } from './routes/report.route'; const app: Express = express() +app.disable("x-powered-by"); // Add Config app.set("trust proxy", 1);