fix: restored detect.bazel.workspace.rules back to it's correct default (now: none; used to be an empty list). Adjusted the description for the new default.
@@ -214,11 +214,12 @@ public class DetectProperties {
.setGroups(DetectGroup.BAZEL, DetectGroup.SOURCE_SCAN)
.build();
- public static final AllEnumListProperty<WorkspaceRule> DETECT_BAZEL_WORKSPACE_RULES =
- AllEnumListProperty.newBuilder("detect.bazel.workspace.rules", AllEnum.ALL, WorkspaceRule.class)
+ public static final AllNoneEnumListProperty<WorkspaceRule> DETECT_BAZEL_WORKSPACE_RULES =
+ AllNoneEnumListProperty.newBuilder("detect.bazel.workspace.rules", AllNoneEnum.NONE, WorkspaceRule.class)
.setInfo("Bazel workspace rules", DetectPropertyFromVersion.VERSION_7_12_0)
.setHelp(
- "By default Detect discovers Bazel dependencies using all of the supported Bazel workspace rules that it finds in the WORKSPACE file. Alternatively you can use this property to specify the list of Bazel workspace rules Detect should use."
+ "By default Detect discovers Bazel dependencies using all of the supported Bazel workspace rules that it finds in the WORKSPACE file. Alternatively you can use this property to specify the list of Bazel workspace rules Detect should use.",
+ "Setting this property (or letting it default) to NONE tells Detect to use supported rules that it finds in the WORKSPACE file."
)
.setGroups(DetectGroup.BAZEL, DetectGroup.SOURCE_SCAN)
.build();
