Skip to content

Commit 0bba017

Browse files
committed
Tmp remove linux
1 parent 0d896bd commit 0bba017

File tree

83 files changed

+8987
-2381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+8987
-2381
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
windows:
2020
OSName: ${{ variables.WindowsName }}
2121
ImageName: ${{ variables.WindowsImage }}
22-
linux:
23-
OSName: ${{ variables.LinuxName }}
24-
ImageName: ${{ variables.LinuxImage }}
2522
macOS:
2623
OSName: ${{ variables.MacOSName }}
2724
ImageName: ${{ variables.MacOSImage }}
@@ -45,9 +42,6 @@ jobs:
4542
windows:
4643
OSName: ${{ variables.WindowsName }}
4744
ImageName: ${{ variables.WindowsImage }}
48-
linux:
49-
OSName: ${{ variables.LinuxName }}
50-
ImageName: ${{ variables.LinuxImage }}
5145
macOS:
5246
OSName: ${{ variables.MacOSName }}
5347
ImageName: ${{ variables.MacOSImage }}
@@ -70,9 +64,6 @@ jobs:
7064
windows:
7165
OSName: ${{ variables.WindowsName }}
7266
ImageName: ${{ variables.WindowsImage }}
73-
linux:
74-
OSName: ${{ variables.LinuxName }}
75-
ImageName: ${{ variables.LinuxImage }}
7667
macOS:
7768
OSName: ${{ variables.MacOSName }}
7869
ImageName: ${{ variables.MacOSImage }}

build.proj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,37 +222,35 @@
222222
<!-- Everything except Publish -->
223223
<Target Name="Full" DependsOnTargets="Clean;Build;OnPremChecks;GenerateHelp;StaticAnalysis;Test" />
224224

225-
<Target Name="StaticAnalysisBreakingChange" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="Build">
225+
<Target Name="StaticAnalysisBreakingChange" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="FilterBuild">
226226
<Message Importance="high" Text="Running static analysis for breaking change..." />
227227
<MakeDir Directories="$(StaticAnalysisOutputDirectory)" />
228228

229229
<Exec Command="dotnet $(RepoArtifacts)StaticAnalysis/StaticAnalysis.Netcore.dll -p $(RepoArtifacts)$(Configuration) -r $(StaticAnalysisOutputDirectory) --analyzers breaking-change -u -m '%(FilterTaskResult.breaking-change)'" />
230230
</Target>
231231

232-
<Target Name="StaticAnalysisDependency" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="Build">
232+
<Target Name="StaticAnalysisDependency" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="FilterBuild">
233233
<Message Importance="high" Text="Running static analysis for dependency..." />
234234
<MakeDir Directories="$(StaticAnalysisOutputDirectory)" />
235235

236236
<Exec Command="dotnet $(RepoArtifacts)StaticAnalysis/StaticAnalysis.Netcore.dll -p $(RepoArtifacts)$(Configuration) -r $(StaticAnalysisOutputDirectory) --analyzers dependency -u -m '%(FilterTaskResult.breaking-change)'" />
237237
</Target>
238238

239-
<Target Name="StaticAnalysisSignature" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="Build">
239+
<Target Name="StaticAnalysisSignature" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="FilterBuild">
240240
<Message Importance="high" Text="Running static analysis for signature..." />
241241
<MakeDir Directories="$(StaticAnalysisOutputDirectory)" />
242242

243243
<Exec Command="dotnet $(RepoArtifacts)StaticAnalysis/StaticAnalysis.Netcore.dll -p $(RepoArtifacts)$(Configuration) -r $(StaticAnalysisOutputDirectory) --analyzers signature -u -m '%(FilterTaskResult.signature)'" />
244244
</Target>
245245

246-
<Target Name="StaticAnalysisHelp" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="Build">
246+
<Target Name="StaticAnalysisHelp" Condition="'$(RunStaticAnalysis)' == 'true'" DependsOnTargets="FilterBuild">
247247
<Message Importance="high" Text="Running static analysis for help..." />
248248
<MakeDir Directories="$(StaticAnalysisOutputDirectory)" />
249249

250250
<Exec Command="dotnet $(RepoArtifacts)StaticAnalysis/StaticAnalysis.Netcore.dll -p $(RepoArtifacts)$(Configuration) -r $(StaticAnalysisOutputDirectory) --analyzers help -u -m '%(FilterTaskResult.help)'" />
251251
</Target>
252252

253253
<Target Name="StaticAnalysis" DependsOnTargets="StaticAnalysisBreakingChange;StaticAnalysisDependency;StaticAnalysisSignature;StaticAnalysisHelp">
254-
<!-- <Target Name="StaticAnalysis"> -->
255-
<Exec Command="dotnet publish $(RepoTools)StaticAnalysis/StaticAnalysis.Netcore.csproj -c $(Configuration) -f netcoreapp2.1" />
256254
<Message Importance="high" Text="Running static analysis..." />
257255

258256
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/CheckAssemblies.ps1 -BuildConfig $(Configuration) &quot;" />

tools/ModuleMetadata/Compare.py

Lines changed: 0 additions & 192 deletions
This file was deleted.

tools/ModuleMetadata/GetModuleMetadata.psm1

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,43 @@ function Get-OutputTypeMetadata
117117
)
118118
$OutputMetadataList = [System.Collections.Generic.List[OutputMetadata]]::New()
119119

