Skip to content

Linter

A tool that examines code for particular problems using configured rules.

Software quality

What is a linter?

A linter examines code using configured rules. These may address possible errors, agreed code conventions or style. The language, files and patterns checked depend on the tool and configuration. Linting is therefore not limited to indentation, but it is not a complete check of application behaviour either.

In a fictional portal project, an enabled rule might flag an unused variable in the request module. The team checks whether to remove it or whether it points to a forgotten processing step. Some findings can be fixed automatically; others require a decision. Changes need to remain traceable. A clean lint run establishes only the rules performed on included files; tests and business-focused code review remain complementary tasks.

Sources