-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar-project.properties
More file actions
34 lines (30 loc) · 1.9 KB
/
Copy pathsonar-project.properties
File metadata and controls
34 lines (30 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SonarQube Cloud configuration.
# Fill organization/projectKey from the Sonar UI after connecting the repo,
# then add a SONAR_TOKEN secret to the repo/org for the Sonar workflow to run.
sonar.organization=tono-lang
sonar.projectKey=tono-lang_tono
sonar.host.url=https://sonarcloud.io
sonar.sources=.
# OCaml is not analyzed by Sonar; exclude only the OCaml trees and build output.
sonar.exclusions=**/target/**,**/_build/**,**/node_modules/**,frontend/**,lsp/**,playground/src/generated/**,playground/dist/**,playground/shim/**
# Coverage import: Rust from cargo-llvm-cov (the root workspace), and the
# playground's TypeScript from vitest (both produced by the Sonar job).
sonar.rust.lcov.reportPaths=lcov.info
sonar.javascript.lcov.reportPaths=playground/coverage/lcov.info
# Kept out of the coverage metric only: generated SDKs (verified by the drift
# guard and the compile check, not unit tested), test files, and build config.
# The playground's browser-wired modules (editor wiring, DOM panels, the
# embedded-compiler facade) are exercised by the served app and the node smoke
# over the real artifacts, not unit-measurable without a DOM; the pure logic
# they orchestrate lives in tested modules (share, offsets, highlight,
# filetree, xref, mockform, modname, run).
sonar.coverage.exclusions=examples/**,**/*.test.ts,**/*.config.ts,**/*_test.go,\
playground/src/main.ts,playground/src/editor.ts,playground/src/mockui.ts,\
playground/src/tslang.ts,playground/src/locallang.ts,playground/src/compiler.ts,\
playground/src/examples.ts,playground/scripts/**
# Kept out of the duplication metric: the generated SDKs under examples/*/sdk are
# codegen output (verified by the drift guard and the compile check), inherently
# repetitive across languages and per-operation, so their duplication is not a
# code-quality signal. Hand-written example code (bespoke hooks, spec sources)
# stays measured.
sonar.cpd.exclusions=examples/**/sdk/**