PowerShell / PowerShell/PSResourceGet

Refactor FindHelper.SearchByNames() method

Open
#1,087 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Find Issue-Enhancement
Dominant language
C#
Stars
576
Forks
114
Avg merge
1d 2h
Merged PRs (30d)
7

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.
Steps to reproduce

Refactor this method as it's quite long. As mentioned in this older PR: https://github.com/PowerShell/PowerShellGet/pull/1065#discussion_r1175662091

Expected behavior
Method should be refactored into smaller helper methods
Actual behavior
Not done yet.
Error details

No response

Environment data
platform agnostic.
Visuals

No response

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

Start by locating FindHelper.SearchByNames() and read the discussion in the linked pull request for the refactoring concerns. Refactor the long method into smaller helper methods while preserving its current behavior, then run the repository's relevant tests to verify the change.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.