Volver al glosario
Code Review y Calidad

Linting

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

Definicion

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.

Por que es importante

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.

Ejemplo

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.

Terminos relacionados

lintingwhat is lintinglintercode linting

Automatiza Code Review con diffray

Sistema de IA multi-agente para code review. Encuentra bugs, vulnerabilidades de seguridad y problemas de arquitectura automaticamente.