Skip to content

Updated categories of rust detectors to match doc spec #1360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public RustCliDetector(
public override string Id => "RustCli";

/// <inheritdoc />
public override IEnumerable<string> Categories { get; } = ["Rust"];
public override IEnumerable<string> Categories { get; } = [Enum.GetName(typeof(DetectorClass), DetectorClass.Cargo)];

/// <inheritdoc />
public override IEnumerable<ComponentType> SupportedComponentTypes => [ComponentType.Cargo];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public RustCrateDetector(

public override int Version { get; } = 8;

public override IEnumerable<string> Categories => ["Rust"];
public override IEnumerable<string> Categories => [Enum.GetName(typeof(DetectorClass), DetectorClass.Cargo)];

private static bool ParseDependency(string dependency, out string packageName, out string version, out string source)
{
Expand Down