Repository navigation
Expand file tree
/
Copy pathsonar-project.properties
More file actions
38 lines (31 loc) · 1.92 KB
/
Copy pathsonar-project.properties
File metadata and controls
38 lines (31 loc) · 1.92 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
# Note: Updating this file on feature branches or forks will not reflect changes in the SonarCloud scan results.
# The SonarCloud scan workflow always uses the latest version from the default branch.
# This means any changes made to this file in a feature branch will not be considered until they are merged.
sonar.projectKey=MetaMask_internal-snaps
sonar.organization=metamask
# Source
# This is a monorepo: a single SonarCloud project covers every snap under
# packages/, so new packages are analyzed without changes to this file.
sonar.sources=packages
# Exclude tests, build artifacts and assets from all analysis (to avoid code
# coverage, duplicate code, security issues, etc. being reported on them).
# sample-snap is a private hello-world package that is not part of the CI test
# matrix, so it is excluded from analysis.
sonar.exclusions=**/sample-snap/**,**/*.test.**,**/*.spec.**,**/dist/**,**/coverage/**,**/images/**,**/*.snap,**/__snapshots__/**,**/__mocks__/**
# Jest setup files, Jest configs and snap entry points are test infrastructure /
# wiring excluded from jest coverage collection (coveragePathIgnorePatterns);
# exclude them from coverage metrics here as well so they are not reported as 0%
# covered. Jest configs live at the package root, outside the `./src/**/*.{ts,tsx}`
# coverage scope, so they never produce an lcov entry.
sonar.coverage.exclusions=**/jest.setup.ts,**/src/index.ts,**/jest.config.*
# Tests
sonar.tests=packages
sonar.test.inclusions=**/*.test.**,**/*.spec.**
# Jest writes lcov per package during CI (packages/<name>/coverage/lcov.info).
# The scan job rewrites the "SF:" paths to be relative to the repo root before
# uploading, so a single glob covers all packages.
sonar.javascript.lcov.reportPaths=packages/*/coverage/lcov.info
# Fail CI job if quality gate failures.
# Kept false during rollout: the gate is enforced by a dedicated CI job once
# the main branch baseline exists.
sonar.qualitygate.wait=false