grab / grazel

A tool to migrate Android projects from Gradle to Bazel incrementally and automatically
https://grab.github.io/grazel/
Other
277 stars 19 forks source link

integrate bazel_rules_detekt #138

Open mohammadkahelghi-grabtaxi opened 5 months ago

mohammadkahelghi-grabtaxi commented 5 months ago

integrate bazel_rules_detekt

load("@grab_bazel_common//rules:defs.bzl", "detekt_options", ...)
kotlin_library(
   ...,
    detekt_options = detekt_options(
        baseline = "detekt-baseline.xml",
        all_rules = True,
        auto_correct = True,
        build_upon_default_config = True,
        cfgs = ["//:detekt-config.yml"],
        detekt_checks = ["@detekt_maven//:ru_kode_detekt_rules_compose"],
        disable_default_rule_sets = True,
        enabled = True,
        parallel = True,
    ),

)