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 #2925

Merged
merged 21 commits into from May 4, 2024
Merged

Fix sonar issues #2925

merged 21 commits into from May 4, 2024

Conversation

k1w1dev
Copy link
Contributor

@k1w1dev k1w1dev commented Apr 19, 2024

What problem does this PR solve?

Fixes majority of the high severity issues raised by Sonar. There's a few more left but the changes are already big enough for a review.

Fixes #2865

@k1w1dev k1w1dev force-pushed the fix/sonar-issues branch 2 times, most recently from 99628f1 to c49a18b Compare April 28, 2024 02:27
@k1w1dev k1w1dev marked this pull request as ready for review April 28, 2024 02:27
@k1w1dev
Copy link
Contributor Author

k1w1dev commented May 3, 2024

@iluwatar Hi, would be keen to get some feedback on this whenever you get some time. Thank you :)

k1w1dev added 21 commits May 3, 2024 19:10
…CiGJS70dLki&id=iluwatar_java-design-patterns

related to "Refactor the code of the lambda to not have multiple invocations throwing the same checked exception."

Also, updated the code to use Instant and Duration to deal with time instead of int. Added the awaitility
library to perform assertions in test which is more reliable than using Thread.sleep directly to wait for events to happen.
…e method is not being tested but instead the new SimpleFileWriter(...) is.
…umber of

individual params, which sonar did not like.
…wn even further but currently Sonar is happy.
…e methods are quite generic and not functional enough to be separated out.
Copy link

sonarcloud bot commented May 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
65.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@iluwatar iluwatar merged commit ef42e16 into iluwatar:master May 4, 2024
1 check passed
@iluwatar
Copy link
Owner

iluwatar commented May 4, 2024

Looks good! Thank you for the contribution 🎉

@all-contributors please add @k1w1dev for code

Copy link
Contributor

@iluwatar

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

@k1w1dev already contributed before to code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix high severity issues reported by SonarCloud
2 participants