Skip to content

Commit 615d007

Browse files
author
Zhenyu Zhou
committed
Add statistic analysis exception by modifing SignatureIssues.csv file
1 parent c52defd commit 615d007

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterAutoscaleConfigurationCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
using System.Management.Automation;
2525
using System.Text;
2626

27-
namespace Microsoft.Azure.Commands.HDInsight.ManagementCommands
27+
namespace Microsoft.Azure.Commands.HDInsight
2828
{
2929
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightClusterAutoscaleConfiguration",
3030
DefaultParameterSetName = LoadAutoscaleParameterSet), OutputType(typeof(AzureHDInsightAutoscale))]

src/HDInsight/HDInsight/ManagementCommands/SetAzureHDInsightClusterAutoscaleConfigurationCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
using System.Management.Automation;
2525
using System.Text;
2626

27-
namespace Microsoft.Azure.Commands.HDInsight.ManagementCommands
27+
namespace Microsoft.Azure.Commands.HDInsight
2828
{
2929
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "HDInsightClusterAutoscaleConfiguration",
3030
DefaultParameterSetName = LoadAutoscaleByNameParameterSet, SupportsShouldProcess = true),

src/HDInsight/HDInsight/help/Az.HDInsight.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Creates an Azure HDInsight cluster in the specified resource group for the curre
7474
### [New-AzHDInsightClusterAutoscaleConfiguration](New-AzHDInsightClusterAutoscaleConfiguration.md)
7575
Creates a non-persisted object that describes the autoscale configuration of an Azure HDInsight cluster.
7676

77+
### [New-AzHDInsightClusterAutoscaleScheduleCondition](New-AzHDInsightClusterAutoscaleScheduleCondition.md)
78+
Creates Schedule-based autoscale condition.
79+
7780
### [New-AzHDInsightClusterConfig](New-AzHDInsightClusterConfig.md)
7881
Creates a non-persisted cluster configuration object that describes an Azure HDInsight cluster configuration.
7982

src/HDInsight/HDInsight/help/New-AzHDInsightClusterAutoscaleScheduleCondition.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This command creates a condition where cluster autoscale to 5 worker nodes at 09
4949
Gets or sets the days of Autoscale schedule condition.
5050

5151
```yaml
52-
Type: AzureHDInsightDaysOfWeek[]
52+
Type: Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightDaysOfWeek[]
5353
Parameter Sets: (All)
5454
Aliases:
5555
Accepted values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
@@ -65,7 +65,7 @@ Accept wildcard characters: False
6565
The credentials, account, tenant, and subscription used for communication with Azure.
6666
6767
```yaml
68-
Type: IAzureContextContainer
68+
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
6969
Parameter Sets: (All)
7070
Aliases: AzContext, AzureRmContext, AzureCredential
7171

@@ -80,7 +80,7 @@ Accept wildcard characters: False
8080
Gets or sets the time of Autoscale schedule condition.
8181
8282
```yaml
83-
Type: DateTime
83+
Type: System.DateTime
8484
Parameter Sets: (All)
8585
Aliases:
8686

@@ -95,7 +95,7 @@ Accept wildcard characters: False
9595
Gets or sets the schedule workernode count of Autoscale schedule condition.
9696
9797
```yaml
98-
Type: Int32
98+
Type: System.Int32
9999
Parameter Sets: (All)
100100
Aliases:
101101

tools/StaticAnalysis/Exceptions/Az.HDInsight/SignatureIssues.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,8 @@
6868
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.ManagementCommands.AddAzureHDInsightClusterIdentity","Add-AzHDInsightClusterIdentity","1","8420","Parameter set 'CertificateFilePath' of cmdlet 'Add-AzHDInsightClusterIdentity' contains at least one parameter with a position larger than four, which is discouraged.","Limit the number of positional parameters in a single parameter set to four or fewer."
6969
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.ManagementCommands.AddAzureHDInsightClusterIdentity","Add-AzHDInsightClusterIdentity","1","8420","Parameter set 'CertificateFileContents' of cmdlet 'Add-AzHDInsightClusterIdentity' contains at least one parameter with a position larger than four, which is discouraged.","Limit the number of positional parameters in a single parameter set to four or fewer."
7070
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterCommand","New-AzHDInsightCluster","1","8700","Parameter set '__AllParameterSets', 'CertificateFilePath', 'CertificateFileContents' of cmdlet 'New-AzHDInsightCluster' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."
71+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterAutoscaleScheduleConditionCommand","New-AzHDInsightClusterAutoscaleScheduleCondition","1","8100","New-AzHDInsightClusterAutoscaleScheduleCondition Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
72+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterAutoscaleScheduleConditionCommand","New-AzHDInsightClusterAutoscaleScheduleCondition","1","8410","Parameter Days of cmdlet New-AzHDInsightClusterAutoscaleScheduleCondition does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
73+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterAutoscaleConfiguration","New-AzHDInsightClusterAutoscaleConfiguration","1","8100","New-AzHDInsightClusterAutoscaleConfiguration Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
74+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.SetAzureHDInsightClusterAutoscaleConfigurationCommand","Set-AzHDInsightClusterAutoscaleConfiguration","1","8700","Parameter set 'LoadAutoscaleByResourceIdParameterSet', 'ScheduleAutoscaleByResourceIdParameterSet' of cmdlet 'Set-AzHDInsightClusterAutoscaleConfiguration' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."
75+
"Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll","Microsoft.Azure.Commands.HDInsight.SetAzureHDInsightClusterAutoscaleConfigurationCommand","Set-AzHDInsightClusterAutoscaleConfiguration","1","8700","Parameter set 'LoadAutoscaleByInputObjectParameterSet', 'ScheduleAutoscaleByInputObjectParameterSet' of cmdlet 'Set-AzHDInsightClusterAutoscaleConfiguration' have the same mandatory parameters, and both of them are not default parameter set which may cause confusion.","Merge these parameter sets into one parameter set."

0 commit comments

Comments
 (0)