Overview of rules_lint
mainThe rules_lint ruleset integrates linting and formatting as first-class concepts under Bazel. It is designed to work with your existing Bazel rules and BUILD files without requiring changes to them. Instead of adding lint wrapper macros, you simply lint your existing *_library targets.
Key features include:
- Incremental: Lint checks and fixes run as normal Bazel actions, supporting Remote Execution and Remote Caching.
- Water Leak Principle: You can lint only changed files, allowing you to start linting new changes even in repositories with many existing issues.
- Formatting: Can format files not known to Bazel (like shell scripts) by running directly on the file tree.
- Configuration: Honors the same configuration files used by these tools outside of Bazel (e.g., in your editor).