Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bevm sonarcloud cognitive complexity issues #2419

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cgrigis
Copy link
Collaborator

@cgrigis cgrigis commented Dec 4, 2020

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
Copy link
Member

ineiti commented Dec 4, 2020

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

@cgrigis
Copy link
Collaborator Author

cgrigis commented Dec 4, 2020

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
Copy link
Contributor

tharvik commented Dec 4, 2020

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
Copy link
Collaborator Author

cgrigis commented Dec 4, 2020

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
Copy link
Member

ineiti commented Dec 4, 2020

But we still need to enable coverage:

No Coverage information

@ineiti
Copy link
Member

ineiti commented Dec 4, 2020

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
@sonarcloud
Copy link

sonarcloud bot commented Dec 4, 2020

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

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.

3 participants