CQE-9046: Excessive Use of Hard-Coded Literals in Initialization

 
Excessive Use of Hard-Coded Literals in Initialization
[an error occurred while processing this directive] Definition in a New Window Definition in a New Window
Quality Issue ID: 9046 Maturity: Preliminary
+ Description

Description Summary

The software initializes a data element using a hard-coded literal.

Extended Description

This pattern identifies situations where the literal value element is used to initialize the storable data element or member data element via the Write action; exceptions are simple integers and static of constant storable or member data elements.

+ Relationships
NatureTypeIDNameView(s) this relationship pertains to
View
ChildOf
Ch
Characteristic
9034Maintainability
Default Graph (primary)9001
ChildOf
Pr
Practice
9142Hard-Coding
Quality Issues Organized by Practices (primary)9002
CanPrecede
Co
Consequence
9132Reduced Adaptability
Default Graph (primary)9001

Related Taxonomy Entries

TaxonomyVersionRelated ID
ASCMM1ASCMM-MNT-3
+ References
"Automated Source Code Maintainability Measure (ASCMM)". ASCMM-MNT-3. v1.0. Object Management Group (OMG). 2016-01-01. <http://www.omg.org/spec/ASCMM/1.0>.
Page Last Updated or Reviewed: October 01, 2017