代码气味
计算机科学
Android(操作系统)
源代码
软件
编码(集合论)
软件质量
程序设计语言
人工智能
软件工程
软件开发
操作系统
集合(抽象数据类型)
作者
Dimitri Prestat,Naouel Moha,Roger Villemaire,Florent Avellaneda
标识
DOI:10.1109/tse.2024.3363223
摘要
Code smells are the result of poor design choices within software systems that complexify source code and impede evolution and performance. Therefore, detecting code smells within software systems is an important priority to decrease technical debt. Furthermore, the emergence of mobile applications (apps) has brought new types of Android-specific code smells, which relate to limitations and constraints on resources like memory, performance and energy consumption. Among these Android-specific smells are those that describe inappropriate behaviour during the execution that may negatively impact software quality. Static analysis tools, however, show limitations for detecting these behavioural code smells and properly detecting behavioural code smells requires considering the dynamic behaviour of the apps. To dynamically detect behavioural code smells, we hence propose three contributions : (1) A method, the D ynamics method, a step-by-step method for the specification and dynamic detection of Android behavioural code smells; (2) A tool, the D ynamics tool, implementing this method on seven code smells; and (3) A validation of our approach on 538 apps from F-D roid with a comparison with the static analysis detection tools, a D octor and P aprika , from the literature. Our method consists of four steps: (1) the specification of the code smells, (2) the instrumentation of the app, (3) the execution of the apps, and (4) the detection of the behavioural code smells. Our results show that many instances of code smells that cannot be detected with static detection tools are indeed detected with our dynamic approach with an average precision of 92.8% and an average recall of 53.4%.
科研通智能强力驱动
Strongly Powered by AbleSci AI