Skip to content

Fix bevm sonarcloud cognitive complexity issues#2419

Open
cgrigis wants to merge 2 commits into
dedis:mainfrom
c4dt:fix-bevm-sonarcloud-cognitive-complexity-issues
Open

Fix bevm sonarcloud cognitive complexity issues#2419
cgrigis wants to merge 2 commits into
dedis:mainfrom
c4dt:fix-bevm-sonarcloud-cognitive-complexity-issues

Conversation

@cgrigis

@cgrigis cgrigis commented Dec 4, 2020

Copy link
Copy Markdown
Collaborator

What this PR does

See commit message

@cgrigis cgrigis added the BEvm label Dec 4, 2020
@cgrigis cgrigis self-assigned this Dec 4, 2020
@ineiti

ineiti commented Dec 4, 2020

Copy link
Copy Markdown
Member

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

@cgrigis

cgrigis commented Dec 4, 2020

Copy link
Copy Markdown
Collaborator Author

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.

@tharvik

tharvik commented Dec 4, 2020

Copy link
Copy Markdown
Contributor

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.

@cgrigis

cgrigis commented Dec 4, 2020

Copy link
Copy Markdown
Collaborator Author

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. :)

@ineiti

ineiti commented Dec 4, 2020

Copy link
Copy Markdown
Member

But we still need to enable coverage:

No Coverage information

@ineiti

ineiti commented Dec 4, 2020

Copy link
Copy Markdown
Member

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

@cgrigis cgrigis force-pushed the fix-bevm-sonarcloud-cognitive-complexity-issues branch from d662386 to 8b401db Compare December 4, 2020 14:30
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2020

Copy link
Copy Markdown

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

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants