Skip to content

Releases: aspect-build/rules_lint

v2.1.0

06 Feb 18:42
35ee869

Choose a tag to compare

Add this to your file:

bazel_dep(name = "aspect_rules_lint", version = "2.1.0")

This repo also provides a lint task for the Aspect CLI.
Add this to your MODULE.aspect file:

# AXL dependencies; see https://github.com/aspect-extensions
axl_archive_dep(
    name = "aspect_rules_lint",
    urls = ["https://github.com/aspect-build/rules_lint/releases/download/v2.1.0/rules_lint-v2.1.0.tar.gz"],
    integrity = "sha256-qWqBKcNP3dILV0Jwoa1ovT1NkwcRGej+KC2Fld83UrM=",
    strip_prefix = "rules_lint-2.1.0",
    dev = True,
    auto_use_tasks = True,
)

Then, follow the install instructions for

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

26 Jan 18:20
b9d53b0

Choose a tag to compare

Add this to your file:

bazel_dep(name = "aspect_rules_lint", version = "2.0.0")

This repo also provides a task for the Aspect CLI.
Add this to your MODULE.aspect file:

# AXL dependencies; see https://github.com/aspect-extensions
axl_archive_dep(
    name = "aspect_rules_lint",
    urls = ["https://github.com/aspect-build/rules_lint/releases/download/v2.0.0/rules_lint-v2.0.0.tar.gz"],
    integrity = "sha256-iz6cRBEh1sGZqjY4wIgzqw2jZ08Nvs3gR6JqIBDEtWE=",
    strip_prefix = "rules_lint-2.0.0",
    dev = True,
    auto_use_tasks = True,
)

Then, follow the install instructions for

What's Changed

New Contributors

Full Changelog: v1.13.0...v2.0.0

v2.0.0-rc1

23 Jan 22:44
00fa8e2

Choose a tag to compare

Add this to your file:

bazel_dep(name = "aspect_rules_lint", version = "2.0.0-rc1")

This repo also provides a task for the Aspect CLI.
Add this to your file:

# AXL dependencies; see https://github.com/aspect-extensions
axl_archive_dep(
    name = "aspect_rules_lint",
    urls = ["https://github.com/aspect-build/rules_lint/releases/download/vv2.0.0-rc1/rules_lint-vv2.0.0-rc1.tar.gz"],
    integrity = sha256-oK830SYeQmCWkTPTpgiP2yM/TPIgiXJ8nm8BsWnpYSg=,
    strip_prefix = "rules_lint-v2.0.0-rc1",
    dev = True,
    auto_use_tasks = True,
)

Then, follow the install instructions for

What's Changed

New Contributors

Full Changelog: v2.0.0-rc0...v2.0.0-rc1

v2.0.0-rc0

12 Jan 23:08
d402d73

Choose a tag to compare

Add the to your file:

bazel_dep(name = "aspect_rules_lint", version = "2.0.0-rc0")

Then, follow the install instructions for

What's Changed

  • Bump ty version and use force-exclude by @jimmyt857 in #695
  • chore: fix broken links by @alexeagle in #700
  • chore(deps): force users past another bazel-lib fix by @alexeagle in #705
  • Revert "chore(deps): force users past another bazel-lib fix" by @alexeagle in #706
  • fix: ktlint on bazel 9, found in bazel-starters/kotlin by @alexeagle in #709
  • feat: Add bandit linter by @Synss in #704
  • chore: Update reference link in config.yaml by @b3cramer in #696
  • feat: Improve support of hermetic toolchains with clang tidy by @Synss in #597

New Contributors

Full Changelog: v2.0.0-beta.1...v2.0.0-rc0

v2.0.0-beta.1

01 Jan 07:56
e0ea949

Choose a tag to compare

Add the to your file:

bazel_dep(name = "aspect_rules_lint", version = "2.0.0-beta.1")

Then, follow the install instructions for

What's Changed

  • refactor: python by @alexeagle in #686
  • fix: toml formatter wasn't provided for macos-aarch64 by @alexeagle in #687
  • fix: Handle "no-lint" tag with clang-tidy by @Synss in #689
  • fix(ty): check existence of extra search paths before passing to ty by @protocol7 in #688
  • fix(ty): short-circuit non-py targets before looking at srcs by @alexeagle in #692
  • chore(deps): update MODULE.aspect by @alexeagle in #685

New Contributors

Full Changelog: v2.0.0-beta.0...v2.0.0-beta.1

v2.0.0-beta.0

23 Dec 04:21
6847809

Choose a tag to compare

Add the to your file:

bazel_dep(name = "aspect_rules_lint", version = "2.0.0-beta.0")

Then, follow the install instructions for

What's Changed

New Contributors

Full Changelog: v1.13.0...v2.0.0-beta.0

v1.13.0

17 Dec 00:04
58a4cae

Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_lint", version = "1.13.0")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.13.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.13.0/docs/formatting.md

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_lint",
    sha256 = "78e0d8b35270be83f4ee0895b2327d5165016b7a2c9204ac50c2a9b98852bbe9",
    strip_prefix = "rules_lint-1.13.0",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.13.0/rules_lint-v1.13.0.tar.gz",
)

