Skip to content

v1.0.0-rc6

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Jul 21:26
· 51 commits to main since this release
32c091a

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.0.0-rc6")

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

Using WORKSPACE

Paste this snippet into your file:

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

# aspect_rules_lint depends on aspect_bazel_lib. Either 1.x or 2.x works.
http_archive(
    name = "aspect_bazel_lib",
    sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3",
    strip_prefix = "bazel-lib-2.4.1",
    url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz",
)
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

# aspect_bazel_lib depends on bazel_skylib
aspect_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: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()

########################
# 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

  • chore: mirror latest vale release by @alexeagle in #310
  • Fix ironic typo by @SpencerC in #316
  • Changes by create-pull-request action by @github-actions in #315
  • fix: ruff 0.5.0 windows release doesn't nest a folder by @alexeagle in #318
  • feat: linter aspect factories allow customizing rule kinds by @alexeagle in #321
  • Changes by create-pull-request action by @github-actions in #328
  • feat: add GraphQL format support (#319) by @sallustfire in #322
  • Fix Rust formatting when //:format is called in different subdirectory by @dmeister in #327
  • feat: produce new human-readable output group by @alexeagle in #331
  • fix: connect eslint --debug by @sallustfire in #334
  • feat: color the human-readable outputs by @alexeagle in #333

New Contributors

Full Changelog: v1.0.0-rc5...v1.0.0-rc6