Skip to content

Commit

Permalink
Merge pull request #501 from lgolding/smart-validator
Browse files Browse the repository at this point in the history
Implement smart validation in SarifCli tool
  • Loading branch information
Larry Golding authored Sep 1, 2016
2 parents b335dc9 + e6f6029 commit d43c42e
Show file tree
Hide file tree
Showing 264 changed files with 11,991 additions and 154 deletions.
6 changes: 6 additions & 0 deletions BuildAndTest.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ if "%ERRORLEVEL%" NEQ "0" (
goto ExitFailed
)

src\packages\xunit.runner.console.2.1.0\tools\xunit.console.x86.exe bld\bin\SarifCli.FunctionalTests\AnyCPU_%Configuration%\Microsoft.CodeAnalysis.Sarif.Cli.FunctionalTests.dll

if "%ERRORLEVEL%" NEQ "0" (
goto ExitFailed
)

goto Exit

:ExitFailed
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test:
- '**\Sarif.FunctionalTests.dll'
- '**\Sarif.ValidationTests.dll'
- '**\Sarif.Viewer.VisualStudio.UnitTests.dll'
- '**\Microsoft.CodeAnalysis.SarifCli.FunctionalTests.dll'

notifications:
- provider: Email
Expand Down
16 changes: 15 additions & 1 deletion src/Everything.sln
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sarif.Converters", "Sarif.C
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sarif.Viewer.VisualStudio.UnitTests", "Sarif.Viewer.VisualStudio.UnitTests\Sarif.Viewer.VisualStudio.UnitTests.csproj", "{D0210D4B-32A8-46CA-8BA4-0703517481B4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SarifValidator", "SarifValidator\SarifValidator.csproj", "{0EBA700D-29E7-4FFF-8EBF-20B8C0EF9A98}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SarifCli", "SarifCli\SarifCli.csproj", "{0EBA700D-29E7-4FFF-8EBF-20B8C0EF9A98}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SarifCli.FunctionalTests", "SarifCli.FunctionalTests\SarifCli.FunctionalTests.csproj", "{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -201,6 +203,18 @@ Global
{0EBA700D-29E7-4FFF-8EBF-20B8C0EF9A98}.Release|x64.Build.0 = Release|Any CPU
{0EBA700D-29E7-4FFF-8EBF-20B8C0EF9A98}.Release|x86.ActiveCfg = Release|Any CPU
{0EBA700D-29E7-4FFF-8EBF-20B8C0EF9A98}.Release|x86.Build.0 = Release|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Debug|x64.ActiveCfg = Debug|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Debug|x64.Build.0 = Debug|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Debug|x86.ActiveCfg = Debug|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Debug|x86.Build.0 = Debug|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Release|Any CPU.Build.0 = Release|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Release|x64.ActiveCfg = Release|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Release|x64.Build.0 = Release|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Release|x86.ActiveCfg = Release|Any CPU
{859920F3-DB09-4C1D-9EAD-DFB1D7A03A46}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file removed src/References/Microsoft.Json.Schema.dll
Binary file not shown.
9 changes: 5 additions & 4 deletions src/Sarif.ValidationTests/Sarif.ValidationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Json.Schema">
<HintPath>..\References\Microsoft.Json.Schema.dll</HintPath>
<Reference Include="Microsoft.Json.Schema, Version=0.46.0.0, Culture=neutral, PublicKeyToken=0a75a800dbdd2daa, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Json.Schema.0.46.0\lib\net451\Microsoft.Json.Schema.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
Expand All @@ -39,8 +40,8 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Sarif, Version=1.5.25.0, Culture=neutral, PublicKeyToken=a567ef0185dba9aa, processorArchitecture=MSIL">
<HintPath>..\packages\Sarif.Sdk.1.5.25\lib\net45\Sarif.dll</HintPath>
<Reference Include="Sarif, Version=1.5.29.0, Culture=neutral, PublicKeyToken=a567ef0185dba9aa, processorArchitecture=MSIL">
<HintPath>..\packages\Sarif.Sdk.1.5.29\lib\net45\Sarif.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
Expand Down
3 changes: 2 additions & 1 deletion src/Sarif.ValidationTests/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<packages>
<package id="FluentAssertions" version="4.2.1" targetFramework="net451" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net451" />
<package id="Sarif.Sdk" version="1.5.25" targetFramework="net45" />
<package id="Sarif.Sdk" version="1.5.29" targetFramework="net45" />
<package id="Microsoft.Json.Schema" version="0.46.0" targetFramework="net451" />
<package id="xunit" version="2.1.0" targetFramework="net451" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="net451" />
<package id="xunit.assert" version="2.1.0" targetFramework="net451" />
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/AlgorithmKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Values specifying different hashing algorithms.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public enum AlgorithmKind
{
Unknown,
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/AnnotatedCodeLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// An annotation used to express code flows through a method or other locations that are related to a result.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class AnnotatedCodeLocation : PropertyBagHolder, ISarifNode
{
public static IEqualityComparer<AnnotatedCodeLocation> ValueComparer => AnnotatedCodeLocationEqualityComparer.Instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type AnnotatedCodeLocation for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class AnnotatedCodeLocationEqualityComparer : IEqualityComparer<AnnotatedCodeLocation>
{
internal static readonly AnnotatedCodeLocationEqualityComparer Instance = new AnnotatedCodeLocationEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/AnnotatedCodeLocationImportance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Values specifying the importance of an "annotatedCodeLocation" within the "codeFlow" in which it occurs
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public enum AnnotatedCodeLocationImportance
{
Important,
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/AnnotatedCodeLocationKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Values specifying the kind of an annotated code location.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public enum AnnotatedCodeLocationKind
{
Unknown,
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/BaselineState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// The state of a result relative to a baseline of a previous run.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public enum BaselineState
{
None,
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/CodeFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Microsoft.CodeAnalysis.Sarif
{
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class CodeFlow : PropertyBagHolder, ISarifNode
{
public static IEqualityComparer<CodeFlow> ValueComparer => CodeFlowEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/CodeFlowEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type CodeFlow for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class CodeFlowEqualityComparer : IEqualityComparer<CodeFlow>
{
internal static readonly CodeFlowEqualityComparer Instance = new CodeFlowEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/ExceptionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Microsoft.CodeAnalysis.Sarif
{
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class ExceptionData : ISarifNode
{
public static IEqualityComparer<ExceptionData> ValueComparer => ExceptionDataEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/ExceptionDataEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type ExceptionData for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class ExceptionDataEqualityComparer : IEqualityComparer<ExceptionData>
{
internal static readonly ExceptionDataEqualityComparer Instance = new ExceptionDataEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/FileChange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// A change to a single file.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class FileChange : ISarifNode
{
public static IEqualityComparer<FileChange> ValueComparer => FileChangeEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/FileChangeEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type FileChange for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class FileChangeEqualityComparer : IEqualityComparer<FileChange>
{
internal static readonly FileChangeEqualityComparer Instance = new FileChangeEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/FileData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// A single file. In some cases, this file might be nested within another file.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class FileData : PropertyBagHolder, ISarifNode
{
public static IEqualityComparer<FileData> ValueComparer => FileDataEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/FileDataEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type FileData for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class FileDataEqualityComparer : IEqualityComparer<FileData>
{
internal static readonly FileDataEqualityComparer Instance = new FileDataEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/Fix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// A proposed fix for the problem represented by a result object. A fix specifies a set of file to modify. For each file, it specifies a set of bytes to remove, and provides a set of new bytes to replace them.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class Fix : ISarifNode
{
public static IEqualityComparer<Fix> ValueComparer => FixEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/FixEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type Fix for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class FixEqualityComparer : IEqualityComparer<Fix>
{
internal static readonly FixEqualityComparer Instance = new FixEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/FormattedRuleMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// Contains information that can be used to construct a formatted message that describes a result.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class FormattedRuleMessage : ISarifNode
{
public static IEqualityComparer<FormattedRuleMessage> ValueComparer => FormattedRuleMessageEqualityComparer.Instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type FormattedRuleMessage for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class FormattedRuleMessageEqualityComparer : IEqualityComparer<FormattedRuleMessage>
{
internal static readonly FormattedRuleMessageEqualityComparer Instance = new FormattedRuleMessageEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/Hash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// A hash value of some file or collection of files, together with the algorithm used to compute the hash.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class Hash : ISarifNode
{
public static IEqualityComparer<Hash> ValueComparer => HashEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/HashEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type Hash for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class HashEqualityComparer : IEqualityComparer<Hash>
{
internal static readonly HashEqualityComparer Instance = new HashEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/IRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Interface exposed by objects that provide information about analysis rules.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial interface IRule
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/ISarifNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// An interface for all types generated from the Sarif schema.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public interface ISarifNode
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/Invocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// The runtime environment of the analysis tool run.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class Invocation : PropertyBagHolder, ISarifNode
{
public static IEqualityComparer<Invocation> ValueComparer => InvocationEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/InvocationEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type Invocation for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class InvocationEqualityComparer : IEqualityComparer<Invocation>
{
internal static readonly InvocationEqualityComparer Instance = new InvocationEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/Location.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// The location where an analysis tool produced a result.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class Location : PropertyBagHolder, ISarifNode
{
public static IEqualityComparer<Location> ValueComparer => LocationEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/LocationEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type Location for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class LocationEqualityComparer : IEqualityComparer<Location>
{
internal static readonly LocationEqualityComparer Instance = new LocationEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/LogicalLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// A logical location of a construct that produced a result.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class LogicalLocation : ISarifNode
{
public static IEqualityComparer<LogicalLocation> ValueComparer => LogicalLocationEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/LogicalLocationEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type LogicalLocation for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class LogicalLocationEqualityComparer : IEqualityComparer<LogicalLocation>
{
internal static readonly LogicalLocationEqualityComparer Instance = new LogicalLocationEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/Notification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// Describes a condition relevant to the tool itself, as opposed to being relevant to a target being analyzed by the tool.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class Notification : PropertyBagHolder, ISarifNode
{
public static IEqualityComparer<Notification> ValueComparer => NotificationEqualityComparer.Instance;
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/NotificationEqualityComparer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Defines methods to support the comparison of objects of type Notification for equality.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
internal sealed class NotificationEqualityComparer : IEqualityComparer<Notification>
{
internal static readonly NotificationEqualityComparer Instance = new NotificationEqualityComparer();
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/NotificationLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// <summary>
/// Values specifying the level of a notification.
/// </summary>
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public enum NotificationLevel
{
Warning,
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif/Autogenerated/PhysicalLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
/// A physical location relevant to a result. Specifies a reference to a programming artifact together with a range of bytes or characters within that artifact.
/// </summary>
[DataContract]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.42.0.0")]
[GeneratedCode("Microsoft.Json.Schema.ToDotNet", "0.46.0.0")]
public partial class PhysicalLocation : ISarifNode
{
public static IEqualityComparer<PhysicalLocation> ValueComparer => PhysicalLocationEqualityComparer.Instance;
Expand Down
Loading

0 comments on commit d43c42e

Please sign in to comment.