v0.8.0
Pre-release
Pre-release
🔴 BREAKING CHANGE: to format Markdown files, you must now explicitly add a markdown
attribute to the multi_formatter_binary
.
Note that there is a bug in this release: if you don't add markdown
, then no formatting is done for javascript
.
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.8.0")
# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v0.8.0/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v0.8.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 = "7a8bdea379953332aa6ea48919baa1bd8971c72b06ec0fd22e8c5465884dbdcb",
strip_prefix = "rules_lint-0.8.0",
url = "https://github.com/aspect-build/rules_lint/releases/download/v0.8.0/rules_lint-v0.8.0.tar.gz",
)
# Use whichever formatter binaries you need:
load(
"@aspect_rules_lint//format:repositories.bzl",
"fetch_java_format",
"fetch_jsonnet",
"fetch_ktfmt",
"fetch_pmd",
"fetch_shfmt",
"fetch_swiftformat",
"fetch_terraform",
)
fetch_pmd()
fetch_jsonnet()
fetch_terraform()
fetch_java_format()
fetch_ktfmt()
fetch_shfmt()
fetch_swiftformat()
load("@aspect_rules_lint//lint:ruff.bzl", "fetch_ruff")
fetch_ruff()
load("@aspect_rules_lint//lint:shellcheck.bzl", "fetch_shellcheck")
fetch_shellcheck()
What's Changed
- docs: explain which production of ts_project to lint by @alexeagle in #76
- Changes by create-pull-request action by @github-actions in #83
- Fix ruff by @alexeagle in #84
- chore: explain why we don't add mypy here by @alexeagle in #85
- Changes by create-pull-request action by @github-actions in #87
- Exclude deleted files and include untracked ones from format by @psalaberria002 in #89
- feat: generate a patch file with linter fixes by @dzbarsky in #62
- Add ruff aspect to py_test by @psalaberria002 in #93
- Changes by create-pull-request action by @github-actions in #92
- Ruff Windows Support by @LaurenceTews in #91
New Contributors
- @psalaberria002 made their first contribution in #89
- @dzbarsky made their first contribution in #62
- @LaurenceTews made their first contribution in #91
Full Changelog: v0.7.0...v0.8.0