English

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

Software Engineering 2022-04-11 v1

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. 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.

Keywords

Cite

@article{arxiv.2203.08877,
  title  = {Code Smells in Elixir: Early Results from a Grey Literature Review},
  author = {Lucas Francisco da Matta Vegi and Marco Tulio Valente},
  journal= {arXiv preprint arXiv:2203.08877},
  year   = {2022}
}

Comments

Accepted at 30th IEEE/ACM International Conference on Program Comprehension (ICPC'22 ERA), 5 pages, 2022

R2 v1 2026-06-24T10:16:12.064Z