forked from pass-culture/pass-culture-app-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonar-project.properties
42 lines (32 loc) · 2.54 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
35
36
37
38
39
sonar.organization=pass-culture
sonar.projectKey=pass-culture_pass-culture-app-native
sonar.projectName=pass-culture-app-native
sonar.dynamicAnalysis=reuseReports
sonar.sources=src
sonar.javascript.jstest.reportsPath=coverage
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.exclusions=**/*.test.*,**/*.stories.*,**/*.types.ts,src/**/*.d.ts,src/ui/svg/**,src/ui/animations/**,src/ui/storybook/**,src/features/internal/cheatcodes/**,src/tests/**,src/theme/**,src/**/__mocks__/**,src/api/gen/**,src/**/fixtures/**,src/**/analytics.ts,src/ui/components/buttons/**,src/**/styleUtils.ts,src/libs/subcategories/placeholderData.ts
sonar.tests=src
sonar.test.inclusions=src/**/*.test.*
# We exclude .web files because we run sonar scan only after test-native
sonar.coverage.exclusions=src/**/*.web.*
# Patterns to ignore issues on certain components and for certain coding rules
sonar.issue.ignore.multicriteria=typescriptS4325,typescriptS6035,typescriptS6544,typescriptS6606,typescriptS6759,typescriptS2187
# 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=**/*
# Disable this rule "Single-character alternations in regular expressions should be replaced with character classes" because it does not simplify regex
sonar.issue.ignore.multicriteria.typescriptS6035.ruleKey=typescript:S6035
sonar.issue.ignore.multicriteria.typescriptS6035.resourceKey=**/*
# Disable this rule "Promises should not be misused" because we'd rather trust typescript than Sonar
sonar.issue.ignore.multicriteria.typescriptS6544.ruleKey=typescript:S6544
sonar.issue.ignore.multicriteria.typescriptS6544.resourceKey=**/*
# Disable this rule "Nullish coalescing should be preferred" because it is not equivalent (source of bugs)
sonar.issue.ignore.multicriteria.typescriptS6606.ruleKey=typescript:S6606
sonar.issue.ignore.multicriteria.typescriptS6606.resourceKey=**/*
# 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 "Test files should contain at least one test case" because we don't want this rule
sonar.issue.ignore.multicriteria.typescriptS2187.ruleKey=typescript:S2187
sonar.issue.ignore.multicriteria.typescriptS2187.resourceKey=**/*