Skip to content

Rename functions to use approved PowerShell verbs #17

@AndreaV-Lsi

Description

@AndreaV-Lsi

Description

Several functions use non-approved PowerShell verbs, causing a warning on every Import-Module call:

WARNING: The names of some imported commands from the module 'LsiGitCheckout' include unapproved verbs
that might make them less discoverable.

This warning appears on every script run and every test execution.

Functions to rename

Current name Approved name Verb change
Parse-VersionPattern ConvertTo-VersionPattern ParseConvertTo
Parse-RepositoryVersions Get-RepositoryVersions ParseGet
Validate-DependencyConfiguration Test-DependencyConfiguration ValidateTest
Sort-TagsByDate Resolve-TagsByDate SortResolve
Process-DependencyFile Invoke-DependencyFile ProcessInvoke
Process-RecursiveDependencies Invoke-RecursiveDependencies ProcessInvoke

Scope

  • Function definitions in LsiGitCheckout.psm1
  • All call sites in LsiGitCheckout.psm1 and LsiGitCheckout.ps1
  • Exports in LsiGitCheckout.psd1
  • Unit and integration test references
  • Remove -DisableNameChecking workaround from Import-Module calls
    PS /Users/andrea/Library/CloudStorage/OneDrive-LSInstrumentsAG/LSI Desktop/Codes/LsiGitCheckout/.claude/worktrees/wonderful-boyd>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions