
lint
词源
源自中古英语 'lynet',可能来自拉丁语 'linteum'(亚麻布),与亚麻纤维的特性相关。编程术语的用法始于1978年贝尔实验室的C语言检查工具lint。
noun
❶ 指衣物或布料表面脱落的细小纤维或绒毛,常见于烘干机滤网或衣物接缝处。
“There's always so much lint in the dryer after washing towels.”
(洗完毛巾后烘干机里总是有很多绒毛。)
“She carefully removed the lint from her black sweater before the meeting.”
(她在开会前仔细清除了黑色毛衣上的毛球。)
❶ 在编程领域,指代码中可能存在的错误或不良实践,通常由静态分析工具检测出。
“The linter flagged several unused variables in my JavaScript code.”
(代码检查工具在我的JavaScript代码中标记了几个未使用的变量。)
“Always run lint checks before committing your code to the repository.”
(在提交代码到仓库前务必运行代码检查。)
verb
❶ 使用工具或程序检查代码中的潜在问题或风格违规。
“Remember to lint your React components before pushing changes.”
(推送修改前记得检查你的React组件代码。)
“The pre-commit hook automatically lints all modified files.”
(预提交钩子会自动检查所有修改过的文件。)
常见短语
lint trap — 指烘干机中收集衣物纤维的过滤装置,需要定期清理以防止火灾隐患。
“Clean the lint trap after every load to improve dryer efficiency.”
(每次使用后清理绒毛过滤器以提高烘干机效率。)
lint-free cloth — 专门用于清洁精密仪器或镜头的无绒布料,不会留下纤维残留。
“Always use a lint-free cloth when cleaning camera lenses.”
(清洁相机镜头时务必使用无绒布。)