Rules_lint: Formatting and Linting All Languages
summary
rules_lint v1.0 provides a single, repo-level formatting workflow (per-file, editor-consistent, run via pre-commit) and a separate linting workflow that runs across the Bazel graph using aspects, producing reports, patch files and exit codes. It wires common tools with rules_multi_tool and a multi-run shim (formator_multiun / multiun), avoids changing BUILD files, supports Ruff, shellcheck, clang‑tidy and more, and supplies a lint.sh helper to fetch and apply fixes or surface failures in CI.
AI-written summary · about
chapters (12)
- 0:00rules_lint introduction
- 1:05Linting vs formatting
- 3:54Formatting principles
- 7:22Using formatting in repo
- 10:49Linting goals
- 13:18Implementing with Aspects
- 19:15Three linting workflows
- 22:23Next steps
- 22:43Q&A: Validation vs Aspects
- 23:46Q&A: Multiple linters
- 25:29Q&A: Aspects syntax
- 26:11Q&A: mypy and PEP








