cothority icon indicating copy to clipboard operation
cothority copied to clipboard

Fix bevm sonarcloud cognitive complexity issues

Open cgrigis opened this issue 4 years ago • 7 comments
trafficstars

What this PR does

See commit message

cgrigis avatar Dec 04 '20 12:12 cgrigis

Nice try - but sonarcloud doesn't like it :( I think the test coverage is not there yet...

ineiti avatar Dec 04 '20 12:12 ineiti

Nice try - but sonarcloud doesn't like it :( I think the test coverage is not there yet...

I don't think it is the coverage it is complaining about, but the "duplicate lines on new code". However, what it considers "new code" has very little to do with what the PR is touching, so I am not sure how it is determining it.

cgrigis avatar Dec 04 '20 13:12 cgrigis

I don't think it is the coverage it is complaining about, but the "duplicate lines on new code".

Correct, from what I gather from the checks page.

However, what it considers "new code" has very little to do with what the PR is touching, so I am not sure how it is determining it.

Badly IMO. We might want to do a sonar cloud initial pass, but I dunno how to trigger it on the whole repo.

tharvik avatar Dec 04 '20 14:12 tharvik

We might want to do a sonar cloud initial pass, but I dunno how to trigger it on the whole repo.

Yes, exactly what I was thinking as well. :)

cgrigis avatar Dec 04 '20 14:12 cgrigis

But we still need to enable coverage:

No Coverage information

ineiti avatar Dec 04 '20 14:12 ineiti

And probably you need to rebase from master to have the github-actions...

ineiti avatar Dec 04 '20 14:12 ineiti

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
5.8% 5.8% Duplication

sonarqubecloud[bot] avatar Dec 04 '20 14:12 sonarqubecloud[bot]