Retour au glossaire
Code Review & Qualite

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.

Pourquoi c'est important

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.

Exemple

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.

Termes lies

lintingwhat is lintinglintercode linting

Automatisez le Code Review avec diffray

Systeme d'IA multi-agent pour code review. Trouve automatiquement bugs, vulnerabilites de securite et problemes d'architecture.