You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc="Kotlin and Java source code files to analyze. Java files are included to support type resolution in mixed-language projects.",
22
+
),
23
+
"deps": attr.label_list(
24
+
default= [],
25
+
doc="Dependencies to provide to Detekt for classpath type resolution.",
26
+
providers= [JavaInfo],
18
27
),
19
28
"plugins": attr.label_list(
20
29
default= [],
@@ -55,6 +64,10 @@ _ATTRS = {
55
64
default=False,
56
65
doc="Disables default rule sets.",
57
66
),
67
+
"enable_type_resolution": attr.bool(
68
+
default=True,
69
+
doc="Enables type resolution for more advanced static analysis. When enabled, the classpath is constructed from `deps` and the appropriate bootclasspath (Android SDK or JDK) is included. When disabled, no classpath is passed to Detekt and only syntax-based rules are applied.",
70
+
),
58
71
"excludes": attr.string_list(
59
72
default= [],
60
73
doc="Globbing patterns describing paths to exclude from the analysis.",
@@ -63,23 +76,13 @@ _ATTRS = {
63
76
default= [],
64
77
doc="Globbing patterns describing paths to include in the analysis. Useful in combination with 'excludes' patterns.",
doc="EXPERIMENTAL: Target version of the generated JVM bytecode that was generated during compilation and is now being used for type resolution (1.8, 9, 10, ..., 20)",
doc="EXPERIMENTAL: Compatibility mode for Kotlin language version X.Y, reports errors for all language features that came out later",
75
-
),
76
79
"max_issues": attr.int(
77
80
default=-1,
78
81
doc="Passes only when found issues count does not exceed specified issues count.",
79
82
),
80
83
"parallel": attr.bool(
81
84
default=False,
82
-
doc="Enables parallel compilation and analysis of source files. Do some benchmarks first before enabling this flag. Heuristics show performance benefits starting from 2000 lines of Kotlin code.",
85
+
doc="Enables parallel compilation and analysis of source files. Do some benchmarks first before enabling this flag. Heuristics show performance benefits starting from 2,000 lines of Kotlin code.",
83
86
),
84
87
"txt_report": attr.bool(
85
88
default=False,
@@ -101,10 +104,22 @@ _ATTRS = {
101
104
default=False,
102
105
doc="Enables / disables the SARIF report generation. The report file name is `{target_name}_detekt_report.sarif`.",
103
106
),
107
+
"is_android": attr.bool(
108
+
default=False,
109
+
doc="Whether the target is an Android target. When enabled, the Android SDK jar is included in the classpath for type resolution.",
0 commit comments