Skip to content

Commit dffb2a1

Browse files
authored
fix: dockerfile detector detector class type (#181)
1 parent 29bc169 commit dffb2a1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Microsoft.ComponentDetection.Contracts/DetectorClass.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ public enum DetectorClass
4141

4242
/// <summary>Indicates a detector applies to Vcpkg packages.</summary>
4343
Vcpkg,
44+
45+
/// <summary>Indicates a detector applies to Docker references.</summary>
46+
DockerReference,
4447
}
4548
}

src/Microsoft.ComponentDetection.Detectors/dockerfile/DockerfileComponentDetector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class DockerfileComponentDetector : FileComponentDetector, IDefaultOffCom
2424

2525
public override string Id { get; } = "DockerReference";
2626

27-
public override IEnumerable<string> Categories => new[] { Enum.GetName(typeof(DetectorClass), DetectorClass.GoMod) };
27+
public override IEnumerable<string> Categories => new[] { Enum.GetName(typeof(DetectorClass), DetectorClass.DockerReference) };
2828

2929
public override IList<string> SearchPatterns { get; } = new List<string> { "dockerfile", "dockerfile.*", "*.dockerfile" };
3030

0 commit comments

Comments
 (0)