dsccommunity / dsccommunity/ActiveDirectoryDsc
ActiveDirectoryDsc: Using splatting when calling cmdlets where line exceeds 120 characters
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 388
- Forks
- 141
- PR merge metrics
- No merged PRs in 30d
Description
There are places in the code that make calls to cmdlets and use a long list of parameters.
We should use splatting at these locations throughout the repo to make the code easier to read. See style guideline https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#correct-parameter-usage-in-function-and-cmdlet-calls
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with DSCResources/MSFT_xADOrganizationalUnit/MSFT_xADOrganizationalUnit.psm1 at the linked call and review the referenced DscResources StyleGuidelines.md section on parameter usage. Search the repository for cmdlet calls exceeding 120 characters and convert the applicable calls to splatting; done means the relevant long calls follow the guideline and remain functionally equivalent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- devops
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100