ScriptCop is a static analysis and testing tool for Windows PowerShell
PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Assets
Fixers
Icicles
Pages
Patrols
Rules
Tests
en-us
Disable-CommandCoverage.ps1
Enable-CommandCoverage.ps1
Get-CommandCoverage.ps1
Get-FunctionFromScript.ps1
Get-ScriptCopFixer.ps1
Get-ScriptCopPatrol.ps1
Get-ScriptCopRule.ps1
Get-ScriptToken.ps1
License.md
Readme.md
Register-ScriptCopFixer.ps1
Register-ScriptCopPatrol.ps1
Register-ScriptCopRule.ps1
Repair-Command.ps1
Save-Function.ps1
Save-ScriptCopPatrol.ps1
ScriptCop.EzFormat.ps1
ScriptCop.Format.ps1xml
ScriptCop.Pipeworks.psd1
ScriptCop.ScriptCop.psd1
ScriptCop.psd1
ScriptCop.psm1
Show-ScriptCop.ps1
Show-ScriptCoverage.ps1
Test-Command.ps1
Test-Module.ps1
Test-ScriptCopFixer.ps1
Test-ScriptCopRule.ps1
Test-Stress.ps1
Unregister-ScriptCopFixer.ps1
Unregister-ScriptCopPatrol.ps1
Unregister-ScriptCopRule.ps1

Readme.md

Official Website

ScriptCop is a tool to help make sure your scripts follow the rules.

ScriptCop performs static analysis on your PowerShell, and provides tools for automating testing with PowerShell.

When using ScriptCop analyzes your scripts, it it doesn't run your code, but it examines your code for a set of well-known problems. You can write custom rules to flag bad scripting style, or you can use the dozens of rules built into ScriptCop.

You can also use ScriptCop to test your scripts. By default, every command's example and demo becomes a test case for your module. You can also write your own tests to make sure different parts are working.