Frequent questions about lint: how it relates to the compiler, whether it slows development, and which linter to pick.
- Linter vs compiler?
The compiler translates code; a linter critiques code. Many linters run inside compilers now (Go's vet, Rust's clippy, TypeScript's --strict).
- Does lint slow development?
On save, it is invisible. On a pre-commit hook, it takes a second. In CI, it takes a few seconds. The cost is far below a broken build.
- Which linter to pick?
The one with the most maintained rules for your language and the most adoption in your community. ESLint for JavaScript, PHP_CodeSniffer and PHPStan for PHP, clippy for Rust, golangci-lint for Go.
- Can a project run without a linter?
Yes, and many do. They compensate with stronger review and slower releases. Lint is a shortcut, not a requirement.