It is a VSTS extension providing a Build/Release task to gather PowerShell code quality metrics.
This task also allows to define (and optionally enforce) quality gates based on these code metrics.
It is essentially a wrapper around the PSCodeHealth PowerShell module to make it easy to use within VSTS.
Get it for free, from the Visual Studio Marketplace.
Once installed in your VSTS account, the PSCodeHealth task will be available for :
- Build definitions
- Release definitions
For usage instructions, please refer to the extension's README.
Also, to get a better understanding of what this task can do and how to use it, it is helpful to know the PSCodeHealth PowerShell module, which provides all functionality under the hood.
The following PSCodeHealth documentation pages are particularly relevant to the VSTS task usage :
- Code metrics collected by PSCodeHealth
- Using PSCodeHealth to check if your code meets metrics goals
- Customizing PSCodeHealth's compliance rules according to your metrics goals (quality gate)
You are welcome to contribute to this project. There are many ways you can help :
- Submit a bug report.
- Submit a fix for an issue.
- Submit a feature request.
- Submit test cases.
- Tell others about the project.
- Tell the developers how much you appreciate the project !
- Rate the extension on the Visual Studio Marketplace.
For more information on how to contribute to vsts-PSCodeHealth, please refer to the contributing guidelines