From a06c9c905748d60798e52d82cfab2c1d917e9c1d Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Fri, 6 Feb 2026 17:06:39 +0000 Subject: [PATCH] sonar and other files --- .env.example | 7 +++++++ .eslintrc.json | 15 +++++++++++++++ sonar-project.properties | 14 ++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .env.example create mode 100644 .eslintrc.json create mode 100644 sonar-project.properties diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..9eb63e0 --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +# Backend Service Environment Variables +PORT=3000 +DB_HOST=localhost +DB_PORT=3306 +DB_USER=root +DB_PASSWORD=rootpass +DB_NAME=inventory diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..eae80e9 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,15 @@ +{ + "env": { + "node": true, + "es2021": true, + "jest": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "ecmaVersion": "latest" + }, + "rules": { + "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "no-console": "off" + } +} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..a499439 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,14 @@ +sonar.projectKey=inventory-backend +sonar.projectName=Inventory Backend Service +sonar.projectVersion=1.0 + +# Source and test paths +sonar.sources=src +sonar.tests=tests +sonar.javascript.lcov.reportPaths=coverage/lcov.info + +# Exclusions +sonar.exclusions=node_modules/**,coverage/**,tests/** + +# Quality gate +sonar.qualitygate.wait=true