sonar: leave out the AEP corpus generators and document the expression eval wrappers

This commit is contained in:
FredApps
2026-11-10 11:20:57 +01:00
parent 87000339ed
commit 9f5d7d1ac1
+14
View File
@@ -1,2 +1,16 @@
sonar.projectKey=storytold_effectcraft
sonar.organization=storytold
# crates/aep/tests/fixtures/tools/ holds the contributor's offline generators of the AEP test
# corpus (Node and ExtendScript run by hand against a local folder, see its README). They are not
# shipped or run by the app or CI, so they are not analysed.
sonar.exclusions=crates/aep/tests/fixtures/tools/**
# S1523 / S2137 (eval, Function): the expression runtime in crates/expr/src/prelude.js replaces
# `eval` and `Function` on purpose, with wrappers that check the code they are given before it
# runs (After Effects expressions may call them). The rules flag exactly that wrapping.
sonar.issue.ignore.multicriteria=prelude_eval,prelude_redefine
sonar.issue.ignore.multicriteria.prelude_eval.ruleKey=javascript:S1523
sonar.issue.ignore.multicriteria.prelude_eval.resourceKey=crates/expr/src/prelude.js
sonar.issue.ignore.multicriteria.prelude_redefine.ruleKey=javascript:S2137
sonar.issue.ignore.multicriteria.prelude_redefine.resourceKey=crates/expr/src/prelude.js