Font Size: a A A

The Research Of Intra-Class CodeSmell Auto Detection System

Posted on:2015-12-05Degree:MasterType:Thesis
Country:ChinaCandidate:F F MaFull Text:PDF
GTID:2298330431468921Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Refactoring technology can elimate CodeSmell in system. Its elimatation enable the use of software longer and more reliable.Refactoring plays an important part in software system quality,especially in software maintenance area,but its users are limited.The most important reason is the early stage of Refactoring.Because the CodeSmell detecting still need to be completed through manual work, whose low effiency and accuracy limit the development and use of Refactoring to some extent.The thesis aims to research CodeSmell detecting automatically which is based on the anlysis of codesmell and software metric theories. Moreover, some detecting approaches are recommended by expanding software metric method and combining some features of codesmell itself. The AST will be taken as the Middle description pattern here, with using the AST which is extracted from the source Code by SimpleCSParser.We also Combine the AST theory and related rules, traversing the AST to get the metrics which is needed by Measurement rules.Then, The thesis uses CodeSmell metrical description and interpretation models to get corresponding CodeSmell Measurement rules,These rules mainly come from informal description of CodeSmell which is made by Martin Fowler, also with experience.The Measurement rules are mainly used by CSADT, which can be implemented as visual studio2010add-ins. As integrated into Visual Studio2010,it can be easily used and widespread.CSADT is based on OOD, with using classical design patterns and other programming skills.This can insure its validity. Applying this kind of tool can help us to solve the problems caused by manual detecting.At last, The thesis interprets the CSADT’s realization process, including the whole framework and the final implementation.Also a very detailed analysis is given about CodeSmell detection and recognition. Although here just three examples are used to show how to detect the CodeSmell in source Code, The CSADT’s realization,specially its process can be regarded as a good try in CodeSmell auto-detection. I always believe more and more tools like this can be developed with more and more programmer using it,which will help to improve software quality greatly.
Keywords/Search Tags:CodeSmell, Software Refactoring, Software Metrics, AST, OOP
PDF Full Text Request
Related items