Repository navigation
Expand file tree
/
Copy pathsonar-project.properties
More file actions
68 lines (58 loc) · 2.78 KB
/
Copy pathsonar-project.properties
File metadata and controls
68 lines (58 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# SonarCloud project configuration
# https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/github-actions-for-python/
#
# IMPORTANT: Automatic Analysis must be DISABLED in SonarCloud project settings
# before CI-based analysis will take effect.
# Settings → Administration → Analysis Method → switch to "CI-based analysis"
sonar.projectKey=ffroliva_gflow-cli
sonar.organization=ffroliva-github
# Source roots — src/ is production code, tests/ is test code
sonar.sources=src
sonar.tests=tests
# Python version
sonar.python.version=3.11,3.12,3.13
# Coverage report (generated by pytest-cov --cov-report=xml)
sonar.python.coverage.reportPaths=coverage.xml
# Exclusions — don't analyse debug/smoke scripts or generated files
sonar.exclusions=\
scripts/**,\
samples/**,\
tmp/**,\
.venv/**,\
**/conftest.py
sonar.test.exclusions=tests/**
# Coverage exclusions — browser-automation and live-auth transports are exercised
# by the e2e suite (real Chrome / live Flow), not unit tests. Excluding them from
# the coverage metric keeps the new-code coverage gate honest: it blocks REAL
# unit-coverage regressions instead of unreachable Playwright/network glue. These
# files are STILL analysed for bugs and code smells — only coverage is excluded.
sonar.coverage.exclusions=\
src/gflow_cli/api/transports/ui_automation.py,\
src/gflow_cli/api/transports/_ui_capture.py,\
src/gflow_cli/api/transports/_ui_character.py,\
src/gflow_cli/api/transports/_ui_common.py,\
src/gflow_cli/api/transports/_ui_image.py,\
src/gflow_cli/api/transports/_ui_navigation.py,\
src/gflow_cli/api/transports/_ui_prompt.py,\
src/gflow_cli/api/transports/_ui_session.py,\
src/gflow_cli/api/transports/_ui_settings.py,\
src/gflow_cli/api/transports/ui_automation_video.py,\
src/gflow_cli/api/transports/_video_editor_mode.py,\
src/gflow_cli/api/transports/_video_frames.py,\
src/gflow_cli/api/transports/_video_network.py,\
src/gflow_cli/api/transports/_video_picker_project.py,\
src/gflow_cli/api/transports/_video_references.py,\
src/gflow_cli/api/transports/_video_settings.py,\
src/gflow_cli/api/transports/experimental/bearer.py,\
src/gflow_cli/api/transports/experimental/evaluate_fetch.py,\
src/gflow_cli/api/transports/experimental/sapisidhash.py
# Encoding
sonar.sourceEncoding=UTF-8
# New Code definition — changes on main since the previous version
sonar.newCode.referenceBranch=main
# Quality gate — make the gate verdict BLOCK CI. Without this, the scanner job
# only confirms the analysis was submitted (always green) while a failed gate
# (e.g. new-code coverage below threshold) is reported asynchronously on the
# dashboard — a misleading green. `wait=true` polls the gate and fails the CI
# step when the verdict is ERROR, so a red gate is evident in CI.
sonar.qualitygate.wait=true