Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 3.13 KB

rule.md

File metadata and controls

20 lines (18 loc) · 3.13 KB

Attributes

Name Type Default Description
name name A unique name for this target.
baseline Label None Detekt baseline file.
build_upon_default_config bool False See Detekt --build-upon-default-config option.
auto_correct bool False See Detekt auto_correct option.
disable_default_rule_sets bool False See Detekt disable_default_rule_sets option.
all_rules bool False See Detekt all_rules option.
cfgs [Label] [] Detekt configuration files. Otherwise the default configuration is used.
disable_default_rulesets bool False See Detekt --disable-default-rulesets option.
fail_fast bool False See Detekt --fail-fast option.
html_report bool False Enables / disables the HTML report generation. The report file name is {target_name}_detekt_report.html.
parallel bool False See Detekt --parallel option.
plugins [Label] [] Detekt plugins. For example, the formatting rule set. Labels should be JVM artifacts (generated via rules_jvm_external work).
srcs [Label] Kotlin source code files.
xml_report bool False Enables / disables the XML report generation. The report file name is {target_name}_detekt_report.xml. FYI Detekt uses the Checkstyle XML reporting format which makes it compatible with tools like SonarQube.