-
Notifications
You must be signed in to change notification settings - Fork 3
/
sonar-project.properties
34 lines (27 loc) · 2.38 KB
/
sonar-project.properties
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
sonar.organization=pass-culture
sonar.projectKey=pass-culture_pass-culture-institutional
sonar.projectName=pass-culture-institutional
sonar.dynamicAnalysis=reuseReports
sonar.javascript.jstest.reportsPath=public_website/coverage
sonar.javascript.lcov.reportPaths=public_website/coverage/lcov.info
sonar.coverage.exclusions=**/_*,**/*config.*,**/*setup.*,**/globalstyles.tsx,**/*.test.*,**/*.d.ts,**/__mocks__/**,**/theme/**,**/icons/**,**/*fixtures.*,**/fixtures/**,**/__tests__/handlers.ts,**/__tests__/server.ts,**/__tests__/index.tsx,**/content_management_system/**/*
# Patterns to ignore issues on certain components and for certain coding rules
sonar.issue.ignore.multicriteria=typescriptS6606,typescriptS6544,typescriptS125,typescriptS3863,typescriptS6759,typescriptS4325
# Disable this issue "Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`)" because it is not equivalent (source of bugs)
sonar.issue.ignore.multicriteria.typescriptS6606.ruleKey=typescript:S6606
sonar.issue.ignore.multicriteria.typescriptS6606.resourceKey=**/*
# Disable this bug "Promise returned in function argument where a void return was expected" because we'd rather trust typescript than Sonar
sonar.issue.ignore.multicriteria.typescriptS6544.ruleKey=typescript:S6544
sonar.issue.ignore.multicriteria.typescriptS6544.resourceKey=**/*
# Disable "Remove this commented out code." in index.ts because it is a generated file
sonar.issue.ignore.multicriteria.typescriptS125.ruleKey=typescript:S125
sonar.issue.ignore.multicriteria.typescriptS125.resourceKey=content_management_system/src/index.ts
# Disable "'vitest' import is duplicated." in vitest.setup.ts because it is a configuration file
sonar.issue.ignore.multicriteria.typescriptS3863.ruleKey=typescript:S3863
sonar.issue.ignore.multicriteria.typescriptS3863.resourceKey=public_website/vitest.setup.ts
# Disable this rule "React props should be read-only" because adding Readonly doesn't make the error detectable by typescript
sonar.issue.ignore.multicriteria.typescriptS6759.ruleKey=typescript:S6759
sonar.issue.ignore.multicriteria.typescriptS6759.resourceKey=**/*
# Disable this rule "This assertion is unnecessary since it does not change the type of the expression." because we purposefully ignore this typescript rule
sonar.issue.ignore.multicriteria.typescriptS4325.ruleKey=typescript:S4325
sonar.issue.ignore.multicriteria.typescriptS4325.resourceKey=**/*