JavaScript has become one of the widely-used languages. However, as the size of JavaScript-based applications grows, the number of defects grows as well. Recent studies have produced a set of manually defined rules to identify these defects. We propose, in this work, the automation of deriving these rules to ensure scalability and potentially the detection of a wider set of defects without requiring any extensive knowledge on rules tuning. To this end, we rely on a base of existing code smells that is used to train the detection rules using Genetic Programming and find the best threshold of metrics composing the rules. The evaluation of our work on 9 JavaScript web projects has shown promising results in terms of detection precision of 92% and recall of 85%, with no threshold tuning required.
CITATION STYLE
Shoenberger, I., Mkaouer, M. W., & Kessentini, M. (2017). On the use of smelly examples to detect code smells in Javascript. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 10200 LNCS, pp. 20–34). Springer Verlag. https://doi.org/10.1007/978-3-319-55792-2_2
Mendeley helps you to discover research relevant for your work.