diff --git a/sonar-project.properties b/sonar-project.properties index ad689445a1..c03af40790 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -18,6 +18,14 @@ sonar.exclusions=crates/vendor/**,crates/api_clients/grok_consumer_client/src/cr # S4347 (predictable seed): DeterministicRng is the fixed-seed generator for tests and dev seed # tools; being reproducible is its purpose. -sonar.issue.ignore.multicriteria=deterministic_rng +# S2187 (file without tests): the API tests build their cases with the shared helpers in +# test/app/Classes/ApiManager/utils/, which call `it` themselves. +# S2819 (message origin): a dedicated worker's `message` events come only from the page that +# started it; they carry no origin to check. +sonar.issue.ignore.multicriteria=deterministic_rng,api_test_helpers,worker_messages sonar.issue.ignore.multicriteria.deterministic_rng.ruleKey=rust:S4347 sonar.issue.ignore.multicriteria.deterministic_rng.resourceKey=crates/schema/public/tokens/src/deterministic_rng.rs +sonar.issue.ignore.multicriteria.api_test_helpers.ruleKey=typescript:S2187 +sonar.issue.ignore.multicriteria.api_test_helpers.resourceKey=frontend/apps/artcraft/test/app/Classes/ApiManager/** +sonar.issue.ignore.multicriteria.worker_messages.ruleKey=typescript:S2819 +sonar.issue.ignore.multicriteria.worker_messages.resourceKey=**/*.worker.ts