Files
effectcraft/sonar-project.properties
skylartaylor 3a50341d0a nightly: add the isolated EffectCraft Nightly flavor (dormant)
Give EffectCraft the same isolated Nightly channel PhotoCraft has, switched off.

- Launch profile: `--launch-profile nightly-v1 --profile-root <abs> -- [files…]`, with the
  Launcher's version query (`--version`, `-V`) answered before logging, the crash helper, fonts
  or any settings, and `--launch-profile`/`--profile-root` refused by `effectcraft-cli`.
- Build channel: `EFFECTCRAFT_BUILD_CHANNEL=nightly-v1` compiles the flavor, requires the
  prepared `EFFECTCRAFT_VERSION`/`_BUILD_SHA`/`_BUILD_DATE` identity, bakes it in, and sets the
  nightly icon, `ProductName "EffectCraft Nightly"` and the exact `ProductVersion`.
- Private data root: one validated profile root overrides every data root — settings, logs,
  crash reports, plug-ins, presets, window state, recovery sentinel and the disk/media caches —
  fencing stable's folders, the install, portable layouts, `EFFECTCRAFT_CONFIG_DIR` and
  `FLATPAK_ID`, and refusing aliases that leave the profile.
- Session health: a private lease and unclean-exit record, finished once in `on_exit` (macOS)
  and after the event loop.
- Nightly packaging: `packaging/windows/nightly.ps1` plus the `package.ps1 -Nightly/-BuildOnly`
  hook and `sign.ps1 -Required/-CheckOnly/-CheckBuildEnvironment`; `packaging/macos/nightly{,-lib,-sign,-verify}.sh`
  and the plist writer; `packaging/linux/nightly.sh`; the shared `nightly-common.sh`, helpers and
  the four synthetic suites.
- Dormant callers and policy template as in PhotoCraft #16459: `nightly.yml`, `nightly-sign.yml`,
  `nightly-dispatch.yml`, `nightly-macos.yml`, actionlint config, the public Linux key, the
  example policy, the preparation doc and the packaging-lint source-contract job. Every nightly
  job is literally off (`false &&`), there is no schedule and no installed policy.
- Art: nightly icon derivatives (deeper background, unchanged figure and padding), their
  provenance, attribution sidecars and `ATTRIBUTION.md` rows.
- `sonar-project.properties` now states `sonar.sources=.` beside `sonar.tests`, so enabling the
  packaging fixtures cannot silently drop the production code from Sonar.
2026-11-24 23:11:21 +01:00

35 lines
2.3 KiB
Properties

sonar.projectKey=storytold_effectcraft
sonar.organization=storytold
# Setting sonar.tests below disables the CLI's default sources, so state them: without this Sonar
# indexed only the packaging test runners and the gate meant nothing (PhotoCraft #16335).
sonar.sources=.
# These exact fixture runners are tests, not production code. Do not exclude helpers.
sonar.tests=packaging
sonar.test.inclusions=packaging/nightly-tests.py,packaging/nightly-archive-tests.py,packaging/macos/nightly_plist_tests.py,packaging/macos/nightly_sign_tests.py,packaging/windows/nightly-package-tests.ps1,packaging/windows/nightly-signing-tests.ps1,packaging/nightly-release-tests.py
# 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/**
# Packaging test scripts are self-contained unittest suites run directly by CI, not app source
# covered by Rust coverage reports.
sonar.coverage.exclusions=packaging/**/*-tests.py,packaging/**/*_test.py,packaging/**
# 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.
#
# S7773 / S8786 (Number.isFinite and friends, String.trim): the .jsx scripts are After Effects
# ExtendScript, which is ES3. They also run in After Effects, which has neither.
sonar.issue.ignore.multicriteria=prelude_eval,prelude_redefine,jsx_es3_globals,jsx_es3_trim
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
sonar.issue.ignore.multicriteria.jsx_es3_globals.ruleKey=javascript:S7773
sonar.issue.ignore.multicriteria.jsx_es3_globals.resourceKey=**/*.jsx
sonar.issue.ignore.multicriteria.jsx_es3_trim.ruleKey=javascript:S8786
sonar.issue.ignore.multicriteria.jsx_es3_trim.resourceKey=**/*.jsx