Skip to content

Commit d23a93f

Browse files
committed
chore: update SonarQube configuration for improved source and test inclusions
1 parent e81ae32 commit d23a93f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

sonar-project.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
sonar.projectKey=dorixdev_react-dual-scroll-sync
22
sonar.organization=dorixdev
3-
sonar.sources=lib
3+
sonar.sources=lib/components,lib/hooks,lib/utils,lib/contexts
44
sonar.tests=lib
5-
sonar.test.inclusions=**/*.{test,spec}.{ts,tsx}
5+
sonar.test.inclusions=**/*.test.ts,**/*.test.tsx
66
sonar.javascript.lcov.reportPaths=coverage/lcov.info
7+
sonar.coverage.exclusions=**/*.stories.*,**/*.test.ts,**/*.test.tsx,**/__mocks__/**,**/*.d.ts,dist/**,lib/setupTests.ts,lib/stories/**,lib/stories/mocks/**,lib/**/*.index.ts,lib/**/*.index.tsx,storybook-static/**

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default defineConfig({
3838
setupFiles: ['./lib/setupTests.ts'],
3939
include: ['lib/**/*.{test,spec}.{js,ts,jsx,tsx}'],
4040
coverage: {
41+
all: true,
4142
thresholds: { functions: 80, branches: 80, lines: 80, statements: 80 },
4243
include: ['lib/**/*.{js,jsx,ts,tsx}'],
4344
exclude: [

0 commit comments

Comments
 (0)