Thank you for your interest in contributing to Export-ModuleInfoForLLM! This document provides guidelines and instructions for contributing.
By participating in this project, you agree to maintain a respectful and inclusive environment.
- PowerShell 5.1 or PowerShell Core 7.x
- Git
- Pester 5.x for running tests
- PSScriptAnalyzer for code analysis
-
Fork the repository
-
Clone your fork:
git clone https://github.com/Warezloder/Export-ModuleInfoForLLM.git cd Export-ModuleInfoForLLM
-
Install development dependencies:
Install-Module -Name Pester -MinimumVersion 5.0 -Scope CurrentUser Install-Module -Name PSScriptAnalyzer -Scope CurrentUser
-
Import the module for development:
Import-Module .\Export-ModuleInfoForLLM.psd1 -Force
- Follow the PowerShell Practice and Style Guide
- Use approved verbs (
Get-Verb) - Include comment-based help for all public functions
- Add parameter validation
- Implement proper error handling
All contributions must include appropriate tests:
# Run all tests
Invoke-Pester -Path .\Tests
# Run with code coverage
Invoke-Pester -Path .\Tests -CodeCoverage .\Public\*.ps1, .\Private\*.ps1
# Run specific test file
Invoke-Pester -Path .\Tests\Unit\Export-ModuleCommandsForLLM.Tests.ps1Run PSScriptAnalyzer before submitting:
Invoke-ScriptAnalyzer -Path . -Recurse -Settings PSGallery-
Create a feature branch:
git checkout -b feature/your-feature-name
-
Make your changes following the code standards
-
Add/update tests for your changes
-
Update documentation if needed
-
Run tests and ensure they pass:
.\build.ps1 -Task Test -
Commit your changes:
git commit -m "Add: Description of your changes"
-
Push to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request with:
- Clear description of changes
- Reference to any related issues
- Test results summary
Use conventional commits format:
Add:New featureFix:Bug fixUpdate:Non-breaking changeBreaking:Breaking changeDocs:Documentation onlyTest:Test additions/changes