http_archive(
    name = "bazel_lib",
    sha256 = "0758ace949a93f709230a8e08ef35c5f0aacae2ff5d219b27da1d21d8233a709",
    strip_prefix = "bazel-lib-3.0.0-rc.0",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.0-rc.0/bazel-lib-v3.0.0-rc.0.tar.gz",
)

load("@bazel_lib//lib:repositories.bzl", "bazel_lib_dependencies")

bazel_lib_dependencies()

load(
    "@aspect_rules_lint//format:repositories.bzl",
    # Fetch additional formatter binaries you need:
    "fetch_java_format",
    "fetch_ktfmt",
    "fetch_swiftformat",
    "rules_lint_dependencies",
)

rules_lint_dependencies()

fetch_java_format()

fetch_ktfmt()

fetch_swiftformat()

load("@aspect_rules_lint//lint:checkstyle.bzl", "fetch_checkstyle")

fetch_checkstyle()

load("@aspect_rules_lint//lint:pmd.bzl", "fetch_pmd")

fetch_pmd()

load("@aspect_rules_lint//lint:vale.bzl", "fetch_vale")

fetch_vale()

load("@aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint")

fetch_ktlint()

load("@aspect_rules_lint//lint:spotbugs.bzl", "fetch_spotbugs")

fetch_spotbugs()

########################
# Optional: multitool provides defaults for some tools such as yamlfmt
# If you do not set up multitool, you must provide these tools yourself
load("@rules_multitool//multitool:multitool.bzl", "multitool")

multitool(
    name = "multitool",
    lockfiles = [
        "@aspect_rules_lint//format:multitool.lock.json",
        "@aspect_rules_lint//lint:multitool.lock.json",
    ],
)

http_archive(
    name = "cppcheck_linux",
    build_file = "//tools/lint:cppcheck.BUILD",
    integrity = "sha256-IqQ3Iofw6LoHh4YcdbN0m3tjg6utCiey7nGaOaPMv/I=",
    strip_prefix = "cppcheckpremium-25.8.3",
    urls = ["https://files.cppchecksolutions.com/25.8.3/ubuntu-22.04/cppcheckpremium-25.8.3-amd64.tar.gz"],
)

http_archive(
    name = "cppcheck_macos",
    build_file = "//tools/lint:cppcheck.BUILD",
    integrity = "sha256-PEtm/DxKNZNJJuZE+56AZ80R22sZjZoziekAmR7FhNk=",
    strip_prefix = "cppcheckpremium",
    urls = ["https://files.cppchecksolutions.com/25.8.3/cppcheckpremium-25.8.3-macos-15.tar.gz"],
)

What's Changed

New Contributors

Full Changelog: v1.12.0...v1.13.0

v1.12.0

03 Dec 15:14
c0df494

Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_lint", version = "1.12.0")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.12.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.12.0/docs/formatting.md

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_lint",
    sha256 = "a8a63bd071a39bd5be1f99d9f258eac674673c98505f9fc5b4c76587f67278cd",
    strip_prefix = "rules_lint-1.12.0",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.12.0/rules_lint-v1.12.0.tar.gz",
)

http_archive(
    name = "bazel_lib",
    sha256 = "0758ace949a93f709230a8e08ef35c5f0aacae2ff5d219b27da1d21d8233a709",
    strip_prefix = "bazel-lib-3.0.0-rc.0",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.0-rc.0/bazel-lib-v3.0.0-rc.0.tar.gz",
)

load("@bazel_lib//lib:repositories.bzl", "bazel_lib_dependencies")

bazel_lib_dependencies()

load(
    "@aspect_rules_lint//format:repositories.bzl",
    # Fetch additional formatter binaries you need:
    "fetch_java_format",
    "fetch_ktfmt",
    "fetch_swiftformat",
    "rules_lint_dependencies",
)

rules_lint_dependencies()

fetch_java_format()

fetch_ktfmt()

fetch_swiftformat()

load("@aspect_rules_lint//lint:checkstyle.bzl", "fetch_checkstyle")

fetch_checkstyle()

load("@aspect_rules_lint//lint:pmd.bzl", "fetch_pmd")

fetch_pmd()

load("@aspect_rules_lint//lint:vale.bzl", "fetch_vale")

fetch_vale()

load("@aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint")

fetch_ktlint()

load("@aspect_rules_lint//lint:spotbugs.bzl", "fetch_spotbugs")

fetch_spotbugs()

########################
# Optional: multitool provides defaults for some tools such as yamlfmt
# If you do not set up multitool, you must provide these tools yourself
load("@rules_multitool//multitool:multitool.bzl", "multitool")

multitool(
    name = "multitool",
    lockfiles = [
        "@aspect_rules_lint//format:multitool.lock.json",
        "@aspect_rules_lint//lint:multitool.lock.json",
    ],
)

http_archive(
    name = "cppcheck_linux",
    build_file = "//tools/lint:cppcheck.BUILD",
    integrity = "sha256-IqQ3Iofw6LoHh4YcdbN0m3tjg6utCiey7nGaOaPMv/I=",
    strip_prefix = "cppcheckpremium-25.8.3",
    urls = ["https://files.cppchecksolutions.com/25.8.3/ubuntu-22.04/cppcheckpremium-25.8.3-amd64.tar.gz"],
)

