V2EX  ›  英汉词典

Linting

定义 Definition

Linting 指在编程中用工具对源代码进行静态检查,以发现潜在错误、风格问题和可维护性隐患(例如未使用变量、可疑语法、格式不一致等)。常见于提交代码前或持续集成(CI)流程中。

发音 Pronunciation (IPA)

/ˈlɪntɪŋ/

例句 Examples

I run linting before I commit my code.
我在提交代码之前会先运行代码静态检查。

Linting caught an unused import and a possible bug in the async function, so we fixed it before the release.
静态检查发现了一个未使用的导入以及异步函数里可能的漏洞,所以我们在发布前把它修好了。

词源 Etymology

lint 原指衣物上的“绒毛、线头”。在计算机领域里,Lint 最早是 Unix 上一个检查 C 语言代码可疑问题的工具名,后来“lint”逐渐泛化为“代码静态检查”,linting 则是“进行 lint 检查”的动作名词。

相关词 Related Words

文学/著作中的用例 Literary Works

  • The Pragmatic Programmer(Andrew Hunt, David Thomas)
  • Clean Code(Robert C. Martin)
  • Refactoring: Improving the Design of Existing Code(Martin Fowler)
  • JavaScript: The Good Parts(Douglas Crockford)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3036 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 09:45 · PVG 17:45 · LAX 01:45 · JFK 04:45
♥ Do have faith in what you're doing.