Avoid duplicate code

Avoid duplicate code

Summary

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

Description

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

Plan Supported
Essential 🔴
Advanced 🟢

References

Vulnerabilities

Free trial message
Free trial
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.