Skip to content

Releases: apple/apple_rules_lint

0.4.0

28 Aug 13:09
Compare
Choose a tag to compare

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

0.3.2

27 Oct 12:57
Compare
Choose a tag to compare

This release includes features to allow apple_rules_lint to be used with bzlmod

To install:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "apple_rules_lint",
    strip_prefix = "apple_rules_lint-0.3.2",
    sha256 = "7c3cc45a95e3ef6fbc484a4234789a027e11519f454df63cbb963ac499f103f9",
    url = "https://github.com/apple/apple_rules_lint/archive/refs/tags/0.3.2.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

Full Changelog: 0.2.0...0.3.2

0.3.1

27 Oct 10:48
Compare
Choose a tag to compare

This release includes features to allow apple_rules_lint to be used with bzlmod

To install:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "apple_rules_lint",
    strip_prefix = "apple_rules_lint-0.3.1",
    sha256 = "119ecfbecc1befa66d1787b33f39c1250023f5546c73915b2181913628edf21b",
    url = "https://github.com/apple/apple_rules_lint/archive/refs/tags/0.3.1.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

Full Changelog: 0.2.0...0.3.1

0.3.0

27 Oct 10:27
Compare
Choose a tag to compare

This release includes features to allow apple_rules_lint to be used with bzlmod

To install:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "apple_rules_lint",
    strip_prefix = "apple_rules_lint-0.3.0",
    sha256 = "d185f273993dfa64dcf1c4d4e3460eca5b21deecfc04d0388e63a9760b2f6789",
    url = "https://github.com/apple/apple_rules_lint/archive/refs/tags/0.3.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

Full Changelog: 0.2.0...0.3.0

0.2.0

22 Sep 13:59
Compare
Choose a tag to compare

This release includes features to allow apple_rules_lint to be used with bzlmod

To install:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "apple_rules_lint",
    sha256 = "78223d7c8372d025fc377a17aca83961c3d9d4829bcbb9f12476cea212ea70ea",
    strip_prefix = "apple_rules_lint-0.2.0",
    url = "https://github.com/apple/apple_rules_lint/archive/0.2.0.zip",
)

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",
})

0.1.1

12 Mar 10:08
Compare
Choose a tag to compare

This includes targets to expose bzl_library targets required for use with Stardoc.

To install:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "apple_rules_lint",
    sha256 = "8feab4b08a958b10cb2abb7f516652cd770b582b36af6477884b3bba1f2f0726",
    strip_prefix = "apple_rules_lint-0.1.1",
    url = "https://github.com/apple/apple_rules_lint/archive/0.1.1.zip",
)

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",
})

0.1.0

09 Oct 17:11
Compare
Choose a tag to compare

Introducing apple_rules_lint

To use, please add the following to your WORKSPACE

http_archive(
    name = "apple_rules_lint",
    sha256 = "ece669d52998c7a0df2c2380f37edbf4ed8ebb1a03587ed1781dfbececef9b3d",
    urls = [
        "https://github.com/apple/apple_rules_lint/releases/download/0.1.0/apple_rules_lint-0.1.0.tar.gz",
    ],
)

load("@apple_rules_lint//lint:repositories.bzl", "lint_deps")

lint_deps()

load("@apple_rules_lint//lint:setup.bzl", "lint_setup")

# Add your linters here.
lint_setup({
#    "lint_example": "//:default_config",
})

It is strongly advised that apple_rules_lint is one of the first rulesets you load.