mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
740c4f269d
## Intent Keep Bazel and Starlark files consistently formatted without requiring contributors to install or version buildifier themselves. ## Implementation - Add a SHA-256-pinned, cross-platform DotSlash manifest for buildifier v8.5.1. - Run buildifier from the shared `just fmt` and `just fmt-check` driver, with Windows-safe explicit DotSlash invocation. - Provision DotSlash in formatting CI and contributor devcontainers, and document the source-build prerequisite. - Apply the initial mechanical buildifier formatting baseline.
33 lines
824 B
Python
33 lines
824 B
Python
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
|
|
|
|
exports_files(["lint_aspect.bzl"])
|
|
|
|
rust_library(
|
|
name = "argument-comment-lint-lib",
|
|
srcs = [
|
|
"src/comment_parser.rs",
|
|
"src/lib.rs",
|
|
],
|
|
crate_features = ["bazel_native"],
|
|
crate_name = "argument_comment_lint",
|
|
crate_root = "src/lib.rs",
|
|
edition = "2024",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["@argument_comment_lint_crates//:clippy_utils"],
|
|
)
|
|
|
|
rust_binary(
|
|
name = "argument-comment-lint-driver",
|
|
srcs = ["driver.rs"],
|
|
crate_name = "argument_comment_lint_driver",
|
|
crate_root = "driver.rs",
|
|
edition = "2024",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":argument-comment-lint-lib",
|
|
"@zlib//:z",
|
|
],
|
|
)
|