26. Linters and Code Quality
A linter is a check that identifies problematic or error-prone patterns in code. Linters can also be used to enforce project-specific standards for documentation, code style, or file structure. Lean includes a number of linters, along with a framework for defining custom linters and extracting metrics from them.
Linters are useful for individuals working on small problems in order to catch mistakes early. For larger problems or groups working together, configuring the different kinds of available linter workflows allow the team to improve their collaboration. As a projects needs evolve, it may even become necessary to write custom linters.