mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 18:25:34 +01:00
The SonarCloud scan printed three warnings that sonar-project.properties can clear: - sonar.exclusions=lcov.info: sonar.sources=. indexed the coverage report (over 20 MB), and the scanner warned and dropped it. - sonar.cpd.exclusions: duplication now skips the test-file patterns, crates/ui-egui/src/menus/ui_commands.rs and the MCP catalog generated from it, which gave 32 "Too many duplication" warnings. The value is on one line because the shared Sonar workflow reads it with one sed line and adds **/i18n/**. - sonar.python.version=3.12, 3.13, 3.14, 3.15: the versions CI runs the scripts in packaging/ and scripts/ with (3.12 on Ubuntu 24.04, 3.13 from setup-python in the nightly jobs, 3.15 on macOS 15).
32 lines
1.7 KiB
Properties
32 lines
1.7 KiB
Properties
sonar.projectKey=storytold_vectorcraft
|
|
sonar.organization=storytold
|
|
|
|
# Sources and tests both start at the root, as in craft-libs: sonar.tests alone stops the
|
|
# scanner defaulting sources to the repository. Test files are the ones the coverage job
|
|
# leaves out of lcov (tests/ directories, tests.rs and *_tests.rs), plus this repo's
|
|
# tests_*.rs naming. Classifying them as tests keeps coverage and duplication on new code
|
|
# measuring the product, not the tests.
|
|
sonar.sources=.
|
|
sonar.tests=.
|
|
sonar.test.inclusions=**/tests/**,**/tests.rs,**/*_tests.rs,**/tests_*.rs
|
|
|
|
# The coverage job writes lcov.info at the root, where sonar.sources=. would index it.
|
|
sonar.exclusions=lcov.info
|
|
|
|
# Duplication skips test files, the UI command table and the MCP catalog generated from it.
|
|
# The shared Sonar workflow reads this property from a single line and adds **/i18n/** to it.
|
|
sonar.cpd.exclusions=**/tests/**,**/tests.rs,**/*_tests.rs,**/tests_*.rs,crates/ui-egui/src/menus/ui_commands.rs,crates/mcp/src/ui_catalog.rs
|
|
|
|
# CI runs the scripts in packaging/ and scripts/ with Python 3.12 (Ubuntu 24.04), 3.13
|
|
# (setup-python in the nightly jobs) and 3.15 (macOS 15).
|
|
sonar.python.version=3.12, 3.13, 3.14, 3.15
|
|
|
|
# S4790 (weak hash): MD5 is the key derivation of the PDF standard security handler revisions 2-4
|
|
# (ISO 32000-1 §7.6.3.3), which PDF 1.3-1.6 files use. It is needed to read those files and to write
|
|
# the compatibility the user picks, not chosen for new security: the default is 256-bit AES
|
|
# (revision 6), which hashes with SHA-2.
|
|
sonar.issue.ignore.multicriteria=pdf_md5
|
|
sonar.issue.ignore.multicriteria.pdf_md5.ruleKey=rust:S4790
|
|
sonar.issue.ignore.multicriteria.pdf_md5.resourceKey=crates/pdf/src/encrypt.rs
|
|
sonar.coverage.exclusions=packaging/**
|