What does linter mean?
A linter is a program or other tool that inspects source code, scripts, or configuration files and reports errors, style violations, and potentially unsafe or inconsistent patterns. Developers run linters during coding and continuous integration, configuring the rules that determine what is considered a problem. The related verb “lint” denotes the checking process, while “linter” names the tool that performs it. The word also has an older textile meaning: a machine or person that removes lint, or tiny loose fibers, from fabric or yarn. Although some software tools perform several related tasks, a linter is most precisely associated with rule-based detection rather than automatic correction. In general use, “linter” is chiefly a computing term, and the expression “code linter” makes that sense especially clear. Understanding the distinction between the tool, the process, and the material called lint is useful in both programming and textile contexts.
nounA software tool that checks source code or configuration files for errors, style violations, and potentially problematic patterns according to defined rules. The term can also refer more broadly to a person or machine that removes lint from fabric.
- A software tool that examines source code or configuration files for errors, inconsistencies, and violations of specified coding or style rules.
- A machine or person employed to remove lint from fabric or yarn.
"The project’s linter flagged several formatting errors before the code was merged."
"The linter reported an unused variable and two inconsistent indentation patterns."
"The factory’s linter removed loose fibers from the cloth before it was cut."
The plural is used for multiple checking tools or textile lint-removal devices.
"The developers configured separate linters for JavaScript and TypeScript."
What began as a machine for removing tiny fibers from fabric now helps programmers catch tiny flaws in code.
Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.
Where does linter come from?
The word was formed in English from “lint” and the agent or instrument suffix “-er,” reflecting an earlier use for a machine or person concerned with removing lint from fabric. The computing sense developed much later as a name for a tool that “lints” source code. “Lint” ultimately comes through Old French from Latin linum, meaning flax, the plant from which linen is made.
How linter is actually used
In computing, the term is primarily technical but is now common in software-development discussion. It usually denotes a rule-based checking tool, although some tools combine linting with broader static analysis or automatic formatting.
Easily confused with linter
A linter is the tool that performs checks, whereas lint is the material removed from fabric or, in computing, the process of checking code.