Hi, I’m trying to add sonar analysis to my project and I would make it work using GitLab CI/CD
I’m currently push code though Github using GitLab mirroring.
Could you help me configuring .sonarcloud.properties file ?
Thanks for your help
Hi, I’m trying to add sonar analysis to my project and I would make it work using GitLab CI/CD
I’m currently push code though Github using GitLab mirroring.
Could you help me configuring .sonarcloud.properties file ?
Thanks for your help
Hi,
Could you please go to the Administration / Background Tasks page, find the line with Status “FAILED”, click on the gear icon, and Show Error Details.
Please let us know if the error message there helps you understand and resolve the issue, or if not then what it is.
Thanks.
Mickaël
There is no FAILED Background Tasks all appear as success (no filter).
I change the .sonarcloud.properties.
here is my .sonarcloud.properties
# Langugage
sonar.typescript.tsconfigPath=tsconfig.json
# Path to sources
sonar.sources=./sources/
sonar.exclusions=**/node_modules/**
# Path to tests
sonar.tests=./tests/**
sonar.test.inclusions=**/*.test.ts,**/*.test.js
sonar.cpd.exclusions=**/*.test.ts,**/*.test.js
# Coverage
#sonar.coverage.exclusions=**/*.test.ts,**/*.test.js
#sonar.javascript.lcov.reportPaths=
# Lint
#sonar.ts.tslintconfigpath=tslint.json
#sonar.eslint.reportPaths=
#sonar.typescript.tslint.reportPaths=
I have two problems.
First typescript files are listed in code section but referenced with 0 lines of code whereas I have a index.test.js file listed with 151 lines. I assume that typescript isn’t well analized.
Second analysis end with error
We detected a configuration error for your analysis with ID “AW6iCB965JSsnXc1zusb”: the test files are not found. Please check your .sonarcloud.properties file.
Could you help me configuring .sonarcloud.properties ?
Should I create a new question ?
Can you try with the following :
sonar.sources=sources
sonar.tests=tests
And let me know ?
Thanks.