Java Quality Assurance by Detecting Code Smells

  • Authors:
  • E. Van Emden;L. Moonen

  • Affiliations:
  • -;-

  • Venue:
  • WCRE '02 Proceedings of the Ninth Working Conference on Reverse Engineering (WCRE'02)
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

Software inspection is a known technique for improving softwarequality. It involves carefully examining the code, thedesign, and the documentation of software and checkingthese for aspects that are known to be potentially problematicbased on past experience.Code smells are a metaphor to describe patterns that aregenerally associated with bad design and bad programmingpractices. Originally, code smells are used to find the placesin software that could benefit from refactoring. In this paper,we investigate how the quality of code can be automaticallyassessed by checking for the presence of code smells and howthis approach can contribute to automatic code inspection.We present an approach for the automatic detection andvisualization of code smells and discuss how this approachcan be used in the design of a software inspection tool. We illustratethe feasibility of our approach with the developmentof jCOSMO, a prototype code smell browser that detects andvisualizes code smells in JAVA source code. Finally, we showhow this tool was applied in a case study.