Skip to content

0.4.0

Latest
Compare
Choose a tag to compare
@shs96c shs96c released this 28 Aug 13:09

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

New Contributors

Full Changelog: 0.3.2...0.4.0