sonar: helper-built API tests and dedicated worker messages

This commit is contained in:
Dylan M. Taylor committed 2026-11-10 23:43:36 +00:00
1 parent 4982e6e3aa
commit aedbbc7eac
1 file changed
+9 -1
+9 -1
View File
@@ -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