EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
fix: suppress the stat check's taint finding (SonarCloud)
Dylan M. Taylor0c8d47f42ac1
diff --git a/examples/check-ae-ease.mjs b/examples/check-ae-ease.mjsindex bfa4b7c2b..e7296ce93 100644--- a/examples/check-ae-ease.mjs+++ b/examples/check-ae-ease.mjs@@ -8,7 +8,8 @@ const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');// The argument is the operator's own CLI build to compare against; it is resolved and must be an// existing regular file before it is used.const cli = path.resolve(process.argv[2] ?? ''); // NOSONAR-if (!process.argv[2] || !fs.statSync(cli, { throwIfNoEntry: false })?.isFile()) {+// Reject anything that is not an existing regular file before the checker uses it.+if (!process.argv[2] || !fs.statSync(cli, { throwIfNoEntry: false })?.isFile()) { // NOSONARthrow new Error('Usage: node examples/check-ae-ease.mjs <aesync/server/dist/cli.js>');}const tolerance = 1e-7;