Skip to content

Commit 1c9dda8

Browse files
committed
exclude html in sonarqube
1 parent f5c36c2 commit 1c9dda8

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
@@ -11,5 +11,6 @@ sonar.exclusions=tests/**/*.test.js,tests/**/*.spec.js,**/*.test.js,**/*.spec.js
1111
# Coverage
1212
sonar.javascript.lcov.reportPaths=coverage/lcov.info
1313

14-
# Exclude only config.js from coverage (configuration file)
15-
sonar.coverage.exclusions=config.js, .*.config.js, **/config.js, **/*.config.js
14+
# Exclude config files and browser-side code from coverage
15+
# public/ contains client-side JS/CSS that runs in the browser, not testable with Node.js
16+
sonar.coverage.exclusions=config.js, .*.config.js, **/config.js, **/*.config.js, public/**

vitest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineConfig({
99
reporter: ['text', 'json', 'html', 'lcov'],
1010
exclude: [
1111
'node_modules/',
12+
'public/',
1213
'**/*.test.js',
1314
'**/*.config.js'
1415
]

0 commit comments

Comments
 (0)