-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial options refactoring code done * Fixed it up * More * Fix tests * Clean up API * More
- Loading branch information
Showing
26 changed files
with
371 additions
and
238 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"jaredpar", | ||
"msbuild", | ||
"Mvid", | ||
"NETCOREAPP", | ||
"Relogger", | ||
"ruleset", | ||
"Xunit" | ||
|
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 @@ | ||
unify the analyzer options on command line | ||
- Move the CompilerLogState to FilterOptionSet, make that disposable | ||
switch default to run analyzers | ||
simplify the options, kind, etc ... for loading analyzers | ||
- Move caching to the reader as it conttrols that | ||
- Move ALC to the reader as it controls that | ||
- Host options are just about what host is created, now how the host is managed | ||
better test hooks to see what program actually ran |
31 changes: 0 additions & 31 deletions
31
src/Basic.CompilerLog.UnitTests/BasicAnalyzerHostOptionsTests.cs
This file was deleted.
Oops, something went wrong.
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
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,18 @@ | ||
#if NETCOREAPP | ||
using Xunit; | ||
|
||
namespace Basic.CompilerLog.UnitTests; | ||
|
||
public sealed class FilterOptionSetTest | ||
{ | ||
[Fact] | ||
public void CheckForAnalyzers() | ||
{ | ||
var options = new FilterOptionSet(analyzers: false); | ||
Assert.Throws<InvalidOperationException>(() => options.IncludeAnalyzers); | ||
|
||
options = new FilterOptionSet(analyzers: true); | ||
Assert.True(options.IncludeAnalyzers); | ||
} | ||
} | ||
#endif |
Oops, something went wrong.