-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
293 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/sarif-1.0.0", | ||
"version": "1.0.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"name": "Microsoft (R) Visual C# Compiler", | ||
"version": "4.11.0.0", | ||
"fileVersion": "4.11.0-3.24468.6 (b4e5d1dd)", | ||
"semanticVersion": "4.11.0", | ||
"language": "en-US" | ||
}, | ||
"results": [ | ||
{ | ||
"ruleId": "CA1707", | ||
"level": "warning", | ||
"message": "Remove the underscores from member name Agoda.SupplyExtranetTemplate.UnitTests.ExampleTestFixture.ExampleTest_WhenProvide1_ValueShouldBe1()", | ||
"locations": [ | ||
{ | ||
"resultFile": { | ||
"uri": "file:///C:/source/gitlab.agoda.com/full-stack/templates/supply-extranet-template/src/AspnetWebApi/src/Agoda.SupplyExtranetTemplate.UnitTests/ExampleTestFixture.cs", | ||
"region": { | ||
"startLine": 10, | ||
"startColumn": 17, | ||
"endLine": 10, | ||
"endColumn": 56 | ||
} | ||
} | ||
} | ||
], | ||
"properties": { | ||
"warningLevel": 1 | ||
} | ||
} | ||
], | ||
"rules": { | ||
"CA1707": { | ||
"id": "CA1707", | ||
"shortDescription": "Identifiers should not contain underscores", | ||
"fullDescription": "By convention, identifier names do not contain the underscore (_) character. This rule checks namespaces, types, members, and parameters.", | ||
"defaultLevel": "note", | ||
"helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707", | ||
"properties": { | ||
"category": "Naming", | ||
"isEnabledByDefault": true, | ||
"tags": [ | ||
"PortedFromFxCop", | ||
"Telemetry", | ||
"EnabledRuleInAggressiveMode" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a.CodeCompass.MSBuild/ArtifactLocation.cs → ...Compass.MSBuild/Sarif/ArtifactLocation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class ArtifactLocation | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/Location.cs → ...oda.CodeCompass.MSBuild/Sarif/Location.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Location | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/Message.cs → ...goda.CodeCompass.MSBuild/Sarif/Message.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Message | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...a.CodeCompass.MSBuild/PhysicalLocation.cs → ...Compass.MSBuild/Sarif/PhysicalLocation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class PhysicalLocation | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/Region.cs → ...Agoda.CodeCompass.MSBuild/Sarif/Region.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Region | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/Result.cs → ...Agoda.CodeCompass.MSBuild/Sarif/Result.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Result | ||
{ | ||
|
1 change: 1 addition & 0 deletions
1
src/Agoda.CodeCompass.MSBuild/Rule.cs → src/Agoda.CodeCompass.MSBuild/Sarif/Rule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using Agoda.CodeCompass.MSBuild; | ||
using Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Rule | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/Run.cs → src/Agoda.CodeCompass.MSBuild/Sarif/Run.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Agoda.CodeCompass.MSBuild; | ||
using Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Run | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/SarifReport.cs → ....CodeCompass.MSBuild/Sarif/SarifReport.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class SarifReport | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class SarifV1Report | ||
{ | ||
public string Schema { get; set; } = "http://json.schemastore.org/sarif-1.0.0"; | ||
public string Version { get; set; } = "1.0.0"; | ||
public V1Run[] Runs { get; set; } = Array.Empty<V1Run>(); | ||
} |
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/Tool.cs → src/Agoda.CodeCompass.MSBuild/Sarif/Tool.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class Tool | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Agoda.CodeCompass.MSBuild/ToolDriver.cs → ...a.CodeCompass.MSBuild/Sarif/ToolDriver.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Agoda.CodeCompass.MSBuild; | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class ToolDriver | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class V1Location | ||
{ | ||
public V1ResultFile ResultFile { get; set; } = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class V1Region | ||
{ | ||
public int StartLine { get; set; } | ||
public int StartColumn { get; set; } | ||
public int EndLine { get; set; } | ||
public int EndColumn { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class V1Result | ||
{ | ||
public string RuleId { get; set; } = string.Empty; | ||
public string Level { get; set; } = string.Empty; | ||
public string Message { get; set; } = string.Empty; | ||
public V1Location[] Locations { get; set; } = Array.Empty<V1Location>(); | ||
public TechDebtProperties Properties { get; set; } = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class V1ResultFile | ||
{ | ||
public string Uri { get; set; } = string.Empty; | ||
public V1Region Region { get; set; } = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Agoda.CodeCompass.MSBuild.Sarif; | ||
|
||
public class V1Run | ||
{ | ||
public V1Result[] Results { get; set; } = Array.Empty<V1Result>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.