The portfolio view at application or module level(Assessment Portfolio level) counts the number of objects that are violating the critical rules.
The technology view (Compliance - Technology Level) counts the number of violations(an object may violate a rule more than one time, in this case the number of violations will be more than one but the number of objects will still be one). If you click the rule in this view you will land in the Investigation Quality Model Drilldown View, where you can clearly see how many objects are violating the rule.
For the example considered in this page, the below was observed.
- The rule "Avoid Classes using "new" to allocate Instances but not defining a copy Constructor" has 6 violations for 4 violating objects
- The rule "A pointer to a base Class shall only be cast to a pointer to a derived Class by means of 'dynamic_cast'" has 1 violating object
- The rule "Do not return a dereferenced pointer allocated inside the function" has 2 violating objects
Summing to total value 7 => Hence, 7 is displayed in the Assessment Portfolio level, which is expected behavior.