You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding cmdline flag to validate unused diffs on baseline (#5147)
* Adding cmdline flag to validate unused diffs on baseline
* Update src/Microsoft.Cci.Extensions/Filters/BaselineDifferenceFilter.cs
Co-Authored-By: Eric StJohn <ericstj@microsoft.com>
* Update src/Microsoft.Cci.Extensions/Filters/BaselineDifferenceFilter.cs
Co-Authored-By: Eric StJohn <ericstj@microsoft.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
Copy file name to clipboardExpand all lines: src/Microsoft.DotNet.ApiCompat/Program.cs
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ public static int Main(string[] args)
40
40
CommandOptionimplDirs=app.Option("-i|--impl-dirs","Comma delimited list of directories to find the implementation assemblies for each contract assembly.",CommandOptionType.SingleValue);
41
41
implDirs.IsRequired(allowEmptyStrings:true);
42
42
CommandOptionbaseline=app.Option("-b|--baseline","Comma delimited list of files to skip known diffs.",CommandOptionType.SingleValue);
43
+
CommandOptionvalidateBaseline=app.Option("--validate-baseline","Validates that baseline files don't have invalid/unused diffs.",CommandOptionType.NoValue);
43
44
CommandOptionmdil=app.Option("-m|--mdil","Enforce MDIL servicing rules in addition to IL rules.",CommandOptionType.NoValue);
44
45
CommandOptionoutFilePath=app.Option("-o|--out","Output file path. Default is the console.",CommandOptionType.SingleValue);
45
46
CommandOptionleftOperand=app.Option("-l|--left-operand","Name for left operand in comparison, default is 'contract'.",CommandOptionType.SingleValue);
@@ -94,7 +95,7 @@ public static int Main(string[] args)
contractHost.UnableToResolve+=(sender,e)=>Trace.TraceError($"Unable to resolve assembly '{e.Unresolved}' referenced by the {leftOperandValue} assembly '{e.Referrer}'.");
0 commit comments