首页> 外文期刊>IEEE Transactions on Software Engineering >The Adoption of JavaScript Linters in Practice: A Case Study on ESLint
【24h】

The Adoption of JavaScript Linters in Practice: A Case Study on ESLint

机译:在实践中采用JavaScript Linters:驻福州的案例研究

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

A linter is a static analysis tool that warns software developers about possible code errors or violations to coding standards. By using such a tool, errors can be surfaced early in the development process when they are cheaper to fix. For a linter to be successful, it is important to understand the needs and challenges of developers when using a linter. In this paper, we examine developers' perceptions on JavaScript linters. We study why and how developers use linters along with the challenges they face while using such tools. For this purpose we perform a case study on ESLint, the most popular JavaScript linter. We collect data with three different methods where we interviewed 15 developers from well-known open source projects, analyzed over 9,500 ESLint configuration files, and surveyed 337 developers from the JavaScript community. Our results provide practitioners with reasons for using linters in their JavaScript projects as well as several configuration strategies and their advantages. We also provide a list of linter rules that are often enabled and disabled, which can be interpreted as the most important rules to reason about when configuring linters. Finally, we propose several feature suggestions for tool makers and future work for researchers.
机译:LICTER是一个静态分析工具,警告软件开发人员可能是可能的代码错误或违规到编码标准。通过使用这样的工具,当它们更便宜到修复时,误差可以在开发过程中早期浮出水面。对于一个成功的Linter,重要的是要在使用LINTER时了解开发人员的需求和挑战。在本文中,我们将开发人员对JavaScript Linters的看法。我们研究了为什么和开发人员如何在使用此类工具时与他们面临的挑战一起使用。为此目的,我们对eslint进行了一个案例研究,最受欢迎的JavaScript Linter。我们通过三种不同的方法收集数据,我们从知名开源项目采访15个开发人员,分析了9,500多个eslint配置文件,并从JavaScript社区调查了337个开发人员。我们的结果为从业者提供了在JavaScript项目中使用Linters的原因以及多种配置策略及其优势。我们还提供了一系列常常启用和禁用的Linter规则列表,该规则可以被解释为在配置Linters时的原因最重要的规则。最后,我们为研究人员提出了若干特征建议,以及研究人员的未来工作。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号