最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin5PV0评论

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

Post a comment

comment list (0)

  1. No comments so far