Rules_lint: Formatting and Linting All Languages - Alex Eagle, Aspect Build Systems
HTML-код
- Опубликовано: 6 фев 2025
- Rules_lint: Formatting and Linting All Languages - Alex Eagle, Aspect Build Systems
Tools for formatting code and performing static analysis are available in some of Bazel's language rules, but their approaches differ. This means each language has to be setup separately, and product engineers may have to learn multiple workflows across the full stack. rules_lint provides a consistent abstraction for plugging in language-specific tools, and avoids requiring changes either in language rulesets, or in user's BUILD files. In your repository you setup a single "format" workflow, and a single "linting" workflow. This talk explains why these two workflows are distinct. We'll explain how to integrate new tools into rules_lint, options for installing it into your repository, and show some nice ways that results can be integrated into developer workflows.