Skip to content

Promote: rename namespace and package to ptr727.Utilities (3.7)#385

Merged
ptr727 merged 2 commits into
mainfrom
develop
Jul 10, 2026
Merged

Promote: rename namespace and package to ptr727.Utilities (3.7)#385
ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Promotes the ptr727.Utilities rename from develop to main, folded into the breaking 3.7 release. Full detail and review history in #384.

Highlights

  • Rename (breaking): InsaneGenius.Utilities -> ptr727.Utilities across namespaces, using directives, PackageId, and RootNamespace; bare AssemblyName (Utilities / UtilitiesTests) and InternalsVisibleTo, matching the sibling LanguageTags project. Both 3.7 breaking changes (namespace and the logging model) are marked consistently in README and HISTORY.
  • Analyzer suppressions: localized library exceptions (CA1024/CA1034/CA1054/CA5394) moved to symbol-scoped [SuppressMessage]; dead test suppressions (CA1307/CA2007) and the vestigial IClassFixture fixture removed (CA1823/IDE0052/CA1063).
  • Bug fix: Format.BytesToKibi/BytesToKilo are now culture-invariant.
  • HttpClient User-Agent: derived from the consuming application (AOT-safe), always sets a header.
  • GlobalUsings.cs added per project.

Verification

🤖 Generated with Claude Code

Fold the namespace/package rename into the breaking 3.7 release, aligning with the ptr727.* style of the sibling LanguageTags project.

- Rename InsaneGenius.Utilities -> ptr727.Utilities (namespace, PackageId, RootNamespace); bare AssemblyName (Utilities / UtilitiesTests) and InternalsVisibleTo (breaking).
- Move localized library suppressions (CA1024/CA1034/CA1054/CA5394) to symbol-scoped [SuppressMessage] attributes; drop dead test suppressions (CA1307/CA2007) and the unused IClassFixture fixture (CA1823/IDE0052/CA1063).
- Make Format.BytesToKibi/BytesToKilo culture-invariant.
- Derive the HttpClient User-Agent from the consuming application (AOT-safe), always setting a header.
- Add GlobalUsings.cs per project; document both breaking 3.7 changes (namespace and logging) in README and HISTORY.
Copilot AI review requested due to automatic review settings July 10, 2026 03:32

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

Promotes the InsaneGenius.Utilities -> ptr727.Utilities rename (package + root namespace) and the associated cleanups/adjustments into main for the 3.7 breaking release.

Changes:

  • Renames package IDs, root namespaces, and test namespaces to ptr727.Utilities*, and standardizes assembly names (Utilities, UtilitiesTests).
  • Adds per-project GlobalUsings.cs and removes now-redundant per-file using directives/suppressions.
  • Fixes culture-dependent byte formatting output (invariant formatting) and updates Download’s HttpClient User-Agent derivation logic.

Reviewed changes

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

Show a summary per file
File Description
UtilitiesTests/UtilitiesTests.csproj Updates test project PackageId/AssemblyName/RootNamespace for the rename.
UtilitiesTests/UtilitiesTests.cs Removes unused fixture type previously used only for suppression/structure.
UtilitiesTests/StringHistoryTests.cs Moves tests into ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/StringCompressionTests.cs Moves tests into ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/StringCompressionAsyncTests.cs Moves tests into ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/LogOptionsTests.cs Updates test namespace to ptr727.Utilities.Tests.
UtilitiesTests/GlobalUsings.cs Adds global Xunit using for tests.
UtilitiesTests/FormatTests.cs Updates test namespace to ptr727.Utilities.Tests.
UtilitiesTests/FileTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/FileExAsyncTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/ExtensionsTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/DownloadTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/DownloadAsyncTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/ConsoleTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/CommandLineTests.cs Updates test namespace to ptr727.Utilities.Tests and drops unused fixture wiring.
UtilitiesTests/.editorconfig Removes suppressions made unnecessary by fixture removal; keeps test-appropriate analyzer relaxations.
Utilities/Utilities.csproj Renames package + root namespace; standardizes assembly name; updates InternalsVisibleTo.
Utilities/StringHistory.cs Renames namespace to ptr727.Utilities.
Utilities/StringCompression.cs Renames namespace to ptr727.Utilities.
Utilities/LogOptions.cs Renames namespace to ptr727.Utilities and relies on global logging using.
Utilities/GlobalUsings.cs Adds global Microsoft.Extensions.Logging using for the library project.
Utilities/Format.cs Renames namespace and makes byte formatting culture-invariant.
Utilities/FileExOptions.cs Renames namespace to ptr727.Utilities.
Utilities/FileEx.cs Renames namespace and localizes CA5394 suppression to the relevant methods.
Utilities/Extensions.cs Renames namespace and localizes CA1034 suppression to the relevant type.
Utilities/Download.cs Renames namespace; localizes CA1024/CA1054 suppressions; changes User-Agent derivation.
Utilities/ConsoleEx.cs Renames namespace to ptr727.Utilities.
Utilities/CommandLineEx.cs Renames namespace to ptr727.Utilities.
Utilities/.editorconfig Removes broad suppressions in favor of symbol-scoped [SuppressMessage].
Sandbox/Sandbox.csproj Updates sandbox RootNamespace to ptr727.Utilities.Sandbox.
Sandbox/Program.cs Updates using directives to the new namespaces and relies on global Serilog using.
Sandbox/LoggerFactory.cs Updates namespace to ptr727.Utilities.Sandbox and relies on global Serilog using.
Sandbox/GlobalUsings.cs Adds global Serilog using for the sandbox project.
README.md Updates documentation and NuGet references for the rename and breaking-change notes.
HISTORY.md Records the 3.7 breaking rename in release history.
codecov.yml Updates comment text to reference ptr727.Utilities.
AGENTS.md Updates agent guidance text to reflect the new package identity.

Comment thread Utilities/Download.cs
Comment thread UtilitiesTests/UtilitiesTests.csproj Outdated
The non-packable UtilitiesTests project publishes nothing, so its stale Azure DevOps PackageProjectUrl is dead metadata. The library keeps its GitHub PackageProjectUrl.
Copilot AI review requested due to automatic review settings July 10, 2026 03:49
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.00000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.62%. Comparing base (9480c4b) to head (5b38db4).
⚠️ Report is 34 commits behind head on main.

Files with missing lines Patch % Lines
Utilities/Download.cs 58.82% 3 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
+ Coverage   40.23%   40.62%   +0.38%     
==========================================
  Files          10       10              
  Lines        1009     1024      +15     
  Branches       97       99       +2     
==========================================
+ Hits          406      416      +10     
- Misses        577      580       +3     
- Partials       26       28       +2     

☔ 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.

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

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

@ptr727
ptr727 merged commit 96ad6b5 into main Jul 10, 2026
12 checks passed
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