mirror of
https://github.com/The-OpenROAD-Project/OpenROAD.git
synced 2026-06-02 01:08:34 +08:00
Implements #9858 (#8495). Adds three new targets mirroring the TCL lint pattern: //:lint_bzl_test - buildifier -mode=check -lint=warn (lint check) //:fmt_bzl_test - buildifier -mode=check -lint=off (format check) //:tidy_bzl - buildifier -mode=fix -lint=fix (auto-fix) Wires lint_bzl_test and fmt_bzl_test into //:lint_test, and bzl_tidy.sh + bzl_lint_test.sh into //:fix_lint. Adds buildifier_prebuilt 6.4.0 as a dev_dependency in MODULE.bazel. Uses git ls-files for file discovery, which automatically skips submodule paths (src/sta, third-party/abc). Explicit -mode=check flags override the repo-root .buildifier.json default (mode: fix), ensuring test targets remain read-only. Updates docs/contrib/LintTargets.md: moves buildifier from "Planned additions" to "Available targets". Signed-off-by: alokkumardalei-wq <alokkumardalei2@gmail.com>