120-
$OutputList = $Cmdlet.ImplementingType.GetTypeInfo().GetCustomAttributes([System.Management.Automation.OutputTypeAttribute], $true)
121-
foreach ($Output in $OutputList)
120+
if ('Function' -eq $Cmdlet.CommandType)
122121
{
123-
$OutputMetadata = [OutputMetadata]::new()
124-
$OutputMetadata.Type = [TypeMetadata]::New($Output.Type.Type, $ModuleMetadata)
125-
$OutputMetadata.ParameterSets = $Output.ParameterSetName
126-
$OutputMetadataList.Add($OutputMetadata)
122+
foreach ($OutputType in $Cmdlet.OutputType)
123+
{
124+
$OutputMetadata = [OutputMetadata]::new()
125+
$OutputMetadata.Type = [TypeMetadata]::New($OutputType.Type, $ModuleMetadata)
126+
if ($Null -eq $OutputType.ParameterSetName)
127+
{
128+
$OutputMetadata.ParameterSets = @('__AllParameterSets')
129+
}
130+
else
131+
{
132+
$OutputMetadata.ParameterSets = $OutputType.ParameterSetName
133+
}
134+
$OutputMetadataList.Add($OutputMetadata)
135+
}
136+
}
137+
else
138+
{
139+
$OutputAttributeList = $Cmdlet.ImplementingType.GetTypeInfo().GetCustomAttributes([System.Management.Automation.OutputTypeAttribute], $true)
140+
foreach ($OutputAttribute in $OutputAttributeList)
141+
{
142+
foreach ($OutputType in $OutputAttribute.Type)
143+
{
144+
$OutputMetadata = [OutputMetadata]::new()
145+
$OutputMetadata.Type = [TypeMetadata]::New($OutputType.Type, $ModuleMetadata)
146+
if ($Null -eq $OutputType.ParameterSetName)
147+
{
148+
$OutputMetadata.ParameterSets = @('__AllParameterSets')
149+
}
150+
else
151+
{
152+
$OutputMetadata.ParameterSets = $OutputType.ParameterSetName
153+
}
154+
$OutputMetadataList.Add($OutputMetadata)
155+
}
156+
}
127157
}
128158

129159
return $OutputMetadataList
@@ -302,6 +332,10 @@ function Get-ModuleMetadata
302332
{
303333
$CmdletMetadata.ClassName = $Cmdlet.ImplementingType.FullName
304334
}
335+
else
336+
{
337+
$CmdletMetadata.ClassName = $CmdletMetadata.Name
338+
}
305339

306340
[System.Collections.Generic.List[OutputMetadata]]$OutputMetadataList = Get-OutputTypeMetadata -Cmdlet $Cmdlet -ModuleMetadata $ModuleMetadata
307341
if ($OutputMetadataList.Count -ne 0)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"Az.ADDomainServices","Get-AzADDomainService","Get-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet Get-AzADDomainService 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."
3+
"Az.ADDomainServices","New-AzADDomainService","New-AzADDomainService","1","8100","New-AzADDomainService 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"
4+
"Az.ADDomainServices","New-AzADDomainService","New-AzADDomainService","1","8410","Parameter LdapSettingLdaps of cmdlet New-AzADDomainService 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."
5+
"Az.ADDomainServices","New-AzADDomainService","New-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet New-AzADDomainService 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."
6+
"Az.ADDomainServices","New-AzADDomainServiceForestTrust","New-AzADDomainServiceForestTrust","1","8100","New-AzADDomainServiceForestTrust 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"
7+
"Az.ADDomainServices","New-AzADDomainServiceReplicaSet","New-AzADDomainServiceReplicaSet","1","8100","New-AzADDomainServiceReplicaSet 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"
8+
"Az.ADDomainServices","Remove-AzADDomainService","Remove-AzADDomainService","1","8100","Remove-AzADDomainService Does not support ShouldProcess but the cmdlet verb Remove indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
9+
"Az.ADDomainServices","Remove-AzADDomainService","Remove-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet Remove-AzADDomainService 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."
10+
"Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8100","Update-AzADDomainService Does not support ShouldProcess but the cmdlet verb Update indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
11+
"Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8410","Parameter LdapSettingLdaps of cmdlet Update-AzADDomainService 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."
12+
"Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet Update-AzADDomainService 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."
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"Az.Accounts","Microsoft.Azure.Commands.Common.RegisterAzModule","Register-AzModule","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Register-AzModule' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Register-AzModule'."
3+
"Az.Accounts","Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand","Connect-AzAccount","0","1010","The cmdlet 'Connect-AzAccount' no longer supports the alias 'Login-AzureRmAccount'.","Add the alias 'Login-AzureRmAccount back to the cmdlet 'Connect-AzAccount'."
4+
"Az.Accounts","Microsoft.Azure.Commands.Profile.DisconnectAzureRmAccountCommand","Disconnect-AzAccount","0","1010","The cmdlet 'Disconnect-AzAccount' no longer supports the alias 'Logout-AzureRmAccount'.","Add the alias 'Logout-AzureRmAccount back to the cmdlet 'Disconnect-AzAccount'."
5+
"Az.Accounts","Microsoft.Azure.Commands.Profile.GetAzureRMTenantCommand","Get-AzTenant","0","1010","The cmdlet 'Get-AzTenant' no longer supports the alias 'Get-AzureRmDomain'.","Add the alias 'Get-AzureRmDomain back to the cmdlet 'Get-AzTenant'."

0 commit comments

Comments
 (0)