# SonarQube Cloud - CI-based analysis, run by .github/workflows/sonar.yml. # # Automatic analysis (the SonarCloud GitHub App scanning on its own) was switched off for this: # it cannot run a build, so it never analysed a line of Rust - two thirds of the code - and it # could import no coverage at all. It also sent no project version, so the "previous version" # new-code period stayed anchored to the first analysis (2026-09-27) and "new code" only ever grew. # The workflow passes `sonar.projectVersion` from package.json, which is one of the five places the # version lives (CLAUDE.md) and what the previous-version period keys on, one analysis late: the # first analysis with a new version is still measured against the old period, and the next one # from the last analysis of the version before. # The project moved with the repository to the poli0981org organization on 2026-11-21. Its history # up to 1.5.0 stays in the old project, `poli0981_pipdock` in the `poli0981` organization; this one # started empty, so its first analysis of `main` is the baseline everything after it is new against. sonar.organization=poli0981org sonar.projectKey=poli0981org_pipdock sonar.projectName=pipdock sonar.sourceEncoding=UTF-8 # --- Scope ------------------------------------------------------------------------------------ # Everything tracked, as automatic analysis saw it, with tests split out. Untracked build output # (target/, node_modules/, dist/, coverage/) is already out: files .gitignore names are never # indexed. Test patterns appear twice, as sources' exclusions and as tests' inclusions, because # the two sets must be disjoint or the scanner refuses to index a file twice. sonar.sources=. sonar.tests=. sonar.test.inclusions=\ ui/src/**/*.test.ts,\ ui/src/**/*.test.tsx,\ ui/src/test/**,\ crates/*/tests/**,\ scripts/**/*.test.mjs,\ .github/scripts/**/*.test.* # Images and fonts are tracked too, and the secrets sensor read every one as UTF-8 text and warned # about each of them; nothing in them is code. sonar.exclusions=\ ui/src/**/*.test.ts,\ ui/src/**/*.test.tsx,\ ui/src/test/**,\ crates/*/tests/**,\ scripts/**/*.test.mjs,\ .github/scripts/**/*.test.*,\ **/*.png,\ **/*.ico,\ **/*.icns,\ **/*.woff2 # Fixtures are data, not code: captured engine output, and sample Python projects that are broken # on purpose so that Code Health has something to find. sonar.test.exclusions=\ crates/*/tests/fixtures/**,\ crates/*/tests/snapshots/** # --- Coverage ----------------------------------------------------------------------------------- # Rust from cargo-llvm-cov and TypeScript from vitest's v8 provider, both LCOV. Clippy's JSON is # imported as external issues; `-D warnings` in ci-rust.yml keeps it empty on any green build, so # what it adds is the finding on the line, in the PR, when that build is red. sonar.rust.lcov.reportPaths=target/lcov-rust.info sonar.rust.clippyReport.reportPaths=target/clippy.json sonar.javascript.lcov.reportPaths=coverage/lcov.info # What no test in this repository can execute, so a 0% here would measure nothing: # * xtask, scripts/ and the root *.config files are developer tooling, run by hand; # * spikes/ are the research scripts the adapters were built from (spikes/README.md); # * probe.py runs inside the user's interpreter - the Rust suite parses canned output, and only # ci-integration.yml runs it for real; # * generated.ts is `cargo run -p xtask -- bindings` output, and the two entry points mount what # the tests render directly; # * .github/ holds the workflows and the helpers they run on a runner (the Discord notifier since # 2026-11-21) - they talk to GitHub's and Discord's APIs, which no test here reaches. sonar.coverage.exclusions=\ xtask/**,\ scripts/**,\ .github/**,\ spikes/**,\ *.config.ts,\ *.config.js,\ crates/pipdock-core/examples/**,\ crates/pipdock-core/src/probe.py,\ src-tauri/build.rs,\ src-tauri/src/main.rs,\ ui/src/main.tsx,\ ui/src/ipc/generated.ts # Regenerating the bindings rewrites dozens of near-identical type declarations at once, which # would read as new duplication on the next analysis without anyone having copied anything. Test # files never count toward duplication, but the Rust sensor computed theirs anyway and logged a # warning per file saying it would be dropped. sonar.cpd.exclusions=\ ui/src/ipc/generated.ts,\ crates/*/tests/** # --- Languages ---------------------------------------------------------------------------------- # probe.py's floor and ceiling (ARCHITECTURE section 10: managed Pythons 3.10-3.14). sonar.python.version=3.10,3.11,3.12,3.13,3.14