@@ -36,7 +36,7 @@ public class CmdletDiffAnalyzer : IStaticAnalyzer
3636 "AzureRMContext" , "Break" , "Debug" , "DefaultProfile" , "EnableTestCoverage" ,
3737 "ErrorAction" , "ErrorVariable" , "HttpPipelineAppend" , "HttpPipelinePrepend" , "InformationAction" ,
3838 "InformationVariable" , "OutBuffer" , "OutVariable" , "PipelineVariable" , "Proxy" ,
39- "ProxyCredential" , "ProxyUseDefaultCredentials" , "Verbose" , "WarningAction" , "WarningVariable"
39+ "ProxyCredential" , "ProxyUseDefaultCredentials" , "Verbose" , "WarningAction" , "WarningVariable" , "ProgressAction"
4040 } ;
4141 private List < CmdletDiffInformation > diffInfo ;
4242 public CmdletDiffAnalyzer ( )
@@ -514,6 +514,11 @@ private void CompareParameterSetMetadata(
514514 }
515515 foreach ( var oldParam in oldParameterSet . Parameters )
516516 {
517+ // Skip ignored parameters
518+ if ( _ignoreParameters . Contains ( oldParam . ParameterMetadata . Name ) )
519+ {
520+ continue ;
521+ }
517522 var newParam = newSet . Parameters . FirstOrDefault ( p => p . ParameterMetadata . Name == oldParam . ParameterMetadata . Name ) ;
518523 if ( newParam == null )
519524 {
@@ -588,6 +593,11 @@ private void CompareParameterSetMetadata(
588593 }
589594 foreach ( var newParam in newSet . Parameters )
590595 {
596+ // Skip ignored parameters
597+ if ( _ignoreParameters . Contains ( newParam . ParameterMetadata . Name ) )
598+ {
599+ continue ;
600+ }
591601 var oldParam = oldParameterSet . Parameters . FirstOrDefault ( p => p . ParameterMetadata . Name == newParam . ParameterMetadata . Name ) ;
592602 if ( oldParam == null )
593603 {
0 commit comments