Code Smells Detection and Visualization of Software Systems
Shin-Jie Lee, Xavier Lin, Li Hsiang Lo, Yu‐Cheng Chen, Jonathan L. C. Lee · Frontiers in artificial intelligence and applications · 2015
Bad smells are symptoms in the source code that indicate possible deeper problems and may serve as drivers for code refactoring. Although efforts have been made on measuring code complexity in object-oriented systems, such as CK metrics, little emphasis has been put on analyzing code smells through a visualization manner. In this paper, we present a system for detecting and visualizing three kinds of code smells of software systems: Long Method, Large Class, and Long Parameter List. Thresholds for identifying the code smells are calculated based on statistics analysis on the source code of 50 open source projects. Code smells are visualized as graphs with colored nodes according to their different severity degrees.