Files
craft-i18n/sonar-project.properties
T
Dylan M. Taylor 6e5bdca105 sonar: the bridge's CLI paths and the language-pack file mode are intended (#232)
Records why the 3 open SonarCloud issues stay:

- pythonsecurity:S8707 (×2), `tools/weblate_bridge.py`: `pr-body <changes>` and `import --changes` read and write a file the maintainer running the tool names, with that maintainer's rights. The import runs outside Actions (see `weblate.yml`), so confining the path to one folder could break that caller.
- rust:S2612, `crates/craft-i18n-tests/src/packs.rs`: `0o644` is the mode of the public files in a release language pack (`<locale>.tar.zst`), which every user reads.
2026-11-10 18:45:31 -05:00

14 lines
813 B
Properties

sonar.projectKey=storytold_craft-i18n
sonar.organization=storytold
sonar.coverage.exclusions=**/tools/**,**/docs/**
# S8707 (path traversal from CLI arguments): weblate_bridge.py is a maintainer tool; the
# `--changes` and `pr-body` paths are files its operator names, read or written with the operator's
# own rights. S2612 (file permissions): 0o644 is the mode of the public files in a release language
# pack archive, which every user reads.
sonar.issue.ignore.multicriteria=bridge_paths,pack_mode
sonar.issue.ignore.multicriteria.bridge_paths.ruleKey=pythonsecurity:S8707
sonar.issue.ignore.multicriteria.bridge_paths.resourceKey=tools/weblate_bridge.py
sonar.issue.ignore.multicriteria.pack_mode.ruleKey=rust:S2612
sonar.issue.ignore.multicriteria.pack_mode.resourceKey=crates/craft-i18n-tests/src/packs.rs