I can't get accurate report for static analysis

I’m new at DevOps and working in a startup company, So me my bosses don’t know much about SonarQube and DevOps. The problem is We don’t use any unit test or another test case. After process coverage is %0 (as is expected) but in report there is no accurate duplication and static analysis report.

SonarQube Runs in local network (in linux server) and entegrated in Jenkins. There is no problem in system.

Example: I have 4 functions, all of them get two int parameters and returns sum of them, only the names are different (sum1, sum2, …) but I can’t see any duplicaitons in sonarqube.

There is no problem other issues like Maintainability issues, and don’t know about tets issues, should I add coverage reports like gcov reports to SonqrQube for Static Analysis, or can I use SonqrQube for static analysis without any test.

Hi,

Welcome to the community!

It’s likely that these functions fall below the minimums to be detected as duplications.

Are you analyzing a toy project for testing purposes? Is it possible there really are no issues? If not, then can you provide your analysis logs?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

Yes, absolutely!

 
Ann