5

For a while I have been contributing to Stack Overflow with PowerShell questions and answers. In here I am seeing a lot of questions with code examples that could be automatically resolved (or improved) knowing that there is an official PowerShell script analyzer which could technically be invoked as a service: See: https://github.com/TylerLeonhardt/PSSAaaS.

Examples

A few examples where the PSScriptAnalyzer rules could have automatically highlighted a potential issue:

PSScriptAnlayzer currently has almost 60 built-in rules with clear results, see: Get-ScriptAnalyzerRule and PSScriptAnalyzer deep dive – Part 4 of 4) for background.

Just like the prevention of duplicates with the automatic Similar questions pane, the PowerShell code analyzer on recognized PowerShell code (e.g. on the event the Review your question button is clicked) will likely improve the quality of PowerShell questions (and answers).

2
  • 4
    Belongs in the tag wiki. Which is too bloated, but still doesn't mention this analyzer. Nov 18, 2019 at 16:17
  • 1
    Yeah, they should add analyzers for every single language Nov 18, 2019 at 21:26

0

You must log in to answer this question.