bzlmod
setup
# MODULE.bazel
bazel_dep(name = "apple_rules_lint", version = "0.4.0")
linter = use_extension("@apple_rules_lint//lint:extensions.bzl", "linter")
# An example of using a linter.
linter.configure(name = "java-spotbugs", config = "//java:spotbugs-config")
use_repo(linter, "apple_linters")
WORKSPACE
-based builds
# WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "apple_rules_lint",
strip_prefix = "apple_rules_lint-0.4.0",
sha256 = "483ea03d73d5fb33275d029da8d36811243fc32dfa4dc73a43acbb6f4b1af621",
url = "https://github.com/apple/apple_rules_lint/releases/download/0.4.0/apple_rules_lint-0.4.0.tar.gz",
)
load("@apple_rules_lint//lint:repositories.bzl", "lint_deps")
lint_deps()
load("@apple_rules_lint//lint:setup.bzl", "lint_setup")
lint_setup({
# Note: this is an example config!
"java-spotbugs": "//java:spotbugs-config",
})
What's Changed
- Add caveat to README by @jeffalder in #16
- Fix typo issue at README.md by @lamtrinhdev in #17
- Add support for external repositories by @fzakaria in #18
New Contributors
- @jeffalder made their first contribution in #16
- @lamtrinhdev made their first contribution in #17
- @fzakaria made their first contribution in #18
Full Changelog: 0.3.2...0.4.0