Rule Definition
Including files in a header file increases the number of dependencies within the system and increases the risk of having circular references.
While it is not a bad practice, it should be minimized.
Remediation
If the include is created to use a class, it is better to use a forward declaration of that class and pointers to that class.
Related Technologies
Technical Criterion
Programming Practices - File Organization Conformity
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.