forked from oaknational/Oak-Web-Application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonar-project.properties
83 lines (74 loc) · 2.85 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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# DO not update, this was the historic name of the repo, and is still used in Sonar as the internal ID.
sonar.projectKey=oaknational_Samara
sonar.organization=oaknational
# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=
#sonar.projectVersion=
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=.
# sonar.exclusions=
sonar.tests=.
sonar.test.inclusions=\
**/__tests__/**,\
**/*.test.*
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
# https://docs.oracle.com/cd/E23095_01/Platform.93/ATGProgGuide/html/s0204propertiesfileformat01.html
# Search page not measured for now because this is a rapid prototype, will refactor and test.
# Some index.ts component files not measured because they are integration points with no logic.
# Video player is an integration point to the the Mux player npm package with its own tests - @mux/mux-player-react
# TODO: remove blog pages from exceptions and WRITE tests for them
sonar.coverage.exclusions=\
__mocks__/**,\
src/types/**,\
**/__tests__/**,\
**/__mocks__/**,\
**/*.test.*,\
**/*.stories.*,\
e2e_tests/**,\
*.config.js,\
*.config.ts,\
*.setup.js,\
percy.snapshot.list.js,\
src/pages/_document.tsx,\
scripts/**,\
netlify/**, \
src/*/graphql/generated/*.*,\
src/*/sanity-graphql/generated/*.*,\
src/pages/typography-example.tsx,\
src/pages/beta/teachers/search.tsx,\
src/components/SearchForm/index.ts,\
src/components/SearchResults/index.ts, \
src/components/VideoPlayer/VideoPlayer.tsx, \
src/components/VideoPlayer/index.ts, \
src/components/CMSImage/index.ts, \
src/node-lib/cms/index.ts, \
src/common-lib/cms-types/index.ts, \
src/browser-lib/avo/Avo.ts, \
src/pages/blog/index.tsx, \
src/node-lib/cms/sanity-client/index.ts, \
src/common-lib/cms-types/sanity-client/index.ts, \
src/pages/blog/[blogSlug].tsx, \
src/node-lib/cms/sanity-client/schemas/index.ts, \
src/common-lib/cms-types/sanity-client/schemas/index.ts, \
src/pages/legal/[policyPageSlug].tsx, \
src/storybook-decorators/**, \
next-sitemap.js
# code duplication exclusions
sonar.cpd.exclusions=\
src/styles/theme/default.theme.ts, \
src/browser-lib/fixtures/**, \
src/node-lib/cms/sanity-client/schemas/base.ts, \
src/common-lib/cms-types/sanity-client/schemas/base.ts, \
src/node-lib/sanity-graphql/fixtures/*.json, \
src/node-lib/sanity-graphql/generated/sdk.ts, \
src/utils/portableText/resolveInternalHref.ts, \
src/components/pages/Home/HomeHelpCard.tsx, \
src/components/pages/Home/HomeAboutCard.tsx, \
src/browser-lib/avo/Avo.ts, \
src/node-lib/curriculum-api-2023/generated/sdk.ts
# don't bother at all with confirmic
sonar.exclusions=\
src/browser-lib/cookie-consent/confirmic/*, \
src/browser-lib/avo/Avo.ts