Code Smells in Elixir: Early Results from a Grey Literature Review

Lucas Francisco da Matta Vegi, Marco Tulio Valente
3/16/2022
cs.SE

Official code: lucasvegi/Elixir-Code-Smells (1,513 stars, Elixir, MIT, last commit 2024-09-12).

Abstract

Elixir is a new functional programming language whose popularity is rising in the industry. However, there are few works in the literature focused on studying the internal quality of systems implemented in this language.

Show full abstract

Particularly, to the best of our knowledge, there is currently no catalog of code smells for Elixir. Therefore, in this paper, through a grey literature review, we investigate whether Elixir developers discuss code smells. Our preliminary results indicate that 11 of the 22 traditional code smells cataloged by Fowler and Beck are discussed by Elixir developers. We also propose a list of 18 new smells specific for Elixir systems and investigate whether these smells are currently identified by Credo, a well-known static code analysis tool for Elixir. We conclude that only two traditional code smells and one Elixir-specific code smell are automatically detected by this tool. Thus, these early results represent an opportunity for extending tools such as Credo to detect code smells and then contribute to improving the internal quality of Elixir systems.

View on arXivView PDF

Code Implementations(1)

MIT

Catalog of Elixir-specific code smells

1,51356ElixirFeb 15, 20222 years agoMIT
code-smellselixirelixir-exampleselixir-langsoftware-quality

Similar Papers

Cite this paper

@article{vegi2022code,
  title  = {Code Smells in Elixir: Early Results from a Grey Literature Review},
  author = {Lucas Francisco da Matta Vegi and Marco Tulio Valente},
  year   = {2022},
  eprint = {2203.08877},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08877}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08877.svg)](https://codeofpaper.com/paper/2203.08877)

Discussion