PowerShell/PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery

Owned by Microsoft

View on GitHub ↗Jump to charts ↓

PowerShell/PSScriptAnalyzer has 2k+ stars and 400+ forks on GitHub, is written in C#, and was last pushed on Oct 12, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 6 minutes ago
Type:Library / SDKCategory(s):Code Quality & Static AnalysisDeveloper Tools
Added to GitGenius on October 12th, 2026
Created on March 30th, 2015
Open Issues & Pull Requests: 424 (+0)
GitHub issues: Enabled
Number of forks: 418
Total Stargazers: 2,173 (+1)
Total Subscribers: 109 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.0 days
Mean response time: 74.1 days
90th percentile: 167.1 days
Tracked items: 125

How this project is maintained

98% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "Issue - Enhancement" is answered fastest, typically in about 6 hours, while "Issue-Bug" waits about 3 weeks. Three people close 83% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 86
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 894 days
Stale 30+ days: 78
Stale 90+ days: 65

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Up-for-Grabs (24)
  • Issue - Bug (19)
  • Area - Formatter (17)
  • Area - Rules (14)
  • Issue - Enhancement (13)
  • Up for Grabs (12)
  • Issue - New Rule (11)
  • Issue-Bug (11)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

PSScriptAnalyzer is a static code analyzer for PowerShell modules and scripts that checks code quality against a set of built-in rules based on PowerShell best practices.

The tool addresses the need to identify potential defects and quality issues in PowerShell code before execution. It operates by running a collection of rules that examine various aspects of code, including the presence of uninitialized variables, use of PSCredential types, use of Invoke-Expression, and many other patterns. When issues are found, PSScriptAnalyzer generates diagnostic results in the form of errors and warnings, along with suggested improvements to help developers fix problems.

PSScriptAnalyzer is suitable for any developer or team writing PowerShell modules or scripts who wants to enforce code quality standards and catch common mistakes early. The tool ships with built-in rules covering security concerns, best practices, and code quality patterns identified by the PowerShell Team and community. It integrates with the PowerShell Gallery for easy installation and can be incorporated into development workflows and CI/CD pipelines.

The project maintains active engagement with the community through a documented code of conduct and security policy. Development activity shows responsiveness to contributions, with the team having reorganized documentation to separate user-facing content from code-focused documentation, indicating ongoing maintenance and evolution of the project structure. The project accepts contributions and maintains a presence on the PowerShell Gallery as the primary distribution channel.