CQE-9210: Use of Same Variable for Multiple Purposes

 
Use of Same Variable for Multiple Purposes
[an error occurred while processing this directive] Definition in a New Window Definition in a New Window
Quality Issue ID: 9210 Maturity: Preliminary
+ Description

Description Summary

The code contains a callable, block, or other code element in which the same variable is used to control more than one unique task or store more than one instance of data.

Extended Description

Use of the same variable for multiple purposes can make it more difficult for a person to read or understand the code, potentially hiding other quality issues.

+ Relationships
NatureTypeIDNameView(s) this relationship pertains to
View
ChildOf
Ch
Characteristic
9034Maintainability
Default Graph (primary)9001

Related Taxonomy Entries

TaxonomyVersionRelated ID
SQAE3.9
+ References
Robert A. Martin and Lawrence H. Shafer. "Providing a Framework for Effective Software Quality Assessment". 6th Annual International Symposium of INCOSE. 1996-07-09. <https://www.researchgate.net/publication/285403022_PROVIDING_A_FRAMEWORK_FOR_EFFECTIVE_SOFTWARE_QUALITY_MEASUREMENT_MAKING_A_SCIENCE_OF_RISK_ASSESSMENT>.
+ Content History
Submissions
Submission DateSubmitterOrganizationSource
SQAE TeamMITREExternally Mined
Page Last Updated or Reviewed: October 01, 2017