alt3 / Docusaurus.Powershell

Docusaurus websites for PowerShell modules
https://docusaurus-powershell.vercel.app/
MIT License
28 stars 11 forks source link

Improve PSScriptAnalyzer #171

Closed bravo-kernel closed 1 year ago

bravo-kernel commented 1 year ago
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docusaurus-powershell ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2023 2:43pm
github-actions[bot] commented 1 year ago

PSScriptAnalyzer results:

Errors: [0], Warnings: [27], Information: [0]

``` RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : GetCustomEditUrl.Tests.ps1 Line : 10 Message : The variable 'DummyMarkdownFile' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : GetCustomEditUrl.Tests.ps1 Line : 11 Message : The variable 'DummyModuleFile' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : HtmlEncodeLessThanBrackets.psm1 Line : 42 Message : The parameter 'Dummy' has been declared but not used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : UnescapeInlineCode.psm1 Line : 51 Message : The parameter 'Dummy' has been declared but not used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSUseSingularNouns Severity : Warning ScriptName : SeparateMarkdownHeadings.psm1 Line : 1 Message : The cmdlet 'Test-SeparateMarkdownHeadings' uses a plural noun. A singular noun should be used instead. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdxWithPlaceholders' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdxWithPlaceholders' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 24 Message : The variable 'generatedMdxWithoutPlaceholders' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 25 Message : The variable 'expectedMdxWithoutPlaceholders' is assigned but never used. RuleName : PSUseSingularNouns Severity : Warning ScriptName : PlaceholderExamples.psm1 Line : 1 Message : The cmdlet 'Test-PlaceholderExamples' uses a plural noun. A singular noun should be used instead. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 6 Message : The variable 'isPS7' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 18 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 19 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 16 Message : The variable 'generatedMdx' is assigned but never used. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : Integration.Tests.ps1 Line : 17 Message : The variable 'expectedMdx' is assigned but never used. ```