dsccommunity / dsccommunity/DscResource.Test

PSScriptAnalyzer: Remove PSAvoidUsingWriteHost from required rules

Open
#175 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
6
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Looking at the docs, it looks like if using PS5.0+ using Write-Host looks to be a non issue now as it wraps Write-Information.

Worse case is move it to flagged rules to allow it to be suppressed on a repo by repo basis.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the repository's PSScriptAnalyzer required-rules configuration and compare PSAvoidUsingWriteHost with the linked PowerShell Write-Host documentation. Done means the rule is removed from required rules or moved to flagged rules, with the repository's rule validation still passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.