PSScriptAnalyzer 1.25.0(D:\Workspace\Temp\BakNRet\.tools\modules\PSScriptAnalyzer\1.25.0) 分析 131 个文件,配置 D:\Workspace\Temp\BakNRet\PSScriptAnalyzerSettings.psd1 共 84 条,按规则汇总: 54 PSAvoidLongLines 7 PSPlaceCloseBrace 4 PSAlignAssignmentStatement 4 PSReviewUnusedParameter 4 PSUseConsistentIndentation 4 PSUseConsistentWhitespace 4 PSUseSupportsShouldProcess 2 PSAvoidUsingEmptyCatchBlock 1 PSUseDeclaredVarsMoreThanAssignments 逐条: Backup-Data.ps1:293 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Backup-Data.ps1:299 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Backup-Data.ps1:602 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Backup-Data.ps1:822 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Backup-Data.ps1:832 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Backup.ps1:42 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Backup.ps1:42 [PSUseConsistentWhitespace] Use space before and after binary and assignment operators. Backup.ps1:42 [PSUseConsistentWhitespace] Use space before and after binary and assignment operators. BakNRet.Formats.Tests.ps1:384 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Security.Tests.ps1:171 [PSReviewUnusedParameter] The parameter 'Root' has been declared but not used. BakNRet.Security.Tests.ps1:355 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Security.Tests.ps1:373 [PSUseDeclaredVarsMoreThanAssignments] The variable 'sourcePath' is assigned but never used. BakNRet.Tests.ps1:633 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Tests.ps1:937 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Tests.ps1:980 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Tests.ps1:1030 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Tests.ps1:1285 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters BakNRet.Tests.ps1:1359 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Edit-Config.ps1:63 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Edit-Config.ps1:73 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Get-BakNRetSoftwareCatalog.ps1:87 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Invoke-BakNRetBackupListEditor.ps1:24 [PSUseSupportsShouldProcess] WhatIf and/or Confirm manually defined in function Invoke-BakNRetBackupListEditor. Instead, please use SupportsShouldProcess attribute. Invoke-BakNRetBackupListEditor.ps1:69 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Invoke-BakNRetCatalogEditor.ps1:22 [PSUseSupportsShouldProcess] WhatIf and/or Confirm manually defined in function Invoke-BakNRetCatalogEditor. Instead, please use SupportsShouldProcess attribute. Invoke-BakNRetCatalogEditor.ps1:55 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Invoke-BakNRetConfigEditor.ps1:23 [PSUseSupportsShouldProcess] WhatIf and/or Confirm manually defined in function Invoke-BakNRetConfigEditor. Instead, please use SupportsShouldProcess attribute. Invoke-BakNRetMenu.ps1:46 [PSAvoidUsingEmptyCatchBlock] Empty catch block is used. Please use Write-Error or throw statements in catch blocks. Invoke-BakNRetMenu.ps1:86 [PSAlignAssignmentStatement] Assignment statements are not aligned Invoke-BakNRetMenu.ps1:87 [PSAlignAssignmentStatement] Assignment statements are not aligned Invoke-BakNRetMenu.ps1:89 [PSAlignAssignmentStatement] Assignment statements are not aligned Invoke-BakNRetMenu.ps1:90 [PSAlignAssignmentStatement] Assignment statements are not aligned Lab-Common.ps1:60 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Lab.ps1:41 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Lab.ps1:208 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Lab.ps1:226 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Lab.ps1:227 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Lab.ps1:389 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters New-BakNRetLab.ps1:111 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters provision.ps1:69 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters provision.ps1:89 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Register-BackupTask.ps1:94 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Restore-Data.ps1:141 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Restore-Data.ps1:753 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Restore-Data.ps1:850 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Restore.ps1:42 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Restore.ps1:42 [PSUseConsistentWhitespace] Use space before and after binary and assignment operators. Restore.ps1:42 [PSUseConsistentWhitespace] Use space before and after binary and assignment operators. Run-E2E.ps1:408 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-E2E.ps1:458 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-E2E.ps1:502 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-E2E.ps1:575 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:433 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:731 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:744 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:757 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:790 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:802 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:828 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:870 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:931 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:987 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1012 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1057 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1169 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1417 [PSPlaceCloseBrace] Close brace does not follow a new line. Run-Tests.ps1:1450 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1465 [PSPlaceCloseBrace] Close brace does not follow a new line. Run-Tests.ps1:1608 [PSReviewUnusedParameter] The parameter 't' has been declared but not used. Run-Tests.ps1:1615 [PSReviewUnusedParameter] The parameter 't' has been declared but not used. Run-Tests.ps1:1622 [PSPlaceCloseBrace] Close brace does not follow a new line. Run-Tests.ps1:1683 [PSPlaceCloseBrace] Close brace does not follow a new line. Run-Tests.ps1:1734 [PSPlaceCloseBrace] Close brace does not follow a new line. Run-Tests.ps1:1804 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1816 [PSPlaceCloseBrace] Close brace does not follow a new line. Run-Tests.ps1:1858 [PSUseConsistentIndentation] Indentation not consistent Run-Tests.ps1:1859 [PSUseConsistentIndentation] Indentation not consistent Run-Tests.ps1:1860 [PSUseConsistentIndentation] Indentation not consistent Run-Tests.ps1:1861 [PSUseConsistentIndentation] Indentation not consistent Run-Tests.ps1:1883 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1884 [PSAvoidLongLines] Line exceeds the configured maximum length of 160 characters Run-Tests.ps1:1896 [PSPlaceCloseBrace] Close brace does not follow a new line. Save-BakNRetConfigFile.ps1:25 [PSUseSupportsShouldProcess] WhatIf and/or Confirm manually defined in function Save-BakNRetConfigFile. Instead, please use SupportsShouldProcess attribute. Write-BakNRetAt.ps1:39 [PSAvoidUsingEmptyCatchBlock] Empty catch block is used. Please use Write-Error or throw statements in catch blocks. Write-BakNRetRunSummary.ps1:16 [PSReviewUnusedParameter] The parameter 'Mode' has been declared but not used.