mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
chore(sonar): scope shared specs as tests and drop a stale exclusion
This commit is contained in:
@@ -6,7 +6,8 @@ sonar.sourceEncoding=UTF-8
|
||||
sonar.sources=client/src,server/src,shared/src,plugin-sdk/src
|
||||
|
||||
# Tests — dedicated test dirs per package, plus co-located client tests in src
|
||||
sonar.tests=server/tests,client/tests,client/e2e,client/src,plugin-sdk/test
|
||||
# and co-located shared schema/sanitize/i18n specs in shared/src
|
||||
sonar.tests=server/tests,client/tests,client/e2e,client/src,shared/src,plugin-sdk/test
|
||||
sonar.test.inclusions=\
|
||||
server/tests/**/*.test.ts,\
|
||||
client/tests/**/*.test.ts,\
|
||||
@@ -14,6 +15,7 @@ sonar.test.inclusions=\
|
||||
client/e2e/**/*.spec.ts,\
|
||||
client/src/**/*.test.ts,\
|
||||
client/src/**/*.test.tsx,\
|
||||
shared/src/**/*.spec.ts,\
|
||||
plugin-sdk/test/**/*.test.ts
|
||||
|
||||
# Keep generated output and test files out of source analysis
|
||||
@@ -25,10 +27,12 @@ sonar.exclusions=\
|
||||
client/dev-dist/**,\
|
||||
**/*.test.ts,\
|
||||
**/*.test.tsx,\
|
||||
**/*.spec.ts,\
|
||||
**/*.d.ts
|
||||
|
||||
# Coverage — lcov paths relative to repo root.
|
||||
# shared/ has no tests yet and plugin-sdk doesn't emit lcov; see coverage exclusions.
|
||||
# shared/ and plugin-sdk/ have test suites but don't emit lcov (no coverage
|
||||
# reporter configured); their sources are coverage-excluded below until they do.
|
||||
sonar.javascript.lcov.reportPaths=\
|
||||
server/coverage/lcov.info,\
|
||||
client/coverage/lcov.info
|
||||
@@ -37,7 +41,6 @@ sonar.javascript.lcov.reportPaths=\
|
||||
sonar.coverage.exclusions=\
|
||||
server/src/index.ts,\
|
||||
server/src/config.ts,\
|
||||
server/src/scheduler.ts,\
|
||||
server/src/db/database.ts,\
|
||||
server/src/db/migrations.ts,\
|
||||
server/src/db/seeds.ts,\
|
||||
|
||||
Reference in New Issue
Block a user