Skip to main content

Avoid duplicate code


The source code must not have repeated functions, methods or classes.


The organization must avoid code duplication because it makes maintenance more difficult. If the same functionality is implemented in multiple places and a change is needed, developers must update each instance separately. This increases the likelihood of inconsistencies and introduces the risk of omitting a particular occurrence. In general, repeated functions or methods may lead to inconsistencies in behavior or logic across different parts of the source code.

Supported In

This requirement is verified in following services




free trial

Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.