Back to Glossary
Code Review & Quality

Linting

The process of running a program that analyzes code for potential errors, bugs, stylistic issues, and suspicious constructs.

Definition

A linter is a static analysis tool that flags programming errors, bugs, stylistic errors, and suspicious constructs. The term comes from a Unix tool called "lint" that examined C source code. Modern linters like ESLint (JavaScript), Pylint (Python), and RuboCop (Ruby) check for syntax errors, undefined variables, unused code, formatting inconsistencies, and potential bugs.

Why It Matters

Linting catches common mistakes instantly as you code. It enforces consistent code style across teams, reducing code review friction. Most IDEs integrate linters for real-time feedback. ESLint alone catches approximately 25% of JavaScript bugs before code even runs.

Example

ESLint flags a variable that's declared but never used, a missing semicolon, and an undefined function call — all before the code is even committed.

Related Terms

lintingwhat is lintinglintercode linting

Automate Code Review with diffray

Multi-agent AI system for code review. Automatically finds bugs, security vulnerabilities, and architecture issues.