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 sonar issues #9941

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Fix sonar issues #9941

merged 1 commit into from
Dec 11, 2024

Conversation

sdimitrov9
Copy link
Contributor

Description:
Fix dozens sonar issues.

Related issue(s):
Partially fixes 9010

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@sdimitrov9 sdimitrov9 self-assigned this Dec 11, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 82.14286% with 5 lines in your changes missing coverage. Please review.

Project coverage is 92.26%. Comparing base (d268e43) to head (ff1b797).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../contracts/precompile/impl/SystemContractAbis.java 50.00% 2 Missing and 2 partials ⚠️
...mirror/importer/config/HibernateConfiguration.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9941      +/-   ##
============================================
+ Coverage     92.25%   92.26%   +0.01%     
- Complexity     7821     7822       +1     
============================================
  Files           953      953              
  Lines         32730    32722       -8     
  Branches       4146     4140       -6     
============================================
- Hits          30195    30192       -3     
+ Misses         1559     1557       -2     
+ Partials        976      973       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sdimitrov9 sdimitrov9 force-pushed the 9010-fix-more-sonar-issues branch from ef85eee to c249f7c Compare December 11, 2024 15:17
Signed-off-by: sdimitrov9 <[email protected]>
@sdimitrov9 sdimitrov9 force-pushed the 9010-fix-more-sonar-issues branch from c249f7c to ff1b797 Compare December 11, 2024 15:25
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@sdimitrov9 sdimitrov9 marked this pull request as ready for review December 11, 2024 15:39
@sdimitrov9 sdimitrov9 requested a review from a team as a code owner December 11, 2024 15:39
Copy link
Contributor

@bilyana-gospodinova bilyana-gospodinova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy added this to the 0.121.0 milestone Dec 11, 2024
Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two feedback items. I'll merge this but can you address those in your next follow up please?

@@ -224,6 +224,7 @@ public void verifyFungibleTokenIsNotFrozen() {
}

@And("verify non fungible token isn't frozen")
@And("check if non fungible token is unfrozen")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having two step names for the same method it would be better to consolidate the step names in the .feature file to one.

@@ -129,6 +129,7 @@ public void verifyMirrorAPIContractResponses(int status) {
}

@Then("the mirror node REST API should verify the deployed contract entity by eth call")
@Then("the mirror node REST API should verify the ethereum called contract function")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having two step names for the same method it would be better to consolidate the step names in the .feature file to one.

@steven-sheehy steven-sheehy merged commit bc267dd into main Dec 11, 2024
30 of 32 checks passed
@steven-sheehy steven-sheehy deleted the 9010-fix-more-sonar-issues branch December 11, 2024 17:45
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