Skip to content

Match XML docs to Collection return types#397

Merged
ptr727 merged 1 commit into
developfrom
feature/collection-doc-accuracy
Jul 10, 2026
Merged

Match XML docs to Collection return types#397
ptr727 merged 1 commit into
developfrom
feature/collection-doc-accuracy

Conversation

@ptr727

@ptr727 ptr727 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

Updates doc comments that still described the enumerate out-parameters and StringHistory.StringList as a "list" after they were changed to Collection<T> / ReadOnlyCollection<T>:

  • FileEx.EnumerateDirectories / EnumerateDirectory: fileList/directoryList params are now "Output collection ..."; sourceList (now IEnumerable<string>) drops "list of".
  • StringHistory.StringList: "Gets the read-only collection of stored strings."

Docs-only; no code or API change.

Verification

  • dotnet build - 0 warnings / 0 errors.
  • dotnet format style --verify-no-changes clean.

Addresses a Copilot finding on the develop->main release PR (#394).

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 10, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns XML documentation with the current public API return/out-parameter types after the List<T> -> Collection<T> / ReadOnlyCollection<T> change, ensuring generated docs accurately describe the exposed types without changing behavior.

Changes:

  • Update StringHistory.StringList docs to describe a read-only collection rather than a list.
  • Update FileEx.EnumerateDirectories / EnumerateDirectory parameter docs to describe output collections and remove “list of” phrasing for the IEnumerable<string> input.
  • Minor wording update in an inline comment to match the updated terminology.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Utilities/StringHistory.cs Updates the StringList XML summary to match ReadOnlyCollection<string>.
Utilities/FileEx.cs Updates XML docs (and one inline comment) to match Collection<T> out parameters and IEnumerable<string> input.

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.19%. Comparing base (464a31c) to head (e411625).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #397   +/-   ##
========================================
  Coverage    46.19%   46.19%           
========================================
  Files           13       13           
  Lines         1156     1156           
  Branches       107      107           
========================================
  Hits           534      534           
  Misses         592      592           
  Partials        30       30           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit b0c32f8 into develop Jul 10, 2026
12 checks passed
@ptr727
ptr727 deleted the feature/collection-doc-accuracy branch July 10, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants