v0.13.0
Pre-release
Pre-release
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 = "0.13.0")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v0.13.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v0.13.0/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 = "c0824de8400f1e271c5568fc47581e165b2132f9d21691fcfefe8bf89ad413bd",
strip_prefix = "rules_lint-0.13.0",
url = "https://github.com/aspect-build/rules_lint/releases/download/v0.13.0/rules_lint-v0.13.0.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()
# Use whichever formatter binaries you need:
load(
"@aspect_rules_lint//format:repositories.bzl",
"fetch_gofumpt",
"fetch_java_format",
"fetch_jsonnet",
"fetch_ktfmt",
"fetch_pmd",
"fetch_shfmt",
"fetch_swiftformat",
"fetch_terraform",
"fetch_yamlfmt",
)
fetch_gofumpt()
fetch_pmd()
fetch_jsonnet()
fetch_terraform()
fetch_java_format()
fetch_ktfmt()
fetch_shfmt()
fetch_swiftformat()
fetch_yamlfmt()
load("@aspect_rules_lint//lint:ruff.bzl", "fetch_ruff")
fetch_ruff()
load("@aspect_rules_lint//lint:golangci-lint.bzl", "fetch_golangci_lint")
fetch_golangci_lint()
load("@aspect_rules_lint//lint:shellcheck.bzl", "fetch_shellcheck")
fetch_shellcheck()
load("@aspect_rules_lint//lint:vale.bzl", "fetch_vale")
fetch_vale()
What's Changed
- docs(golangci-lint): fix the target name by @srabraham in #144
- collapse common logic into run-format formula by @pjjw in #119
- fix: pass flag to shfmt to ignore passed files by @alexeagle in #146
- Changes by create-pull-request action by @github-actions in #147
- chore: cleanup maybe patterns by @gregmagolan in #139
- feat: add yamlfmt for YAML by @alexeagle in #153
- refactor: remove Vale workaround for StylesPath by @alexeagle in #148
- refactor: break up tools/ into tools/format and tools/lint by @alexeagle in #159
- Changes by create-pull-request action by @github-actions in #162
New Contributors
- @srabraham made their first contribution in #144
- @gregmagolan made their first contribution in #139
Full Changelog: v0.12.0...v0.13.0