linting
Pronunciation: LIN-ting
The automated static analysis of source code to detect stylistic errors, suspicious constructs, and deviations from coding standards.
Full Definition
Linting derives from 'lint', the original Unix tool that flagged problematic C code. Modern linters (ESLint, Pylint, RuboCop, etc.) enforce both stylistic conventions and correctness rules before code is compiled or run. In editorial contexts, editors will encounter 'linting' as a gerund/noun and 'lint' as both a verb and noun; 'linter' refers to the tool. The verb form 'to lint' is acceptable in technical prose. Editors should not confuse linting with unit testing: linting analyses code structure without executing it, while unit testing validates runtime behaviour.
Usage
Usage note: 'Lint' (noun/verb), 'linter' (tool), 'linting' (gerund). All lowercase unless starting a sentence.
In Context
- "Linting is enforced as a pre-commit hook to prevent style violations from entering the repository." — Developer workflow guide
- "The CI pipeline runs linting, unit tests, and integration tests in sequence." — DevOps documentation