Skip to content

Cleanup some code and update nuget packages#471

Merged
sensslen merged 1 commit into
mainfrom
simon/updates
Mar 16, 2026
Merged

Cleanup some code and update nuget packages#471
sensslen merged 1 commit into
mainfrom
simon/updates

Conversation

@sensslen
Copy link
Copy Markdown
Owner

@sensslen sensslen commented Mar 16, 2026

Summary by CodeRabbit

  • Chores

    • Updated .NET dependencies to latest compatible versions, including System.IO.Hashing, System.Collections.Immutable, TUnit, and TinyCsvParser.
  • Refactor

    • Simplified internal validation logic in package dependency handling.
  • Tests

    • Updated test coverage for validation scenarios.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 16, 2026

Walkthrough

This pull request updates multiple package dependencies across the project, bumping System.IO.Hashing and System.Collections.Immutable from 10.0.3 to 10.0.5 in the net472 target groups of main projects, and upgrading TUnit from 1.19.16 to 1.19.57 in test projects. Additionally, TinyCsvParser dependencies are updated from 3.0.0 to 3.0.1. The code logic in AssetsPackageDependencyReader is simplified by removing null-validation checks, and a test method validating null targets scenarios is removed.

Possibly related PRs

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Cleanup some code and update nuget packages' accurately reflects the main changes: code cleanup in AssetsPackageDependencyReader.cs and test removals, plus multiple NuGet package version updates across the project files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch simon/updates
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

@sensslen
Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 16, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/NuGetUtility/NuGetUtility.csproj`:
- Line 1: Remove the hidden BOM character at the start of the file so the
opening Project element reads exactly "<Project Sdk=\"Microsoft.NET.Sdk\">";
open the NuGetUtility.csproj in a text editor that can show/strip BOM (or
re-save as UTF-8 without BOM) and ensure the first character is '<' with no
invisible bytes before the Project element to prevent spurious diffs.

In
`@tests/targets/MultiTargetProjectWithDifferentDependencies/MultiTargetProjectWithDifferentDependencies.csproj`:
- Line 1: The file MultiTargetProjectWithDifferentDependencies.csproj contains a
hidden BOM character before the opening <Project> tag; remove the BOM by
re-saving the file as UTF-8 without BOM (or strip the leading invisible
character) so the file starts exactly with "<Project
Sdk=\"Microsoft.NET.Sdk\">", then commit the cleaned file to eliminate spurious
diffs and ensure tooling/CI treats the file normally.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8d7b2773-3f16-476d-93b6-60d86fe6f04e

📥 Commits

Reviewing files that changed from the base of the PR and between 1c0f494 and 50b31a2.

📒 Files selected for processing (8)
  • src/NuGetLicense/NuGetLicense.csproj
  • src/NuGetUtility/NuGetUtility.csproj
  • src/NuGetUtility/Wrapper/NuGetWrapper/ProjectModel/AssetsPackageDependencyReader.cs
  • tests/FileLicenseMatcher.Test/FileLicenseMatcher.Test.csproj
  • tests/NuGetUtility.Test/ReferencedPackagesReader/ReferencedPackageReaderTest.cs
  • tests/NuGetUtility.UrlToLicenseMapping.Test/NuGetUtility.UrlToLicenseMapping.Test.csproj
  • tests/targets/MultiTargetProjectWithDifferentDependencies/MultiTargetProjectWithDifferentDependencies.csproj
  • tests/targets/PackageReferenceProject/PackageReferenceProject.csproj
💤 Files with no reviewable changes (1)
  • tests/NuGetUtility.Test/ReferencedPackagesReader/ReferencedPackageReaderTest.cs

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove the hidden BOM character at file start.

Line 1 contains a BOM/hidden character before <Project>, which is best removed to avoid unnecessary diff noise.

Suggested cleanup
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/NuGetUtility/NuGetUtility.csproj` at line 1, Remove the hidden BOM
character at the start of the file so the opening Project element reads exactly
"<Project Sdk=\"Microsoft.NET.Sdk\">"; open the NuGetUtility.csproj in a text
editor that can show/strip BOM (or re-save as UTF-8 without BOM) and ensure the
first character is '<' with no invisible bytes before the Project element to
prevent spurious diffs.

@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove the hidden BOM character at file start.

Line 1 includes a BOM/hidden character before <Project>, which can cause unnecessary churn in diffs and editor/tooling behavior.

Suggested cleanup
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@tests/targets/MultiTargetProjectWithDifferentDependencies/MultiTargetProjectWithDifferentDependencies.csproj`
at line 1, The file MultiTargetProjectWithDifferentDependencies.csproj contains
a hidden BOM character before the opening <Project> tag; remove the BOM by
re-saving the file as UTF-8 without BOM (or strip the leading invisible
character) so the file starts exactly with "<Project
Sdk=\"Microsoft.NET.Sdk\">", then commit the cleaned file to eliminate spurious
diffs and ensure tooling/CI treats the file normally.

@sensslen sensslen merged commit 6ee49cf into main Mar 16, 2026
42 checks passed
@sensslen sensslen deleted the simon/updates branch March 16, 2026 19:54
@coderabbitai coderabbitai Bot mentioned this pull request May 17, 2026
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.

1 participant