Skip to content
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

Implement smart validation in SarifCli tool #501

Merged
53 commits merged into from Sep 1, 2016
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7faaf3d
Implement smart validation in SarifCli tool
Aug 22, 2016
ebb4a4c
Revert an accidental change to a .csproj file
Aug 23, 2016
302d02f
SarifCli: Minor cleanups
Aug 24, 2016
bf4b015
Fix appVeyor build break
Aug 24, 2016
046c98f
SarifCli: Get JSchema/JPointer from NuGet, not FCIB
Aug 24, 2016
d6de920
Sarif.ValidationTests: Get JSchema from NuGet, not FCIB
Aug 24, 2016
00a6e30
Upgrade ToDotNet.targets to JSchema.ToDotNet 0.45.0
Aug 24, 2016
c1e2261
Remove FCIBs; Microsoft.Json.* now come from NuGet
Aug 24, 2016
2110f95
Add SarifCli.FunctionalTests to appveyor.yml
Aug 24, 2016
a80c8d9
Refactor: Move HelpUri to SkimmerBase, rename RuleIds => RuleId
Aug 25, 2016
d241fa0
Refactor: Make Context a protected property of SkimmerBase
Aug 25, 2016
3316b0a
Refactor: Move visiting logic into SkimmerBase
Aug 25, 2016
b1da0ed
Refactor: Move result construction to SkimmerBase
Aug 25, 2016
2da17d4
Refactor: Rename SkimmerBase.Visit to Analyze
Aug 25, 2016
06a904a
Refactor: Extract Visit method; remove unneeded properties
Aug 25, 2016
7d6ccdd
Refactor: Extract Visit(Run), decompose pointer construction
Aug 25, 2016
e03e8e9
Bug fix: Command line broken: can't find System.Composition.Hosting
Aug 25, 2016
a518291
SarifCli: Visit results (prep for the next skimmer)
Aug 25, 2016
2a7ca77
SarifCli: Start of UseAbsolutePathsForNestedFileUriFragments skimmer
Aug 25, 2016
4918d39
UseAbsolutePathsForNestedFileUriFragments checks location.resultFile.uri
Aug 25, 2016
b73be17
SarifCli: Include the JSON pointer in each message
Aug 25, 2016
d46055f
UseAbsolutePathsForNestedFileUriFragments handles result.relatedLocat…
Aug 25, 2016
7666936
UseAbsolutePathsForNestedFileUriFragments handles codeFlow URIs
Aug 25, 2016
075284c
UseAbsolutePathsForNestedFileUriFragments handles stack frame URIs
Aug 25, 2016
eb59c47
UseAbsolutePathsForNestedFileUriFragments handles notification analys…
Aug 26, 2016
85cf6c5
Refactor: DRY out UseAbsolutePathsForNestedFileUriFragments
Aug 26, 2016
6c12eee
Refactor: SarifCli: DRY out tool and configuration notification handling
Aug 26, 2016
dadefdf
UseAbsolutePathsForNestedFileUriFragments handles fileChange URIs
Aug 26, 2016
02aff1f
SarifCli: Remove unnecessary elements from test files
Aug 26, 2016
bd6596b
SarifCli: Implement UriValuedPropertiesAreValidUris and AnnotatedCode…
Aug 26, 2016
6a77b70
SarifCli: Implement HashAlgorithmsMustBeUnique rule
Aug 26, 2016
714ef3a
SarifCli: Implement EndTimeMustBeAfterStartTime
Aug 27, 2016
255ad4f
SarifCli: Remove "Diagnostic" from test names; use DisplayName
Aug 27, 2016
4dd64a8
SarifCli: Implement AnnotatedCodeLocationEssentialIsObsolete rule
Aug 27, 2016
372554e
Bug fix: Don't run skimmers if log has a syntax error
Aug 27, 2016
0f7d0d2
Bug fix: Don't run skimmers if log can't be deserialized
Aug 27, 2016
b2e999c
Bug fix: Tests failed because of misnamed test files
Aug 28, 2016
1445d1c
Bug fix: Missed presence of default value for aCL.essential
Aug 28, 2016
caf7d82
Implement MessagesShouldEndWithPeriod rule
Aug 29, 2016
0d70945
Implement StepMustIncreaseByOneFromOne (NotPresentOnAll)
Aug 29, 2016
78d9a5e
StepValuesMustFormOneBasedSequence (InvalidStepValue)
Aug 29, 2016
0466ffe
SarifCli: Implement StepMustAppearOnlyInCodeFlowLocations rule
Aug 29, 2016
88602d8
SarifCli: Implement ImportanceMustAppearOnlyInCodeFlowLocations rule
Aug 29, 2016
6d2129d
SarifCli: Refactor: Introduce HasProperty extension method
Aug 29, 2016
ddaaf13
SarifCli: Implement EndLineMustNotBeLessThanStartLine rule
Aug 29, 2016
0e40898
SarifCli: Refactor: Introduce ToInvariantString
Aug 29, 2016
9e6ea5a
SarifCli: Implement EndColumnMustNotBeLessThanStartColumn rule
Aug 29, 2016
fbd4bbf
Merge branch 'master' into smart-validator
Aug 30, 2016
e8b143b
Merge branch 'master' into smart-validator
Aug 30, 2016
3197e82
For some reason Autogenerated/TaintKind.cs had wrong version
Aug 30, 2016
c83acff
Upgrade to SARIF 1.5.29 and JSchema 0.46.0
Aug 30, 2016
d51cb4a
Use IAnalyzeOptions.Quiet in SarifCli.FunctionalTests
Aug 30, 2016
e6f6029
Add a comment.
Sep 1, 2016
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
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'
Copy link
Member

@michaelcfanning michaelcfanning Aug 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microsoft.CodeAnalysis [](start = 10, length = 22)

Why is this naming convention different? Should be SarifCli.FunctionalTests.dll. #Closed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


In reply to: 76704201 [](ancestors = 76704201)


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.45.0.0, Culture=neutral, PublicKeyToken=0a75a800dbdd2daa, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Json.Schema.0.45.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.27.0, Culture=neutral, PublicKeyToken=a567ef0185dba9aa, processorArchitecture=MSIL">
<HintPath>..\packages\Sarif.Sdk.1.5.27\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.27" targetFramework="net45" />
<package id="Microsoft.Json.Schema" version="0.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.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.45.0.0")]
public partial class PhysicalLocation : ISarifNode
{
public static IEqualityComparer<PhysicalLocation> ValueComparer => PhysicalLocationEqualityComparer.Instance;
Expand Down
Loading