Merge pull request #6 from Microsoft/1-0-6
Remove default plug-ins and pre-release data from driver command base…
This commit is contained in:
Коммит
663c09f827
|
@ -6,7 +6,7 @@ SETLOCAL
|
|||
|
||||
set MAJOR=1
|
||||
set MINOR=0
|
||||
set PATCH=5
|
||||
set PATCH=6
|
||||
set PRERELEASE=-beta
|
||||
|
||||
set VERSION_CONSTANTS=src\Sarif.Driver\VersionConstants.cs
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
<Compile Include="Sdk\MessageUtilities.cs" />
|
||||
<Compile Include="Sdk\NoteDescriptors.cs" />
|
||||
<Compile Include="Sdk\PerLanguageOption.cs" />
|
||||
<Compile Include="Sdk\PlugInDriverCommand.cs" />
|
||||
<Compile Include="Sdk\PropertyBag.cs" />
|
||||
<Compile Include="Sdk\PropertyBagExtensionMethods.cs" />
|
||||
<Compile Include="Sdk\ResultLogger.cs" />
|
||||
|
|
|
@ -9,14 +9,6 @@ namespace Microsoft.CodeAnalysis.Sarif.Driver.Sdk
|
|||
{
|
||||
public abstract class DriverCommand<T>
|
||||
{
|
||||
public virtual IEnumerable<Assembly> DefaultPlugInAssemblies
|
||||
{
|
||||
get { return null; }
|
||||
set { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
public abstract string Prerelease { get; }
|
||||
|
||||
abstract public int Run(T options);
|
||||
|
||||
public const int FAILURE = 1;
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Reflection;
|
|||
|
||||
namespace Microsoft.CodeAnalysis.Sarif.Driver.Sdk
|
||||
{
|
||||
public abstract class ExportConfigurationCommandBase : DriverCommand<ExportConfigurationOptions>
|
||||
public abstract class ExportConfigurationCommandBase : PlugInDriverCommand<ExportConfigurationOptions>
|
||||
{
|
||||
public override int Run(ExportConfigurationOptions exportOptions)
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.CodeAnalysis.Sarif.Driver.Sdk
|
||||
{
|
||||
public abstract class ExportRulesMetadataCommandBase : DriverCommand<ExportRulesMetadataOptions>
|
||||
public abstract class ExportRulesMetadataCommandBase : PlugInDriverCommand<ExportRulesMetadataOptions>
|
||||
{
|
||||
|
||||
public override int Run(ExportRulesMetadataOptions exportOptions)
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Microsoft.CodeAnalysis.Sarif.Driver.Sdk
|
||||
{
|
||||
public abstract class PlugInDriverCommand<T> : DriverCommand<T>
|
||||
{
|
||||
public virtual IEnumerable<Assembly> DefaultPlugInAssemblies
|
||||
{
|
||||
get { return null; }
|
||||
set { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
public abstract string Prerelease { get; }
|
||||
}
|
||||
}
|
|
@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.Sarif
|
|||
public static class VersionConstants
|
||||
{
|
||||
public const string Prerelease = "-beta";
|
||||
public const string AssemblyVersion = "1.0.4";
|
||||
public const string AssemblyVersion = "1.0.6";
|
||||
public const string FileVersion = AssemblyVersion + ".0";
|
||||
public const string Version = AssemblyVersion + Prerelease;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче