Rule Definition
The higher the number of referenced Artifacts, the more difficult the maintenance and evolution as all updates in referenced Artifacts will have to be tested and taken into account.
Remediation
Reduce the number of referenced Artifacts
Violation Code Sample
public void MethodWithHightFanOut()
{
// Call method1
int Val1 = method1();
// Call method2
int Val2 = method2();
// Call method3
int Val3 = method3();
// Call method4
int Val4 = method4();
// Call method5
int Val5 = method5();
// Call method6
int Val6 = method6();
// Call method7
int Val7 = method7();
// Call method8
int Val8 = method8();
// Call method9
int Val9 = method9();
// Call method10
int Val10 = method10();
// Call method11
int Val11= method11();
// Call method12
int Val12 = method12();
// Call method13
int Val13 = method13();
// Call methodX
int Val14= methodX();
}
Related Technologies
ASP
DB2 Server
Forms
Visual Basic
.Net
Cobol
C++
PL/SQL
JEE
Microsoft T-SQL
Sybase T-SQL
DB2 z/OS
Technical Criterion
CWE-1048 - Invokable Control Element with Large Number of Outward Calls
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.