Skip to content

Fix XML doc typos, stale TODOs, and exception message wording#76

Merged
Chris-Wolfgang merged 3 commits into
mainfrom
chore/code-quality
Apr 18, 2026
Merged

Fix XML doc typos, stale TODOs, and exception message wording#76
Chris-Wolfgang merged 3 commits into
mainfrom
chore/code-quality

Conversation

@Chris-Wolfgang
Copy link
Copy Markdown
Owner

Summary

  • Fix "error errorMessage" typo in Result constructor docs and exception messages (3 occurrences)
  • Fix extra > in <see cref="Result"/>> XML doc tags (3 occurrences)
  • Use <paramref> and <typeparamref> in XML doc remarks
  • Add missing periods to <returns> doc comments in Try.cs
  • Fix spacing between methods per codebase convention (3 blank lines)
  • Remove stale TODO comments from RunFuncTests and RunAsyncFuncTests

Verification

  • dotnet build — 0 warnings, 0 errors
  • dotnet test — 96/96 pass
  • jb inspectcode — 0 issues (WARNING + SUGGESTION level)
  • Coverage: 100% line, 96.4% branch, 100% method

Test plan

🤖 Generated with Claude Code

Result.cs:
- Fix "error errorMessage" → "error message" in constructor docs and
  exception messages
- Fix extra > in <see cref="Result"/>> (3 occurrences)
- Use <paramref> and <typeparamref> in XML doc remarks
- Fix missing article: "will contain message" → "will contain a message"

Try.cs:
- Add missing periods to <returns> doc comments
- Remove trailing whitespace from <returns> text
- Fix spacing: 3 blank lines between Run<T> and RunAsync<T>
- Remove trailing blank lines at end of file

Tests:
- Remove stale TODO comments from RunFuncTests and RunAsyncFuncTests

Verified: 0 warnings, 96 tests pass, ReSharper inspectcode clean

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 16, 2026 13:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR cleans up XML documentation and minor test-file maintenance items in the Try Pattern library to improve API docs quality and remove stale comments.

Changes:

  • Fix XML doc typos/markup (e.g., error errorMessage, malformed <see cref> tags) and improve remarks using <paramref> / <typeparamref>.
  • Adjust a few XML <returns> descriptions and exception message wording for consistency.
  • Remove stale TODO comments in test classes.

Reviewed changes

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

File Description
tests/Wolfgang.TryPattern.Tests/RunFuncTests.cs Removes stale TODO comment from the test class declaration.
tests/Wolfgang.TryPattern.Tests/RunAsyncFuncTests.cs Removes stale TODO comment from the async test class declaration.
src/Wolfgang.TryPattern/Try.cs Minor XML doc punctuation tweaks and whitespace/spacing adjustments.
src/Wolfgang.TryPattern/Result.cs Fixes XML doc typos/markup and refines exception messages and remarks wording.

Comment thread src/Wolfgang.TryPattern/Result.cs Outdated
Comment thread src/Wolfgang.TryPattern/Result.cs
Chris-Wolfgang and others added 2 commits April 17, 2026 20:01
The constructor uses IsNullOrWhiteSpace but the XML remarks only
mentioned null/empty. Add "or whitespace" to both Result and
Result<T> constructor remarks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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