作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (07): 59-61. doi: 10.3969/j.issn.1000-3428.2007.07.021

• 软件技术与数据库 • 上一篇    下一篇

类间结构型代码味道自动检测的研究

陈 丹,袁 捷,缪淮扣   

  1. (上海大学计算机工程与科学学院,上海 200072)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-04-05 发布日期:2007-04-05

Automatic Approach to Detect Structural Smells Between Class

CHEN Dan, YUAN Jie, MIAO Huaikou   

  1. (School of Computer Engineering and Science, Shanghai University, Shanghai 200072)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-04-05 Published:2007-04-05

摘要: 软件重构是改造软件遗留系统、软件重用的重要手段。代码味道用于描述软件设计缺陷,检测代码味道是软件重构的重要步骤。按照代码味道的特征给代码味道分类,对引发重构的主要缺陷――类之间结构型代码味道,给出了自动化检测的原理,设计和实现了一个检测工具。

关键词: 重构, 代码味道, 自动化检测, LePUS, 设计模型, 形式化规则

Abstract: Refactoring is a key means to transform the legacy system and for software reuse. Code smells are used to describe design defect in software. To detect them is an important step of refactoring. This paper classifies the code smells by their characters and proposes a method to automatically detect one of the type-structural smells between classes. The design and the implementation of an automatic detect tool by using this method are introduced.

Key words: Refactoring, Code smells, Automatic detect, LePUS, Design model, Formal rule