aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2023-03-30 13:31:20 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2023-04-12 12:08:48 +0200
commit76f9389086c3036b191ca36479c42c9404a450fd (patch)
tree8522aa49f0a7217662f200a21a1d01fe24d07ff4 /examples
parent83e9f42ea3ee84d44d59c0a1fba2fcfda43509be (diff)
downloadjazzer-api-76f9389086c3036b191ca36479c42c9404a450fd.tar.gz
bazel: Run ktlint with Bazel
Regular Bazel tests now verify that there are no ktlint findings and `./format.sh` only formats those files that need fixing. This speeds up format script runs.
Diffstat (limited to 'examples')
-rw-r--r--examples/BUILD.bazel3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/BUILD.bazel b/examples/BUILD.bazel
index 10011ee2..10d6e510 100644
--- a/examples/BUILD.bazel
+++ b/examples/BUILD.bazel
@@ -2,6 +2,7 @@ load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
load("@fmeum_rules_jni//jni:defs.bzl", "java_jni_library")
load("//bazel:compat.bzl", "SKIP_ON_MACOS", "SKIP_ON_WINDOWS")
load("//bazel:fuzz_target.bzl", "java_fuzz_target_test")
+load("//bazel:kotlin.bzl", "ktlint")
java_fuzz_target_test(
name = "Autofuzz",
@@ -429,3 +430,5 @@ java_binary(
":JsonSanitizerDenylistFuzzer_target_deploy.jar",
],
)
+
+ktlint()