DNAnalyzer icon indicating copy to clipboard operation
DNAnalyzer copied to clipboard

Code refactoring

Open ArchontisKostis opened this issue 3 years ago • 14 comments

I refactored the code because the Cyclomatic Complexity of this class (Properties.java) was too high (20 according to IntelliJ CodeMetrics plugin). For this reason I created some extra methods to reduce the complexity, improve readability and make the quality of the code better. I think now the code for this class is easier to understand, the class complexity was reduced to 8.

ArchontisKostis avatar Oct 19 '22 17:10 ArchontisKostis

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 19 '22 17:10 CLAassistant

This looks great @ArchontisKostis! However, I see that it fails CodeScene's Cloud Delta Analysis: image Could you try to fix them? If not, this looks fine anyway, I'll approve it. Thanks so much for contributing!

VerisimilitudeX avatar Oct 19 '22 18:10 VerisimilitudeX

Hello! Thanks for your review! I will check on it and try to fix it as soon as I can. If I won't be able to fix it I will comment here to inform you. 😊

ArchontisKostis avatar Oct 19 '22 18:10 ArchontisKostis

Sounds great! If it isn’t possible, don’t worry too much about it, I’ll approve/merge the PR.

VerisimilitudeX avatar Oct 19 '22 18:10 VerisimilitudeX

Hey! I really can't think of something to fix it right now. :( So if you want accept the PR and we can make an issue for someone else to help!

ArchontisKostis avatar Oct 19 '22 19:10 ArchontisKostis

Sounds good, I'll approve the PR later today after some testing. In the meantime, could you please open an issue for this? Thanks!

VerisimilitudeX avatar Oct 19 '22 19:10 VerisimilitudeX

Great! Yes I will make an issue. Thanks!

ArchontisKostis avatar Oct 19 '22 19:10 ArchontisKostis

Though I think it would be better to make the issue after the PR is accepted in order to not confuse anyone and avoid conflicts. Else someone might fix things at the code before the refactoring and there might be a conflict. If you agree of course.

ArchontisKostis avatar Oct 19 '22 19:10 ArchontisKostis

I think that it should be fine if you link this PR to the issue. Thanks for asking!

VerisimilitudeX avatar Oct 19 '22 19:10 VerisimilitudeX

Great! So when the PR gets accepted I will create an issue and link it here. I will also add the screenshot you added above. 😊😊

ArchontisKostis avatar Oct 19 '22 19:10 ArchontisKostis

@ArchontisKostis could you please resolve the conflicts? Thanks! I'll approve your PR tomorrow once that is done. Thanks for contributing, we really appreciate your time and help!

VerisimilitudeX avatar Oct 21 '22 06:10 VerisimilitudeX

@ArchontisKostis please resolve conflicts and fix the bugs that I mentioned earlier. Thanks!

VerisimilitudeX avatar Oct 24 '22 16:10 VerisimilitudeX

Hey i am sorry for disappering like that i got caught up with some assignments and work and did not have time to fix them. I will fix everything as soon as I can. Sorry again.

ArchontisKostis avatar Oct 25 '22 17:10 ArchontisKostis

No worries @ArchontisKostis, it's fine. Let me know once you fix them. Thanks!

VerisimilitudeX avatar Oct 25 '22 17:10 VerisimilitudeX

@ArchontisKostis could you please clear the conflicts?

VerisimilitudeX avatar Oct 31 '22 16:10 VerisimilitudeX

@ArchontisKostis another reminder to please resolve the merge conflicts.

VerisimilitudeX avatar Nov 06 '22 01:11 VerisimilitudeX

This looks great @ArchontisKostis! However, I see that it fails CodeScene's Cloud Delta Analysis: image Could you try to fix them? If not, this looks fine anyway, I'll approve it. Thanks so much for contributing!

@ArchontisKostis could you please create separate issues for this? Thanks!

VerisimilitudeX avatar Nov 11 '22 07:11 VerisimilitudeX