Skip to content

Releases: buildfoundation/bazel_rules_detekt

v0.8.1.2

10 Oct 20:12
26bdcd1
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 = "rules_detekt", version = "0.8.1.2")

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_detekt",
    sha256 = "a5ae68f2487568d2c4145a8fc45da096edaaaed46487fb3d108ffe24b31d99da",
    strip_prefix = "bazel_rules_detekt-0.8.1.2",
    url = "https://github.com/buildfoundation/bazel_rules_detekt/releases/download/v0.8.1.2/bazel_rules_detekt-v0.8.1.2.tar.gz",
)

What's Changed

Full Changelog: v0.8.1.1...v0.8.1.2

v0.8.1.1

06 Oct 07:07
c0e2e4e
Compare
Choose a tag to compare

Notable changes in this release:

  • Bzlmod support is here! A few breaking changes had to be made to better support Bzlmod. For more information please refer to #151 (comment)
  • There is a new detekt_test rule that was added so that these rules can be invoked using bazel test //... #149
  • The included detekt version was updated to 1.23.1. #157

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_detekt", version = "0.8.1.1")

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_detekt",
    sha256 = "946891973dc13bf68b8c0d3e8c7c1967dd1f8642481276934cbe77e9c362c84c",
    strip_prefix = "bazel_rules_detekt-0.8.1.1",
    url = "https://github.com/buildfoundation/bazel_rules_detekt/releases/download/v0.8.1.1/bazel_rules_detekt-v0.8.1.1.tar.gz",
)

What's Changed

Full Changelog: v0.8.1...v0.8.1.1

v0.8.1

05 Oct 03:11
c6562c0
Compare
Choose a tag to compare

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_detekt",
    sha256 = "593f88e7ecae3eddfad85ae6c04f855e257a43c7ecdf2e1b0e88c045f40e4d33",
    strip_prefix = "bazel_rules_detekt-0.8.1",
    url = "https://github.com/buildfoundation/bazel_rules_detekt/releases/download/v0.8.1/bazel_rules_detekt-v0.8.1.tar.gz",
)

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.8.1

v0.7.0

21 Dec 01:42
ce39d0c
Compare
Choose a tag to compare
rules_detekt_version="0.7.0"
rules_detekt_sha="16a85a2b92e3f708a64c7f73fa6bb2d87018bd968ee4bb2b576cb43e48ab293b"

What's Changed

Full Changelog: v0.6.1...v0.7.0

v0.6.1

04 Oct 23:52
05963be
Compare
Choose a tag to compare
rules_detekt_version="0.6.1"
rules_detekt_sha="6d532a25caa0d63d142848e7b0d4eb3b2ac89253646b68c1c94b7ec7371bdc1c"

What's Changed

Full Changelog: v0.6.0...v0.6.1

v0.6.0

28 Apr 22:49
ec49aae
Compare
Choose a tag to compare
rules_detekt_version="0.6.0"
rules_detekt_sha="44912c74dc2e164227b1102ef36227d0e78fdbd7c7359868ae13424eb4f0d5c2"

Changes

  • Bazel 5.0.0 support
  • Updating our rules_jvm_external and rules_java repositories
  • Using the worker implementation targets provided by Bazel

Full Changelog: v0.5.0...v0.6.0

v0.5.0

10 Feb 18:02
d58f0c0
Compare
Choose a tag to compare
rules_detekt_version="0.5.0"
rules_detekt_sha="65203efa2c7f252a9fbeba0abe651cd32c316858d3dbad550a5a34cf48bbe404"

Changes

  • Detekt wrapper powering the rule was rewritten from Kotlin to Java. While this is painful, it removes the rules_kotlin dependency and associated issues with upgrading to new Kotlin versions (which lead to clashing with Detekt bytecode).
  • Enable worker multiplex execution. This should improve execution times by a margin — see #109 for the comparison.

v0.4.0

31 Jan 20:43
a9777a8
Compare
Choose a tag to compare
rules_detekt_version="0.4.0"
rules_detekt_sha="a39020fba766258cdcdbf8f99487304775bd6e43b8b3b967b9961d48b2581fe3"

Changes

v0.3.0

19 Apr 17:16
6c6c738
Compare
Choose a tag to compare
rules_detekt_version="0.3.0"
rules_detekt_sha="b1b4c8a3228f880a169ab60a817619bc4cf254443196e7e108ece411cb9c580e"

Both workspace and package declarations were changed — please take a look at the README.md for new ones.

  • The default Detekt version is 1.7.4. It’s also possible to use a custom one.
  • More Detekt options, see the documentation.
  • Bazel persistent workers support.

v0.2.0

05 Dec 21:30
Compare
Choose a tag to compare
rules_detekt_version = "0.2.0"
rules_detekt_sha = "089c4cb35d4f711aa5a6bb8c109950cfcc07327ac6956275971ec401992fccd6"

Changelog:

  • Add pull_request trigger to GitHub Actions CI (#17)
  • Refine the readme file (#16)
  • Switch to Bazelisk (#19)
  • Refactor rule declaration (#18)
  • Add Maven Central URL for downloading Detekt (#21)
  • Fix invocations with multiple input files (#22)

❤️ Thanks to these contributors: