Avoid class (in script) with too many fields | CAST Appmarq

Avoid class (in script) with too many fields

CRITICAL

Rule Definition
Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zipcode fields could instead have one Address field.

Remediation
Refactor the class to have less number of fields.

Reference
http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD

Related Technologies

Health Factor

  Total Quality Index


Technical Criterion
Programming Practices - Modularity and OO Encapsulation 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.

Benchmark Statistics

Global Compliance

98.90%

Total Violations
42
Total Opportunities
3,817
Average Violations / App.
8.40
The compliance score represents 1 minus the ratio between the number of times a rule has been violated compared to the number of opportunities in a set of applications that the rule could have been violated.

Industry Insights

Financial Services

82.79%

Don't Know

100.00%

Insurance

100.00%