Releases: aspect-build/rules_lint
Releases · aspect-build/rules_lint
v1.5.0
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.5.0")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.5.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.5.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 = "02918f621ee4d4846455e31d6169521d09f7af161761cb1bf8ec7ed01101aeaf",
strip_prefix = "rules_lint-1.5.0",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.5.0/rules_lint-v1.5.0.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- Changes by create-pull-request action by @github-actions in #573
- Changes by create-pull-request action by @github-actions in #574
- Changes by create-pull-request action by @github-actions in #575
- Changes by create-pull-request action by @github-actions in #577
- feat: Format toml with taplo by @Synss in #576
New Contributors
Full Changelog: v1.4.5...v1.5.0
v1.4.5
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.4.5")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.4.5/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.4.5/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 = "8579389f5820f76dae0a7678838d7d35693ff226c17038ede170ae5c675d5ed6",
strip_prefix = "rules_lint-1.4.5",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.4.5/rules_lint-v1.4.5.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- Update the docs for all linters by @calliecameron in #564
- Changes by create-pull-request action by @github-actions in #565
- Changes by create-pull-request action by @github-actions in #568
- fix: make correct bzl_library targets by @alexeagle in #571
Full Changelog: v1.4.4...v1.4.5
v1.4.4
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.4.4")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.4.4/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.4.4/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 = "0dc1c02bdddd10bfbafdedc084a208a203e6ba47cad6d9440df8a8ee13464c48",
strip_prefix = "rules_lint-1.4.4",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.4.4/rules_lint-v1.4.4.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- Revert "refactor: simplify devDep patching" by @alexeagle in #545
- Changes by create-pull-request action by @github-actions in #546
- Improve documentation on making lint failures fail builds by @calliecameron in #554
- Clarify how to use built-in formatters by @calliecameron in #557
- Changes by create-pull-request action by @github-actions in #555
- Document where to find mypy by @calliecameron in #553
- Allow the ruff linter to run on filegroups tagged 'python' by @calliecameron in #560
- Changes by create-pull-request action by @github-actions in #561
- fix: declare human outputs as validation outputs by @alexeagle in #562
- Document that files with no extension will not be formatted by @calliecameron in #556
- Clarify how to use built-in linters by @calliecameron in #558
New Contributors
- @calliecameron made their first contribution in #554
Full Changelog: v1.4.3...v1.4.4
v1.4.3
Broken release; do not use
v1.4.2
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.4.2")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.4.2/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.4.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 = "3f0b1af0b8bb596a9d6c809506d426dc1142e74f256207deb34fb3651ed5719b",
strip_prefix = "rules_lint-1.4.2",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.4.2/rules_lint-v1.4.2.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- fix(BCR): don't create Draft PRs by @alexeagle in #541
- fix: release workflow needs build by @alexeagle in #542
Full Changelog: v1.4.1...v1.4.2
v1.4.1
Broken release
do not use
v1.4.0
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.4.0")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.4.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.4.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 = "fcd9000660be150c663f8ccf115facd4a852abdc2e161451696a0366384b2b3a",
strip_prefix = "rules_lint-1.4.0",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.4.0/rules_lint-v1.4.0.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- chore: add linting task on AW by @alexeagle in #535
- Changes by create-pull-request action by @github-actions in #534
- feat: machine-readable reports in SARIF format by @alexeagle in #537
- Changes by create-pull-request action by @github-actions in #539
Full Changelog: v1.3.6...v1.4.0
v1.3.6
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.3.6")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.3.6/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.3.6/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 = "146824aff2be6e8852549be0fb3a4a0626c9be4aa9f20084b97891c41197828a",
strip_prefix = "rules_lint-1.3.6",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.3.6/rules_lint-v1.3.6.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- fix(publish): pick up secret when passed from caller workflow by @alexeagle in #531
- Changes by create-pull-request action by @github-actions in #532
- group srcs into filegroup to handle special char filename by @longlho in #533
New Contributors
Full Changelog: v1.3.5...v1.3.6
v1.3.5
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.3.5")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.3.5/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.3.5/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 = "b1f2089ed2fb147f7b101a01ddc14e54c8a07c3059b5bd4a3151100719992006",
strip_prefix = "rules_lint-1.3.5",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.3.5/rules_lint-v1.3.5.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- Update publish.yaml by @alexeagle in #519
- Changes by create-pull-request action by @github-actions in #520
- Add comment ignores to example by @SpencerC in #314
- chore: add config for Aspect Workflows by @alexeagle in #521
- Change close to work with fs sync methods by @fzakaria in #525
- Reapply "chore: switch remaining test to AW" by @alexeagle in #526
- fix: green up BCR pushes by @alexeagle in #523
- Changes by create-pull-request action by @github-actions in #528
- chore(publish): use Marvin's PAT by @alexeagle in #529
Full Changelog: v1.3.4...v1.3.5
v1.3.4
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_rules_lint", version = "1.3.4")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.3.4/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.3.4/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 = "a7dfbfe0aa2fb960911a1589fa2ebc4f9fd0e25b0090edb54a9dfac73fdd6444",
strip_prefix = "rules_lint-1.3.4",
url = "https://github.com/aspect-build/rules_lint/releases/download/v1.3.4/rules_lint-v1.3.4.tar.gz",
)
# aspect_rules_lint depends on aspect_bazel_lib.
http_archive(
name = "aspect_bazel_lib",
sha256 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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: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 = "rules_diff",
integrity = "sha256-44r/+iFWzPOOMlWHR4ExLVmGU99Wlkiho9JxkadUK3Q=",
strip_prefix = "rules_diff-v1.0.0",
url = "https://gitlab.arm.com/bazel/rules_diff/-/releases/v1.0.0/downloads/src.tar.gz",
)
What's Changed
- Specify
--rcfile
shellcheck option in_shellcheck_aspect_impl
by @andres97medrano in #516 - fix: when pushing a tag, use the ref_name as the tag by @alexeagle in #518
New Contributors
- @andres97medrano made their first contribution in #516
Full Changelog: v1.3.3...v1.3.4