-
Notifications
You must be signed in to change notification settings - Fork 0
🩹 [Patch]: Remove initialization step and dependency on Utilities
#114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the dependency on the Utilities module and the initialization step from the project, simplifying the code and workflows.
- Removed the "#Requires -Modules Utilities" line from scripts/main.ps1 to drop the Utilities dependency.
- Removed the "Initialize environment" step from multiple jobs in the Action-Test workflow.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
scripts/main.ps1 | Removed the dependency on the Utilities module. |
.github/workflows/Action-Test.yml | Removed the initialization step from the GitHub Actions workflow. |
Comments suppressed due to low confidence (2)
scripts/main.ps1:7
- Ensure that all functionality previously provided by the Utilities module has been removed or replaced to prevent runtime issues.
#Requires -Modules Utilities
.github/workflows/Action-Test.yml:25
- Verify that the removal of the 'Initialize environment' step does not impact the workflow execution, and that any required setup is handled elsewhere.
- - name: Initialize environment
…Export and Get-PSModuleCmdletsToExport functions
…Base and Build-PSModuleRootModule functions
…ributes in Get-PSModuleAliasesToExport and Get-PSModuleClassesToExport functions
…leCmdletsToExport function
…adability in module export functions
…ng all scripts in helpers directory
Description
This pull request simplifies the codebase by removing redundant module dependencies and improving code readability across various scripts. It also consolidates file exclusions in the
.jscpd.json
configuration and updates logic for handling module manifest properties.Module Dependency Removal:
#Requires
statements for unused module dependencies (GitHub
,Utilities
,Hashtable
) across multiple scripts, includingBuild-PSModule.ps1
,Build-PSModuleManifest.ps1
, andBuild-PSModuleRootModule.ps1
files. [1] [2] [3] [4]Configuration Updates:
.github/linters/.jscpd.json
by replacing specific file paths with a wildcard (**/scripts/helpers/**
).Workflow Simplification:
Initialize-PSModule
step from theAction-Test.yml
workflow, streamlining the setup process. [1] [2] [3]Code Readability Improvements:
IsNotNullOrEmpty
function calls with native.NET
methods like[string]::IsNullOrEmpty
for better clarity and maintainability in scripts such asBuild-PSModuleManifest.ps1
andGet-PSModuleAliasesToExport.ps1
. [1] [2] [3] [4]Suppression Attribute Adjustments:
Diagnostics.CodeAnalysis.SuppressMessageAttribute
to includeScope = 'Function'
for consistency in scripts likeGet-PSModuleClassesToExport.ps1
andGet-PSModuleCmdletsToExport.ps1
. [1] [2]Type of change
Checklist