Merge pull request #3407 from storytold/sonar/analysis-scope

sonar: leave out the AEP corpus generators and document the expression eval wrappers
This commit is contained in:
FredApps authored and GitHub committed 2026-11-10 19:31:29 +01:00
commit d5a8eb064a
1 file changed
+14
+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