Skip to content

v1.0.0-rc0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 May 21:06
· 111 commits to main since this release
43971f9

📣 first semver-stable release!

Starting with this release, we promise No Breaking Changes until 2.0.

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-rc0")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc0/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 = "0dd87ae1dc089444428765ccf085ffb6e115eac3dab496e69461342a665e3908",
    strip_prefix = "rules_lint-1.0.0-rc0",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc0/rules_lint-v1.0.0-rc0.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:ruff.bzl", "fetch_ruff")

fetch_ruff()

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

  • docs: clarify warning vs error by @alexeagle in #241
  • chore: Real time instead of user time when formatting by @honnix in #240
  • feat: format.sh has same behavior with arguments by @mrmeku in #244
  • chore: bump example to rules_js 2.0.0-alpha.7 by @gregmagolan in #247
  • chore: upgrade example to eslint 9 by @alexeagle in #246
  • feat(format): add SCSS and Less as CSS variants by @alexeagle in #248
  • feat: print better command to fix format check fails by @alexeagle in #249
  • chore(deps): example update to rules_js2 RC by @alexeagle in #250
  • fix(example): demonstrate use of type definitions in eslint aspect by @jgao54 in #174
  • docs(format): include API docs for each language/tool by @alexeagle in #251

New Contributors

Full Changelog: v0.21.0...v1.0.0-rc0