SMEAGOL
a static code smell detector for MongoDB
Informazioni aggiuntive
Autori
Cherry B.,
Nagy C.,
Lanza M.,
Cleve A.
Tipo
Contributo in atti di convegno
Anno
2024
Lingua
Inglese
Sommario
MongoDB is one of the most popular NoSQL database engines. To foster scalability, it provides multiple features such as schema-less data storage or sharding. However, those new features introduce additional considerations for the maintainer to be careful, which might lead to erroneous implementation choices often referred to as code smells or antipatterns. Detecting and fixing those code smells can play a crucial role for developers in their maintenance efforts. We present SMEAGOL (SMEll and Antipattern detection for monGOdb appLications), a static analysis tool to detect MongoDB code smells in JavaScript applications. SMEAGOL relies on CodeQL and detects code smells by analyzing and extracting all the necessary information (e.g., data structure) from the database access code of the application. We demonstrate it by examining the evolution of MongoDB code smells in five popular open-source projects, showing promising results.
Parole chiave
Code smells, Static analysis, MongoDB, JavaScript
Titolo atti di convegno
2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER)
Pagine (o numero dell’articolo)
816-820
Diffusione
Licenza
Licenza non definita
Visibilità
Pubblico
Status open access
Green