ScriptAnalyzer test failures #627

Open
niphlod opened this Issue Feb 1, 2017 · 0 comments

Projects

None yet

1 participant

@niphlod
Contributor
niphlod commented Feb 1, 2017 edited

Every ScriptAnalyzer-related warning will be fixed AFTER finalizing the styleguide.
I'll update the list here to monitor the progress when we'll start tackling those.

date total hits
2017-02-01 351
function hits
Connect-DbaSqlServer.ps1 2
Copy-SqlAlert.ps1 2
Copy-SqlAudit.ps1 1
Copy-SqlBackupDevice.ps1 1
Copy-SqlCentralManagementServer.ps1 7
Copy-SqlCredential.ps1 7
Copy-SqlDatabase.ps1 19
Copy-SqlDatabaseAssembly.ps1 3
Copy-SqlDataCollector.ps1 2
Copy-SqlExtendedEvent.ps1 2
Copy-SqlLinkedServer.ps1 8
Copy-SqlLogin.ps1 18
Copy-SqlOperator.ps1 1
Copy-SqlPolicyManagement.ps1 4
Copy-SqlProxyAccount.ps1 1
Copy-SqlReplication.ps1 1
Copy-SqlResourceGovernor.ps1 1
Copy-SqlServerRole.ps1 2
Copy-SqlSpConfigure.ps1 1
Copy-SqlSsisCatalog.ps1 7
Copy-SqlSysDbUserObjects.ps1 2
CsvSqlimport.ps1 24
Disable-SqlLogonTrigger.ps1 2
Expand-SqlTLogResponsibly.ps1 4
ExportImportSqlConfig.ps1 2
Export-SqlLogin.ps1 8
Find-DbaOrphanedFile.ps1 2
Find-SqlDuplicateIndex.ps1 3
Find-SqlUnusedIndex.ps1 2
Get-DbaAvailabilityGroup.ps1 4
Get-DbaBackupHistory.ps1 4
Get-DbaClusterActiveNode.ps1 3
Get-DbaDatabaseSnapshot.ps1 1
Get-DbaDiskSpace.ps1 5
Get-DbaHelpIndex.ps1 2
Get-DbaLastBackup.ps1 1
Get-DbaLastGoodCheckDb.ps1 2
Get-DbaMemoryUsage.ps1 1
Get-DbaPermission.ps1 1
Get-DbaProcess.ps1 6
Get-DbaRestoreHistory.ps1 2
Get-DbaStartupParameter.ps1 8
Get-DbaTcpPort.ps1 4
Get-DbaTrigger.ps1 1
Get-DbaXEventsSession.ps1 1
Get-SqlRegisteredServerName.ps1 5
Get-SqlServerKey.ps1 5
Install-SqlWhoIsActive.ps1 2
Invoke-SqlCmd2.ps1 3
New-DbaDatabaseSnapshot.ps1 1
Out-DbaDataTable.ps1 1
Read-DbaBackupHeader.ps1 3
Remove-DbaBackup.ps1 2
Remove-DbaDatabaseSnapshot.ps1 2
Remove-SqlDatabaseSafely.ps1 1
Remove-SqlOrphanUser.ps1 1
Repair-DbaServerName.ps1 5
Repair-SqlOrphanUser.ps1 1
Reset-SqlAdmin.ps1 8
Resolve-DbaNetworkName.ps1 3
Restore-DbaFromDatabaseSnapshot.ps1 1
Restore-SqlBackupFromDirectory.ps1 13
Set-DbaDatabaseOwner.ps1 1
Set-DbaDatabaseState.ps1 1
Set-DbaJobOwner.ps1 1
Set-DbaMaxDop.ps1 4
Set-DbaMaxMemory.ps1 5
Set-DbaPowerPlan.ps1 7
Set-SqlTempDBConfiguration.ps1 1
Show-SqlDatabaseList.ps1 2
Show-SqlServerFileSystem.ps1 1
Show-SqlWhoIsActive.ps1 3
Start-SqlMigration.ps1 1
Stop-DbaProcess.ps1 1
Sync-SqlLoginPermissions.ps1 42
Test-DbaDatabaseCollation.ps1 1
Test-DbaDatabaseCompatibility.ps1 1
Test-DbaDiskAlignment.ps1 9
Test-DbaDiskAllocation.ps1 2
Test-DbaLastBackup.ps1 5
Test-DbaServerName.ps1 1
Test-SqlConnection.ps1 2
Test-SqlMigrationConstraint.ps1 1
Test-SqlNetworkLatency.ps1 1
Test-SqlTempDBConfiguration.ps1 1
Update-dbatools.ps1 3
Update-SqlWhoIsActive.ps1 2
Write-DbaDataTable.ps1 10
rule hits
PSAvoidUsingCmdletAliases 20
PSAvoidUsingEmptyCatchBlock 10
PSAvoidUsingInvokeExpression 1
PSAvoidUsingPlainTextForPassword 38
PSAvoidUsingPositionalParameters 1
PSAvoidUsingWMICmdlet 11
PSAvoidUsingWriteHost 1
PSMisleadingBacktick 1
PSPossibleIncorrectComparisonWithNull 151
PSShouldProcess 6
PSUseApprovedVerbs 2
PSUseBOMForUnicodeEncodedFile 3
PSUseDeclaredVarsMoreThanAssignments 46
PSUseOutputTypeCorrectly 18
PSUsePSCredentialType 21
PSUseShouldProcessForStateChangingFunctions 11
PSUseSingularNouns 10
@niphlod niphlod added the bug label Feb 1, 2017
@niphlod niphlod added this to the showmewhatyougot milestone Feb 1, 2017
This was referenced Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment