Files
artcraft-services/sonar-project.properties
Dylan M. Taylor d903ff2e2c Sonar: [[ ]] in scripts, npm install --ignore-scripts, retired local-dev setup out of scope (#373)
- **shell:S7688 (43)**: `[[ ]]` in place of `[ ]` in
`script/metrics/apply_{dashboards,metric_configs,monitors}.sh`,
`script/common/frontend_preflight.sh` and
`script/website/unix_frontend_dashboard_dev.sh`. Every script has a bash
shebang and `bash -n` passes. No test uses `-a`/`-o`, escaped
parentheses or an unquoted pattern on the right of `=`. The numeric
operands are `$#`, internal flags, exit codes, a parsed Node major
version and curl's status code, so `[[ ]]`'s arithmetic reading changes
nothing.
- **shell:S6505 (4)**: `npm install --ignore-scripts` in
`frontend_preflight.sh`, `unix_frontend_webapp_dev.sh` and
`frontend/build_modules.sh`. The frontend has no install scripts of its
own, and this repo's CI already builds with `npm ci --ignore-scripts`.
Same change as storytold/artcraft#2818.
- **Scope**: `_docs/old/**` joins `sonar.exclusions`. It's the retired
local-dev setup (an old Dockerfile, `kubernetes.yml`, nginx config) that
nothing references, and it held the docker and kubernetes findings under
`_docs/old/old_localdev_setup`.

Same as the other PRs here: not merged without the owner's go-ahead
(production service).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Chores**
* Frontend dependency installation now skips package-provided lifecycle
scripts, including during development setup. This changes which scripts
run during installation but does not change the frontend’s intended
features or behavior.
* Updated internal checks used by dashboard, metric, and monitor scripts
without changing their conditions or outcomes.
* Expanded static-analysis exclusions to include archived documentation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 07:34:01 -05:00

16 lines
892 B
Properties

sonar.projectKey=storytold_artcraft-services
sonar.organization=storytold
# Vendored third-party code is not ours and is not worth analysing:
# crates/vendor/candle/candle-flash-attn/cutlass/ ships generated Doxygen HTML and a copied Python
# tree, which accounted for 194,232 of this project's 197,233 open findings under automatic
# analysis. They come back whenever the vendor copy is bumped and drown the real findings.
# _docs/old/ is the retired local-dev setup (an old Dockerfile and kubernetes.yml nothing uses).
sonar.exclusions=crates/vendor/**,_docs/old/**
# Same scope for copy-paste detection: the vendored HTML/Python is most of the duplicated lines.
sonar.cpd.exclusions=crates/vendor/**
# CI publishes Rust coverage only; TypeScript and JavaScript would never appear covered.
# Same as artcraft.
sonar.coverage.exclusions=**/*.ts,**/*.tsx,**/*.js,**/*.jsx,**/*.mjs,**/*.cjs