arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.08877cs.SE
收藏

Elixir中的代码气味:来自灰色文献综述的早期结果

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

Lucas Francisco da Matta Vegi, Marco Tulio Valente

摘要:

Elixir是一种新的函数式程序设计语言,其流行度在业界不断上升。然而,在文献中很少有作品专注于研究这种语言实现的系统的内部质量。特别是,据我们所知,目前还没有Elixir的代码气味目录。因此,在本文中,通过灰色文献综述,我们调查Elixir开发人员是否讨论代码气味。我们的初步结果表明,11个传统的代码气味编目的22个由福勒和贝克是由Elixir开发人员讨论。我们还提出了一个18个新的气味具体的Elixir系统,并调查这些气味是否目前确定的信条,一个著名的静态代码分析工具Elixir。我们的结论是,只有两个传统的代码气味和一个Elixir特定的代码气味自动检测该工具。因此,这些早期的结果代表了一个机会,可以扩展Credo等工具来检测代码气味,然后有助于提高Elixir系统的内部质量。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