GitNexus/sonar-project.properties
Gergő Magyar 5dd42a930a
ci: publish CLI and web coverage to SonarQube (#4033)
* ci: publish CLI and web coverage to SonarQube

* fix(ci): isolate Sonar reporting and preserve coverage on threshold failures

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-11-21 14:01:11 +00:00

42 lines
2.1 KiB
Properties

sonar.organization=abhigyanpatwari
sonar.projectKey=abhigyanpatwari_GitNexus
sonar.javascript.lcov.reportPaths=coverage/lcov.info
# Keep GitNexus's grammar loaders and build definitions in scope. The parser
# sources, native bindings below, and Leiden implementations come from upstream.
sonar.exclusions=\
**/fixtures/**,\
**/__snapshots__/**,\
gitnexus/vendor/tree-sitter-*/src/**,\
gitnexus/vendor/tree-sitter-*/grammar.js,\
gitnexus/vendor/tree-sitter-*/bindings/node/binding.cc,\
gitnexus/vendor/**/prebuilds/**,\
gitnexus/vendor/**/*.wasm,\
gitnexus/prebuilds/**,\
gitnexus/vendor/leiden/**,\
gitnexus-web/src/vendor/leiden/*.js,\
gitnexus/bench/**/results/**,\
Documentation/docs-asset/*.png,\
.history/**
# The LCOV producers instrument gitnexus/src and gitnexus-web/src. Keep
# tooling, other packages and the Vitest exclusions in issue analysis only.
sonar.coverage.exclusions=\
**/test/**,**/tests/**,**/*.test.*,**/*.spec.*,**/test_*.py,**/*.d.ts,\
.claude/**,.devcontainer/**,.github/**,.husky/**,deploy/**,eslint-rules/**,eval/**,\
gitnexus-*-plugin/**,gitnexus-cursor-integration/**,gitnexus-shared/**,gitnexus-test-setup/**,\
docker-server.mjs,eslint.config.mjs,gitnexus/vitest.config.ts,gitnexus-web/*.config.ts,\
gitnexus/bench/**,gitnexus/hooks/**,gitnexus/scripts/**,gitnexus/skills/**,gitnexus/tools/**,gitnexus/vendor/**,\
gitnexus/src/cli/index.ts,gitnexus/src/core/wiki/**,\
gitnexus-web/e2e/**,gitnexus-web/src/workers/**,gitnexus-web/src/core/lbug/**,\
gitnexus-web/src/core/tree-sitter/**,gitnexus-web/src/core/embeddings/**,gitnexus-web/src/main.tsx
# The five plugin helpers are also exempt from duplication reporting. Their
# sync tests enforce byte equality with the copies in gitnexus/hooks/claude.
sonar.cpd.exclusions=\
**/test/**,**/tests/**,gitnexus-web/e2e/**,**/*.test.*,**/*.spec.*,**/test_*.py,\
gitnexus-cursor-integration/hooks/hook-lock.cjs,\
gitnexus-cursor-integration/hooks/registry-query.cjs,\
gitnexus-factory-plugin/hooks/hook-lock.js,\
gitnexus-factory-plugin/hooks/registry-query.cjs,\
gitnexus-factory-plugin/hooks/hook-db-lock-probe.cjs