http_archive(
    name = "cppcheck_macos",
    build_file = "//tools/lint:cppcheck.BUILD",
    integrity = "sha256-PEtm/DxKNZNJJuZE+56AZ80R22sZjZoziekAmR7FhNk=",
    strip_prefix = "cppcheckpremium",
    urls = ["https://files.cppchecksolutions.com/25.8.3/cppcheckpremium-25.8.3-macos-15.tar.gz"],
)

What's Changed

New Contributors

Full Changelog: v1.11.0...v1.12.0

v1.11.0

18 Nov 15:12
f26ea9c

Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_lint", version = "1.11.0")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.11.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.11.0/docs/formatting.md

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_lint",
    sha256 = "329cf5ba776a75b70049a5695e9ca29a25113230f4f447aff7102b62afe7c24a",
    strip_prefix = "rules_lint-1.11.0",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.11.0/rules_lint-v1.11.0.tar.gz",
)

http_archive(
    name = "bazel_lib",
    sha256 = "0758ace949a93f709230a8e08ef35c5f0aacae2ff5d219b27da1d21d8233a709",
    strip_prefix = "bazel-lib-3.0.0-rc.0",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.0-rc.0/bazel-lib-v3.0.0-rc.0.tar.gz",
)

load("@bazel_lib//lib:repositories.bzl", "bazel_lib_dependencies")

bazel_lib_dependencies()

load(
    "@aspect_rules_lint//format:repositories.bzl",
    # Fetch additional formatter binaries you need:
    "fetch_java_format",
    "fetch_ktfmt",
    "fetch_swiftformat",
    "rules_lint_dependencies",
)

rules_lint_dependencies()

fetch_java_format()

fetch_ktfmt()

fetch_swiftformat()

load("@aspect_rules_lint//lint:checkstyle.bzl", "fetch_checkstyle")

fetch_checkstyle()

load("@aspect_rules_lint//lint:pmd.bzl", "fetch_pmd")

fetch_pmd()

load("@aspect_rules_lint//lint:vale.bzl", "fetch_vale")

fetch_vale()

load("@aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint")

fetch_ktlint()

load("@aspect_rules_lint//lint:spotbugs.bzl", "fetch_spotbugs")

fetch_spotbugs()

########################
# Optional: multitool provides defaults for some tools such as yamlfmt
# If you do not set up multitool, you must provide these tools yourself
load("@rules_multitool//multitool:multitool.bzl", "multitool")

multitool(
    name = "multitool",
    lockfiles = [
        "@aspect_rules_lint//format:multitool.lock.json",
        "@aspect_rules_lint//lint:multitool.lock.json",
    ],
)

What's Changed

New Contributors

Full Changelog: v1.10.2...v1.11.0

v1.10.2

14 Oct 13:55
98fd4dd

Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_lint", version = "1.10.2")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.10.2/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.10.2/docs/formatting.md

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_lint",
    sha256 = "08ca35553d7dd3fc36589825ab3a2fbea18b71ad4a0d20d6c63493523896efe5",
    strip_prefix = "rules_lint-1.10.2",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.10.2/rules_lint-v1.10.2.tar.gz",
)

http_archive(
    name = "bazel_lib",
    sha256 = "0758ace949a93f709230a8e08ef35c5f0aacae2ff5d219b27da1d21d8233a709",
    strip_prefix = "bazel-lib-3.0.0-rc.0",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.0-rc.0/bazel-lib-v3.0.0-rc.0.tar.gz",
)

load("@bazel_lib//lib:repositories.bzl", "bazel_lib_dependencies")

bazel_lib_dependencies()

load(
    "@aspect_rules_lint//format:repositories.bzl",
    # Fetch additional formatter binaries you need:
    "fetch_java_format",
    "fetch_ktfmt",
    "fetch_swiftformat",
    "rules_lint_dependencies",
)

rules_lint_dependencies()

fetch_java_format()

fetch_ktfmt()

fetch_swiftformat()

load("@aspect_rules_lint//lint:checkstyle.bzl", "fetch_checkstyle")

fetch_checkstyle()

load("@aspect_rules_lint//lint:pmd.bzl", "fetch_pmd")

fetch_pmd()

load("@aspect_rules_lint//lint:vale.bzl", "fetch_vale")

fetch_vale()

load("@aspect_rules_lint//lint:ktlint.bzl", "fetch_ktlint")

fetch_ktlint()

load("@aspect_rules_lint//lint:spotbugs.bzl", "fetch_spotbugs")

fetch_spotbugs()

########################
# Optional: multitool provides defaults for some tools such as yamlfmt
# If you do not set up multitool, you must provide these tools yourself
load("@rules_multitool//multitool:multitool.bzl", "multitool")

multitool(
    name = "multitool",
    lockfiles = [
        "@aspect_rules_lint//format:multitool.lock.json",
        "@aspect_rules_lint//lint:multitool.lock.json",
    ],
)

Full Changelog: v1.10.1...v1.10.2