-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit tested file exclusions with in-proc and out-of-proc analyzers.
- Loading branch information
Showing
14 changed files
with
153 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
source/NsDepCop.MsBuildTask.Test/ExcludedFiles/ExcludedByExtensions1.g.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,9 @@ | ||
namespace A | ||
{ | ||
using B; | ||
|
||
class MyClass3 | ||
{ | ||
private MyEnum e; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
source/NsDepCop.MsBuildTask.Test/ExcludedFiles/ExcludedByName.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,16 @@ | ||
namespace A | ||
{ | ||
using B; | ||
|
||
class MyClass1 | ||
{ | ||
private MyEnum e; | ||
} | ||
} | ||
|
||
namespace B | ||
{ | ||
enum MyEnum | ||
{ | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
source/NsDepCop.MsBuildTask.Test/ExcludedFiles/IncludedFile.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,9 @@ | ||
namespace A | ||
{ | ||
using B; | ||
|
||
class MyClass2 | ||
{ | ||
private MyEnum e; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
source/NsDepCop.MsBuildTask.Test/ExcludedFiles/Subfolder1/ExcludedByExtensions2.g.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,9 @@ | ||
namespace A | ||
{ | ||
using B; | ||
|
||
class MyClass4 | ||
{ | ||
private MyEnum e; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...sDepCop.MsBuildTask.Test/ExcludedFiles/Subfolder1/Sub folder 2/ExcludedByExtensions3.g.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,9 @@ | ||
namespace A | ||
{ | ||
using B; | ||
|
||
class MyClass5 | ||
{ | ||
private MyEnum e; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
source/NsDepCop.MsBuildTask.Test/ExcludedFiles/config.nsdepcop
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,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<NsDepCopConfig ExcludedFiles="ExcludedByName.cs, **\*.g.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
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
14 changes: 14 additions & 0 deletions
14
...DepCop.SourceTest.Roslyn2x/AnalyzerFeature_ExcludedFiles/AnalyzerFeature_ExcludedFiles.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,14 @@ | ||
namespace A | ||
{ | ||
public class MyClass | ||
{ | ||
private B.MyEnum field1; | ||
} | ||
} | ||
|
||
namespace B | ||
{ | ||
public enum MyEnum | ||
{ | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
source/NsDepCop.SourceTest.Roslyn2x/AnalyzerFeature_ExcludedFiles/config.nsdepcop
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,2 @@ | ||
<NsDepCopConfig ExcludedFiles="AnalyzerFeature_ExcludedFiles.cs"> | ||
</NsDepCopConfig> |
14 changes: 14 additions & 0 deletions
14
.../AnalyzerFeature_ExcludedFiles_WithWildcard/AnalyzerFeature_ExcludedFiles_WithWildcard.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,14 @@ | ||
namespace A | ||
{ | ||
public class MyClass | ||
{ | ||
private B.MyEnum field1; | ||
} | ||
} | ||
|
||
namespace B | ||
{ | ||
public enum MyEnum | ||
{ | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...e/NsDepCop.SourceTest.Roslyn2x/AnalyzerFeature_ExcludedFiles_WithWildcard/config.nsdepcop
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,2 @@ | ||
<NsDepCopConfig ExcludedFiles="*.cs"> | ||
</NsDepCopConfig> |
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