最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to tell Sonar to analyze *.ts files instead of *.js files - Stack Overflow

programmeradmin0浏览0评论

In my project there is sonar scanner which is analyzing only *.js files (probably there is such configuration or so on). Also I have istanbul code coverage which generates a perfect lcov file with the results.

This lcov file has references to *.ts files which are not analyzed by Sonar. So the question is how to tell Sonar to analyze *.ts files instead of *.js files?

Now i'm getting somthing like this -

Could not resolve 10 file paths in [coverage.lcov], first unresolved path: 
[path]/test.ts . 

I would really appreciate any help and it will be super if someone can share their working configuration file sonar-project.properties.

In my project there is sonar scanner which is analyzing only *.js files (probably there is such configuration or so on). Also I have istanbul code coverage which generates a perfect lcov file with the results.

This lcov file has references to *.ts files which are not analyzed by Sonar. So the question is how to tell Sonar to analyze *.ts files instead of *.js files?

Now i'm getting somthing like this -

Could not resolve 10 file paths in [coverage.lcov], first unresolved path: 
[path]/test.ts . 

I would really appreciate any help and it will be super if someone can share their working configuration file sonar-project.properties.

Share Improve this question edited Feb 21, 2017 at 18:00 feedMe 3,7473 gold badges39 silver badges64 bronze badges asked Feb 21, 2017 at 16:35 Mr. SanchesMr. Sanches 831 silver badge8 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 5

This isn't configured in sonar-project.properties but through the GUI: Administration > General Settings > SonarJS > File Suffixes

发布评论

评论列表(0)

  1. 暂无评论