Skip to content

Commit

Permalink
Make Vcpkg Experimental detector (#216)
Browse files Browse the repository at this point in the history
* Make Vcpkg Experimental detector
  • Loading branch information
grvillic authored Aug 23, 2022
1 parent 8e8c3a4 commit 26a5907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.ComponentDetection.Contracts.TypedComponent;

Expand Down Expand Up @@ -53,7 +53,7 @@ public interface IDefaultOffComponentDetector : IComponentDetector
/// <summary>
/// Component detectors implementing this interface are in an experimental state.
/// The detector processing service guarantees that:
/// They should NOT return their components as part of the scan result or be allowed to run too long (e.g. 2 min or less).
/// They should NOT return their components as part of the scan result or be allowed to run too long (e.g. 4 min or less).
/// They SHOULD submit telemetry about how they ran.
/// If opted in, they should behave like a normal detector.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Composition;
using System.IO;
Expand All @@ -13,7 +13,7 @@
namespace Microsoft.ComponentDetection.Detectors.Vcpkg
{
[Export(typeof(IComponentDetector))]
public class VcpkgComponentDetector : FileComponentDetector, IDefaultOffComponentDetector
public class VcpkgComponentDetector : FileComponentDetector, IExperimentalDetector
{
[Import]
public ICommandLineInvocationService CommandLineInvocationService { get; set; }
Expand All @@ -29,7 +29,7 @@ public class VcpkgComponentDetector : FileComponentDetector, IDefaultOffComponen

public override IEnumerable<ComponentType> SupportedComponentTypes { get; } = new[] { ComponentType.Vcpkg };

public override int Version => 1;
public override int Version => 2;

private HashSet<string> projectRoots = new HashSet<string>();

Expand Down

0 comments on commit 26a5907

Please sign in to comment.