Skip to content

Releases: aspect-build/rules_lint

v1.0.2

04 Oct 19:55
431a36a
Compare
Choose a tag to compare

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.2")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.2/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.2/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 = "7d5feef9ad85f0ba78cc5757a9478f8fa99c58a8cabc1660d610b291dc242e9b",
    strip_prefix = "rules_lint-1.0.2",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.2/rules_lint-v1.0.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()

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

  • Fix broken link in linting.md by @mark-thm in #388
  • Use --diff when running ruff as check by @TimotheusBachinger in #386
  • Changes by create-pull-request action by @github-actions in #390
  • fix: support file list input for format command to bypass OS limits by @mrmeku in #391
  • chore: point to non-deprecated rustfmt by @alexeagle in #392
  • fix: Include stylelint config deps (#394) by @sallustfire in #395
  • chore: discourage use of select by @alexeagle in #393
  • Changes by create-pull-request action by @github-actions in #396
  • Changes by create-pull-request action by @github-actions in #397
  • fix: shellcheck should visit srcs of sh_test by @alexeagle in #398
  • Changes by create-pull-request action by @github-actions in #399
  • chore: bump to latest release of Aspect CLI by @gregmagolan in #403

New Contributors

Full Changelog: v1.0.1...v1.0.2

v1.0.1

10 Sep 21:40
5b004ff
Compare
Choose a tag to compare

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.1")

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.1/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.1/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 = "fe2c8fc9419e5cd31ae63c1b8c3ae643b10a2befe810dcb8d142a7fe9554ec36",
    strip_prefix = "rules_lint-1.0.1",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.1/rules_lint-v1.0.1.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()

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

  • fix(format): Allow git-attributes to be set to true by @mrmeku in #384

Full Changelog: v1.0.0...v1.0.1

v1.0.0

07 Sep 16:42
43f62cc
Compare
Choose a tag to compare

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

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

########################
# 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
  • fix: move mnemonic to after label in report, exit_code and patch output filename by @gregmagolan in #252
  • Changes by create-pull-request action by @github-actions in #253
  • chore: bump example to bazel-lib 2.7.5 by @gregmagolan in #254
  • chore: show less noisy prettier in example by @alexeagle in #256
  • Changes by create-pull-request action by @github-actions in #258
  • docs: clarify what's not recommended by @alexeagle in #264
  • chore: bump example to bazel-lib 2.7.7 by @gregmagolan in #265
  • prettier log level followup by @alexeagle in #257
  • fix(format): "File name too long" when using --disable_git_attribute_checks by @mattnworb in #262
  • feat: add format_multirun() attribute to disable slow gitattribute checks by @mattnworb in #263
  • chore: bump to Aspect CLI 5.9.36 by @gregmagolan in #268
  • refactor: introduce mnemonic convention for rules_lint linters by @gregmagolan in #266
  • chore: test on Bazel 7 by @alexeagle in #191
  • Changes by create-pull-request action by @github-actions in #271
  • chore(example): enable proto toolchain resolution by @alexeagle in #267
  • Correct docstring for eslint (#275) by @jmeekhof in #276
  • Changes by create-pull-request action by @github-actions in #274
  • chore: add --check_direct_dependencies to .bazelrc by @gregmagolan in #277
  • feat: Optimize the git ignore checks by @mrmeku in #270
  • chore(deps): update yamlfmt and gofumpt to latest by @hunshcn in #278
  • feat: auto-update multitool versions by @hunshcn in #281
  • Only run aspect actions when input files provided by @psalaberria002 in #273
  • feat: Add Cuda format support by @jsharpe in #285
  • fix(format): print FIX_CMD only when check by @hunshcn in #280
  • Changes by create-pull-request action by @github-actions in #286
  • refactor: combine mirroring into one step by @alexeagle in #289
  • Update mirror.yml by @alexeagle in #291
  • Changes by create-pull-request action by @github-actions in #292
  • Feat: clang-tidy for linting of C/C++ code by @peakschris in #287
  • Update clang_tidy_wrapper.bash shebang by @jsharpe in #299
  • Fix safe_flag parsing in clang_tidy.bzl by @jsharpe in #300
  • Changes by create-pull-request action by @github-actions in #301
  • chore: fix ruff mirroring by @alexeagle in #306
  • Changes by create-pull-request action by @github-actions in #308
  • feat: include ruff in multitool by @alexeagle in #309
  • chore: update buildifier pre-commit by @alexeagle in #311
  • 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
  • fix: lint.sh script --fix flag by @alexeagle in #338
  • fix(eslint): print relative paths in stylish output by @alexeagle in #337
  • chore: run formatter by @alexeagle in #336
  • fix: include transitive type declarations with eslint by @sallustfire in #339
  • chore(deps): example: upgrade buf to latest rules and tool runtime by @alexeagle in #342
  • feat: stylelint by @alexeagle in #341
  • Changes by create-pull-request action by @github-actions in #343
  • Changes by create-pull-request action by @github-actions in #348
  • chore(docs): fix eslint copy-pasta by @alexeagle in #345
  • Changes by create-pull-request action by @github-actions in #352
  • C...
Read more

v1.0.0-rc10

29 Aug 00:25
83c8df2
Compare
Choose a tag to compare

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

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

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

  • Changes by create-pull-request action by @github-actions in #373
  • Add --respect-project-filters to scalafmt by @vinnybod in #372
  • Add a checkstyle linter by @vinnybod in #374
  • fix: handle empty exit_code File when fail_on_violation is set by @gregmagolan in #375

New Contributors

Full Changelog: v1.0.0-rc9...v1.0.0-rc10

v1.0.0-rc9

21 Aug 12:46
cab298c
Compare
Choose a tag to compare

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

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc9/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc9/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 = "2f6ddca7a15bd6612f70d465fc68f6e1452436b57f4b6b98693c5828f2d6dffd",
    strip_prefix = "rules_lint-1.0.0-rc9",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc9/rules_lint-v1.0.0-rc9.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: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

  • Changes by create-pull-request action by @github-actions in #361
  • Fix crash caused by fail-on-violation and no lintable files in target by @tokongs in #362
  • chore(deps): update stardoc by @alexeagle in #363
  • Revert "chore(deps): update stardoc" by @alexeagle in #364
  • chore: update stardoc by @alexeagle in #365
  • Changes by create-pull-request action by @github-actions in #366
  • Changes by create-pull-request action by @github-actions in #367
  • fix: don't run eslint with zero files to check by @alexeagle in #370

Full Changelog: v1.0.0-rc8...v1.0.0-rc9

v1.0.0-rc8

06 Aug 17:27
6c59e30
Compare
Choose a tag to compare

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

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc8/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc8/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 = "f9f2a6147a3f77cb95a46ea4309001b47e0b787e07ac854aee8e429139dfe29d",
    strip_prefix = "rules_lint-1.0.0-rc8",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc8/rules_lint-v1.0.0-rc8.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: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: run formatter by @alexeagle in #336
  • fix: include transitive type declarations with eslint by @sallustfire in #339
  • chore(deps): example: upgrade buf to latest rules and tool runtime by @alexeagle in #342
  • feat: stylelint by @alexeagle in #341
  • Changes by create-pull-request action by @github-actions in #343
  • Changes by create-pull-request action by @github-actions in #348
  • chore(docs): fix eslint copy-pasta by @alexeagle in #345
  • Changes by create-pull-request action by @github-actions in #352
  • Changes by create-pull-request action by @github-actions in #356
  • chore: update bazel-lib version in WORKSPACE snippet by @alexeagle in #354
  • chore: mirror newest vale release by @alexeagle in #357
  • Remove cxxopt flags when linting C sources. by @agoessling in #359
  • Add C example and file extension. by @agoessling in #349
  • fix: filter out 'external' sources from linting by @alexeagle in #358
  • chore(deps): bump bazel-lib minimum by @alexeagle in #360

New Contributors

Full Changelog: v1.0.0-rc7...v1.0.0-rc8

v1.0.0-rc7

18 Jul 15:24
0e9dc31
Compare
Choose a tag to compare

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

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc7/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc7/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 = "9dd9b20139070a6434644677891adf333613c79cfb0fc0dead5be4f63fbdd008",
    strip_prefix = "rules_lint-1.0.0-rc7",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc7/rules_lint-v1.0.0-rc7.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

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

v1.0.0-rc6

17 Jul 21:26
32c091a
Compare
Choose a tag to compare

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

v1.0.0-rc5

05 Jul 18:15
268d13b
Compare
Choose a tag to compare

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

# Next, follow the install instructions for
# - linting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc5/docs/linting.md
# - formatting: https://github.com/aspect-build/rules_lint/blob/v1.0.0-rc5/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 = "45557d3236024a2119598f8ca4fb0ab203566bc99802285bc0c8764bb5ee2e3a",
    strip_prefix = "rules_lint-1.0.0-rc5",
    url = "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc5/rules_lint-v1.0.0-rc5.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

  • Update clang_tidy_wrapper.bash shebang by @jsharpe in #299
  • Fix safe_flag parsing in clang_tidy.bzl by @jsharpe in #300
  • Changes by create-pull-request action by @github-actions in #301
  • chore: fix ruff mirroring by @alexeagle in #306
  • Changes by create-pull-request action by @github-actions in #308
  • feat: include ruff in multitool by @alexeagle in #309
  • chore: update buildifier pre-commit by @alexeagle in #311

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

v1.0.0-rc4

16 Jun 23:18
7a14cfd
Compare
Choose a tag to compare

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

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

  • chore: test on Bazel 7 by @alexeagle in #191
  • Changes by create-pull-request action by @github-actions in #271
  • chore(example): enable proto toolchain resolution by @alexeagle in #267
  • Correct docstring for eslint (#275) by @jmeekhof in #276
  • Changes by create-pull-request action by @github-actions in #274
  • chore: add --check_direct_dependencies to .bazelrc by @gregmagolan in #277
  • feat: Optimize the git ignore checks by @mrmeku in #270
  • chore(deps): update yamlfmt and gofumpt to latest by @hunshcn in #278
  • feat: auto-update multitool versions by @hunshcn in #281
  • Only run aspect actions when input files provided by @psalaberria002 in #273
  • feat: Add Cuda format support by @jsharpe in #285
  • fix(format): print FIX_CMD only when check by @hunshcn in #280
  • Changes by create-pull-request action by @github-actions in #286
  • refactor: combine mirroring into one step by @alexeagle in #289
  • Update mirror.yml by @alexeagle in #291
  • Changes by create-pull-request action by @github-actions in #292
  • Feat: clang-tidy for linting of C/C++ code by @peakschris in #287

New Contributors

Full Changelog: v1.0.0-rc3...v1.0.0-rc4