Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarLint not working for coverage and duplications?

I am using Sonar-Lint as my static code analysis plugin in intellij. When I run that after setting configurations, it can fetch rules form the server and show issues.

But still it can't clearly indicate code-duplication and coverage. Can anyone tell me, what has gone wrong or it's a bug?

like image 689
Supun Wijerathne Avatar asked Aug 10 '16 09:08

Supun Wijerathne


People also ask

How do you use SonarLint for code coverage?

SonarLint doesn't compute code coverage. To have the code coverage, you should use one of the scanners with SonarQube.

Which is better SonarQube or SonarLint?

Difference between SonarLint and SonarQubeSonarLint gives instant feedback as you type your code. Sonarqube give a vision of the quality of your complete project code base. SonarLint concentrates on what you are writing run time while coding. SonarQube analyzes all the source code for all files in frequent interval.

Is SonarLint and SonarQube same?

SonarLint catches issues right in your IDE while SonarQube analyzes pull requests and branches. The combination forms a continuous code quality analysis solution that keeps your codebase clean. You'll spend less time reviewing code issues and more time on code logic and solving interesting problems!


1 Answers

SonarLint doesn't support those features, it goes out of its scope as SonarLint won't necessarily scan the entire project. SonarLint only shows code issues.

Use SonarQube and one of its Scanners to have that information.

like image 162
Duarte Meneses Avatar answered Sep 28 '22 01:09

Duarte Meneses