Anyone know how to solve "Duplicate Code" in AI Mentor Studio?
HI,
In the AI mentor studio, you can see list of all actions which have duplicate codes and see duplicated logic highlighted for each action. See this suggestion how to fix Duplicate Code
Hi,
Like Puja wrote, basically you abstract the duplicated code inside an action and, in the places that you have that duplicated code, you replace it by that new action. With this you are benefiting from reusability, simplicity and facilitating code maintenance.
If you want you can check a list of Code analysis patterns in MentorAI and the givven solution:
https://success.outsystems.com/documentation/11/managing_the_applications_lifecycle/manage_technical_debt/code_analysis_patterns/
Hope this can help you.
Best regards,
Ricardo