Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix project to test all SL parameters
Co-Authored-By: Čaba Šagi <75226367+csaba-sagi-sonarsource@users.noreply.github.com>
- Loading branch information
1 parent
25cddf9
commit cd8f08a
Showing
18 changed files
with
167 additions
and
10 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
17 changes: 17 additions & 0 deletions
17
analyzers/its/expected/SonarLintExclusions/SonarLintExclusions--net7.0-S1186.json
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,17 @@ | ||
{ | ||
"issues": [ | ||
{ | ||
"id": "S1186", | ||
"message": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.", | ||
"location": { | ||
"uri": "sources\SonarLintExclusions\SonarLintExclusions\Excluded.cs", | ||
"region": { | ||
"startLine": 5, | ||
"startColumn": 34, | ||
"endLine": 5, | ||
"endColumn": 39 | ||
} | ||
} | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
analyzers/its/expected/SonarLintExclusions/SonarLintExclusions--net7.0-S2094.json
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,17 @@ | ||
{ | ||
"issues": [ | ||
{ | ||
"id": "S2094", | ||
"message": "Remove this empty class, write its code or make it an "interface".", | ||
"location": { | ||
"uri": "sources\SonarLintExclusions\SonarLintExclusions\Included.cs", | ||
"region": { | ||
"startLine": 3, | ||
"startColumn": 18, | ||
"endLine": 3, | ||
"endColumn": 26 | ||
} | ||
} | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
analyzers/its/expected/SonarLintExclusions/SonarLintExclusions--net7.0-S3168.json
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,17 @@ | ||
{ | ||
"issues": [ | ||
{ | ||
"id": "S3168", | ||
"message": "Return 'Task' instead.", | ||
"location": { | ||
"uri": "sources\SonarLintExclusions\SonarLintExclusions\Excluded.cs", | ||
"region": { | ||
"startLine": 5, | ||
"startColumn": 29, | ||
"endLine": 5, | ||
"endColumn": 33 | ||
} | ||
} | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
analyzers/its/expected/SonarLintExclusions/SonarLintExclusions--net7.0-S3990.json
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 @@ | ||
{ | ||
"issues": [ | ||
{ | ||
"id": "S3990", | ||
"message": "Provide a 'CLSCompliant' attribute for assembly 'SonarLintExclusions'.", | ||
"location": null | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
analyzers/its/expected/SonarLintExclusions/SonarLintExclusions--net7.0-S3992.json
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 @@ | ||
{ | ||
"issues": [ | ||
{ | ||
"id": "S3992", | ||
"message": "Provide a 'ComVisible' attribute for assembly 'SonarLintExclusions'.", | ||
"location": null | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
analyzers/its/expected/SonarLintExclusions/SonarLintExclusionsTest--net7.0-S2699.json
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,30 @@ | ||
{ | ||
"issues": [ | ||
{ | ||
"id": "S2699", | ||
"message": "Add at least one assertion to this test case.", | ||
"location": { | ||
"uri": "sources\SonarLintExclusions\SonarLintExclusionsTest\ExcludedTest.cs", | ||
"region": { | ||
"startLine": 8, | ||
"startColumn": 21, | ||
"endLine": 8, | ||
"endColumn": 32 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "S2699", | ||
"message": "Add at least one assertion to this test case.", | ||
"location": { | ||
"uri": "sources\SonarLintExclusions\SonarLintExclusionsTest\IncludedTest.cs", | ||
"region": { | ||
"startLine": 8, | ||
"startColumn": 21, | ||
"endLine": 8, | ||
"endColumn": 32 | ||
} | ||
} | ||
} | ||
] | ||
} |
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
7 changes: 0 additions & 7 deletions
7
analyzers/its/sources/SonarLintExclusions/SonarLintExclusions/Excluded.cs
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...yzers/its/sources/SonarLintExclusions/SonarLintExclusions/Included/ExcludedByExclusion.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace SonarLintExclusions | ||
{ | ||
public class ExcludedByExclusion { } // S2094 | ||
} |
4 changes: 4 additions & 0 deletions
4
...its/sources/SonarLintExclusions/SonarLintExclusions/Included/ExcludedByGlobalExclusion.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace SonarLintExclusions | ||
{ | ||
public class ExcludedByGlobalExclusion { } // S2094 | ||
} |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
analyzers/its/sources/SonarLintExclusions/SonarLintExclusions/NotIncluded.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SonarLintExclusions | ||
{ | ||
internal class NotIncluded | ||
{ | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
analyzers/its/sources/SonarLintExclusions/SonarLintExclusionsExcludeAllButOne/Exclude1.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace SonarLintExclusionsExcludeAllButOne | ||
{ | ||
public class Exclude1 | ||
{ | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
analyzers/its/sources/SonarLintExclusions/SonarLintExclusionsExcludeAllButOne/Exclude2.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace SonarLintExclusionsExcludeAllButOne | ||
{ | ||
public class Exclude2 | ||
{ | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
analyzers/its/sources/SonarLintExclusions/SonarLintExclusionsExcludeAllButOne/Exclude3.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace SonarLintExclusionsExcludeAllButOne | ||
{ | ||
public class Exclude3 | ||
{ | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
analyzers/its/sources/SonarLintExclusions/SonarLintExclusionsExcludeAllButOne/Include.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace SonarLintExclusionsExcludeAllButOne | ||
{ | ||
public class Class1 | ||
{ | ||
|
||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...Exclusions/SonarLintExclusionsExcludeAllButOne/SonarLintExclusionsExcludeAllButOne.csproj
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 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
</Project> |