Thanks for your interest in contributing!
-
Fork and clone the repository.
-
Install dev dependencies:
Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck Install-Module PSScriptAnalyzer -Scope CurrentUser -Force
-
Run the test suite:
Invoke-Pester ./tests -Output Detailed
-
Run the linter:
Invoke-ScriptAnalyzer -Path ./src/PSCaffeinate -Recurse -Severity Warning, Error
- One feature or fix per PR.
- All Pester tests must pass.
- PSScriptAnalyzer must report zero warnings and errors.
- Follow existing naming conventions: PascalCase for parameters, camelCase for local variables.
- Update
README.mdif you add or change parameters.
Open a GitHub issue with:
- Your PowerShell version (
$PSVersionTable). - Steps to reproduce.
- Expected vs actual behaviour.