OpenAPITools / OpenAPITools/openapi-generator
Potential Refactoring Estimate
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Summary
I have identified a few classes with refactoring potential along with its estimated time to refactor, specifically CodeGenMojo.java. The estimated time is based on historical commits containing refactoring and the complexity of the involved classes. The class was refactored once on Feb 9, 2020 along with other classes in commit 4602596df2dacab0b4fd99458e213ff4cdd2b182. Given the duration of the last refactoring, could it be possible to improve this class further? I am probably not qualified and experienced enough to point out the exact code needs to be refactored, given my limited knowledge of the project and codebase.
Urgency
Low priority. For maintenance of code in the long run.
Hi,
I am currently doing some research on Estimating Time Taken for Software Refactoring. Openapi-generator is one of my case studies being a highly popular project. Would appreciate your kind feedback on the appropriateness of the estimated time to refactor.
I am specifically looking at potential for refactoring, such as breaking functions that are too long into shorter functions, or to remove code duplication. Would you agree that there could be some modification to the code to make it better in the listed classes? And if so, is the estimated time appropriate to carry out the improvement? I will be grateful for any help you can provide.
- CodeGenMojo.java - 4.5 hours
- CodegenConfigurator.java - 3 hours
- CodegenConfiguratorUtils.java - 5 hours
Thank you.
Regards,
Alvin
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading CodeGenMojo.java, CodegenConfigurator.java, and CodegenConfiguratorUtils.java, then compare them with historical refactoring commit 4602596df2dacab0b4fd99458e213ff4cdd2b182. Before making changes, establish a concrete refactoring scope and verify that the proposed improvements have clear validation criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100