arXiv · 2009.10801
DeepIaC: Deep Learning-Based Linguistic Anti-pattern Detection in IaC
Abstract
Linguistic anti-patterns are recurring poor practices concerning inconsistencies among the naming, documentation, and implementation of an entity. They impede readability, understandability, and maintainability of source code. This paper attempts to detect linguistic anti-patterns in infrastructure as code (IaC) scripts used to provision and manage computing environments. In particular, we consider inconsistencies between the logic/body of IaC code units and their names. To this end, we propose a novel automated approach that employs word embeddings and deep learning techniques. We build and use the abstract syntax tree of IaC code units to create their code embedments. Our experiments with a dataset systematically extracted from open source repositories show that our approach yields an accuracy between0.785and0.915in detecting inconsistencies
Explore related subjects
Keep this discovery
Nemania Borovits, Indika Kumara, Parvathy Krishnan, Stefano Dalla Palma, Dario Di Nucci, Fabio Palomba, Damian A. Tamburri, Willem-Jan van den Heuvel. 2020-09-22. DeepIaC: Deep Learning-Based Linguistic Anti-pattern Detection in IaC. https://arxiv.org/abs/2009.10801
Cite the original work for its findings. Save a collection to share your selection of sources.