sonarjs

SonarQube and Lcov report Could not resolve file paths

时光毁灭记忆、已成空白 提交于 2019-12-18 05:04:30
问题 We are trying to make a SonarQube code coverage report for our angular application. We have used Karma to generate a code coverage report and import it into SonarQube analyzer. The SonarQube already has C# coverage for our project, now we want to add JavaScript code coverage as well. Teamcity calls, Karma and it creates a code coverage and put the lcov file and report files into src\Planning.Spa\Coverage\report folder. LCOV File TN: SF:E:/a03/work/bb52cb33e083fc9/src/Planning.Spa/Offer/app

SonarJS - how to avoid “Non-existent variables should not be referenced” issue

拥有回忆 提交于 2019-12-01 14:24:20
I have a JavaScript project that consists of several source files. These files are referenced in <script> tags in index.html page. There are functions and variables defined in those source files and used in other source files. The problem is that Sonar treats those files as independent and I got Non-existent variables should not be referenced (javascript:S3827) issue. Can anybody help how to avoid this? Thanks Pavel This rule requires configuration. List names of variables and functions shared across files in "sonar.javascript.globals" project property. 来源: https://stackoverflow.com/questions

SonarJS - how to avoid “Non-existent variables should not be referenced” issue

老子叫甜甜 提交于 2019-12-01 13:02:39
问题 I have a JavaScript project that consists of several source files. These files are referenced in <script> tags in index.html page. There are functions and variables defined in those source files and used in other source files. The problem is that Sonar treats those files as independent and I got Non-existent variables should not be referenced (javascript:S3827) issue. Can anybody help how to avoid this? Thanks Pavel 回答1: This rule requires configuration. List names of variables and functions

SonarQube and Lcov report Could not resolve file paths

纵然是瞬间 提交于 2019-11-29 07:23:25
We are trying to make a SonarQube code coverage report for our angular application. We have used Karma to generate a code coverage report and import it into SonarQube analyzer. The SonarQube already has C# coverage for our project, now we want to add JavaScript code coverage as well. Teamcity calls, Karma and it creates a code coverage and put the lcov file and report files into src\Planning.Spa\Coverage\report folder. LCOV File TN: SF:E:/a03/work/bb52cb33e083fc9/src/Planning.Spa/Offer/app/app.component.js FN:5,(anonymous_1) FN:6,AppComponent FN:8,(anonymous_3) FN:9,(anonymous_4) Teamcity has