Mining System Specific Rules from Change Patterns

Andre Hora 1 Nicolas Anquetil 1 Stéphane Ducasse 1 Marco Tulio Valente 2
1 RMOD - Analyses and Languages Constructs for Object-Oriented Application Evolution
LIFL - Laboratoire d'Informatique Fondamentale de Lille, Inria Lille - Nord Europe
Abstract : A significant percentage of warnings reported by tools to detect coding standard violations are false positives. Thus, there are some works dedicated to provide better rules by mining them from source code history, analyzing bug-fixes or changes between system releases. However, software evolves over time, and during development not only bugs are fixed, but also features are added, and code is refactored. In such cases, changes must be consistently applied in source code to avoid maintenance problems. In this paper, we propose to extract system specific rules by mining systematic changes over source code history, i.e., not just from bug-fixes or system releases, to ensure that changes are consistently applied over source code. We focus on structural changes done to support API modification or evolution with the goal of providing better rules to developers. Also, rules are mined from predefined rule patterns that ensure their quality. In order to assess the precision of such specific rules to detect real violations, we compare them with generic rules provided by tools to detect coding standard violations on four real world systems covering two programming languages. The results show that specific rules are more precise in identifying real violations in source code than generic ones, and thus can complement them.
keyword : moose lse-pub raweb2013
Type de document :
Communication dans un congrès
Working Conference on Reverse Engineering (WCRE'13), Oct 2013, Koblenz, Germany. 2013
Liste complète des métadonnées
Contributeur : Lse Lse <>
Soumis le : mercredi 4 septembre 2013 - 11:38:33
Dernière modification le : jeudi 11 janvier 2018 - 06:22:25
Document(s) archivé(s) le : jeudi 6 avril 2017 - 09:40:17


Fichiers produits par l'(les) auteur(s)


  • HAL Id : hal-00854861, version 1


Andre Hora, Nicolas Anquetil, Stéphane Ducasse, Marco Tulio Valente. Mining System Specific Rules from Change Patterns. Working Conference on Reverse Engineering (WCRE'13), Oct 2013, Koblenz, Germany. 2013. 〈hal-00854861〉



Consultations de la notice


Téléchargements de fichiers