RepoSense icon indicating copy to clipboard operation
RepoSense copied to clipboard

Refactor code smells

Open JHyeon0915 opened this issue 9 months ago • 7 comments

Proposed commit message

This project contains implement and design smells.

Introduce an explaining variable to address magic number.
Decompose conditional to address complex conditional.
Extract a class from CommitAnalyzer to address deficient encapsulation.

JHyeon0915 avatar Mar 28 '25 22:03 JHyeon0915

Hi @JHyeon0915, thanks for your contribution!

Could you also review the codebase for other instances of similar code quality issues, such as magic numbers/strings, complex conditionals, and opportunities for better abstraction or encapsulation? Identifying these areas will help us consolidate code-quality improvements of the entire codebase within this PR.

Looking forward to your insights!

joeng03 avatar Mar 31 '25 02:03 joeng03

@joeng03 Hello! Thank you for your feedback. Yes, there are some more smells. But I am currently on the final exam period and I will be able to work in a month. So, I will try to contribute more a bit later if that's okay. Let me know if anything comes up.

JHyeon0915 avatar Apr 07 '25 03:04 JHyeon0915

Hi @JHyeon0915, sure, all the best for your finals!

joeng03 avatar Apr 07 '25 03:04 joeng03

Hi, We are going to mark this PR as stale because it has been inactive for the past 30 days. If no further activity occurs within the following 7 days, it will be automatically closed so that others can take up the issue. If you are still working on this PR, please make a follow-up commit within 7 days and leave a comment to remove the stale label. Do let us know if you are stuck so that we can help you!'

github-actions[bot] avatar May 08 '25 00:05 github-actions[bot]

Hi @joeng03 ! I hope you have been doing well! I'd like to share the progress with you.

I have checked Implementation and Design smells for the past couple of days and was able to fix some of them. While implementation smells are mostly trivial(Long Statement, Long Identifier, etc), there are some design smells left that could be fixed (Cyclically-dependent Modularization, Deficient Encapsulation, etc). The approximate number of design smells is about 15-20, which I want to say is moderate).

As this PR has been marked as stale since five days ago, you can either unmark this PR if you'd like me to work more or merge / close after your review. Thank you.

JHyeon0915 avatar May 12 '25 19:05 JHyeon0915

Hi @joeng03 , how are you doing? Since the summer semester has started, I'd like to wrap up this contribution. Please review this PR as the final code and let me know if I need to fix anything! Thank you.

JHyeon0915 avatar May 25 '25 03:05 JHyeon0915

Hi @JHyeon0915, please clear the CI pipeline first! Some tests are failing

joeng03 avatar May 26 '25 12:05 joeng03

Hi, We are going to mark this PR as stale because it has been inactive for the past 30 days. If no further activity occurs within the following 7 days, it will be automatically closed so that others can take up the issue. If you are still working on this PR, please make a follow-up commit within 7 days and leave a comment to remove the stale label. Do let us know if you are stuck so that we can help you!'

github-actions[bot] avatar Jul 14 '25 00:07 github-actions[bot]

This PR was closed because it has been marked as stale for 7 days with no activity. Feel free to reopen this PR if you would like to continue working on it.

github-actions[bot] avatar Jul 21 '25 00:07 github-actions[bot]