Skip to content

Fix build by removing stale raw-data assertion - #711

Merged
Shane32 merged 1 commit into
masterfrom
fix/raw-data-build
Oct 31, 2026
Merged

Shane32 merged 1 commit into
masterfrom
fix/raw-data-build

Conversation

@Shane32

@Shane32 Shane32 commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

Remove the obsolete Debug.Assert(modules.Count < 8) from the raw-data constructor. The raw-data optimization removed modules, leaving all builds blocked by CS0103. Existing length checks and raw-data round-trip tests cover the constructor.

Test plan

  • All five Debug unit-test targets passed with coverage: net462 (429), netcoreapp2.1 (675), netcoreapp3.1 (675), net5.0-windows (677), and net6.0-windows (677); 3,133 total, no failures or skips.
  • Release trim-analysis publish passed.
  • Full solution Release build passed.
  • Both Release API approval tests passed with CI=true explicitly set in the test host.
  • dotnet format --verify-no-changes --severity error --no-restore passed. It reported workspace-loading warnings for legacy netstandard1.3 and UWP projects; the build also reported NETSDK1215 for the existing netstandard1.3 target.
  • git diff --check passed.

Summary by CodeRabbit

  • Maintenance
    • Removed a non-user-facing internal check. This does not change runtime validation, behavior, or any visible features.
  • User Impact
    • No changes to existing workflows or capabilities are included in this update. There are no new user-facing features or fixes to call out.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4b70733-e361-4efc-9efe-1add39863b0b
Commits

Reviewing files that changed from the base of the PR and between 1859cc8 and a7d2bda.

Files selected for processing: 1
  • QRCoder/QRCodeData.cs
Files with no reviewable changes: 1
  • QRCoder/QRCodeData.cs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Walkthrough

The raw-data constructor no longer contains a Debug.Assert that references modules. No runtime validation or other behavior changed.

Changes: Raw-data constructor

Layer / File(s) Summary
Remove stale assertion
QRCoder/QRCodeData.cs
Removed the Debug.Assert(modules.Count < 8) statement from the constructor.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Possibly related PRs

  • Shane32/QRCoder#709: Replaced the constructor’s modules queue with direct matrix decoding, leaving the assertion that this PR removes.
  • Shane32/QRCoder#708: Added the assertion that this PR removes.

Suggested reviewers: krisvandermotten

Merge Risk: Minimal · up to a7d2b

The change fixes the reported build error without changing raw-data behavior and appears ready to merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: removing a stale raw-data assertion to fix the build.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@Shane32
Shane32 merged commit 1196369 into master Oct 31, 2026
8 checks passed
@Shane32
Shane32 deleted the fix/raw-data-build branch October 31, 2026 18:29
This was referenced Nov 19, 2026
github-actions Bot pushed a commit to heckertobias/browser-game that referenced this pull request Nov 27, 2026
Updated [QRCoder](https://github.com/Shane32/QRCoder) from 1.8.1 to
1.9.0.

<details>
<summary>Release notes</summary>

_Sourced from [QRCoder's
releases](https://github.com/Shane32/QRCoder/releases)._

## 1.9.0

## What's Changed
* Update to .NET 10 SDK and .slnx solution file format by
@​KrisVandermotten in Shane32/QRCoder#707
* Optimize QRCodeData.SaveRawData and QRCodeData.GetRawData by
@​KrisVandermotten in Shane32/QRCoder#708
* Optimize rawData QrCodeData constructor and improve input validation
by @​KrisVandermotten in Shane32/QRCoder#709
* Allow GiroCode generation without an amount by @​OidaTiftla in
Shane32/QRCoder#710
* Fix build by removing stale raw-data assertion by @​Shane32 in
Shane32/QRCoder#711
* Replace string concatenation with StringBuilder and invariant
interpolation by @​kamilla11 in
Shane32/QRCoder#696
* Reduce PDF rendering allocations with a shared content builder by
@​Shane32 in Shane32/QRCoder#712
* Avoid temporary color arrays in PDF and bitmap renderers by @​Shane32
in Shane32/QRCoder#713
* Enforce variable declaration style and format solution by @​Shane32 in
Shane32/QRCoder#714
* Format the SwissQrCode amount with the invariant culture by @​menes97
in Shane32/QRCoder#715
* Simplify date formatting inside AppendInvariant calls by @​Shane32 in
Shane32/QRCoder#717
* Use NuGet Trusted Publishing and update workflow actions by @​Shane32
in Shane32/QRCoder#718
* Run NuGet release publishing from the package output directory by
@​Shane32 in Shane32/QRCoder#719

## New Contributors
* @​OidaTiftla made their first contribution in
Shane32/QRCoder#710
* @​kamilla11 made their first contribution in
Shane32/QRCoder#696
* @​menes97 made their first contribution in
Shane32/QRCoder#715

**Full Changelog**:
Shane32/QRCoder@v1.8.1...v1.9.0

Commits viewable in [compare
view](Shane32/QRCoder@v1.8.1...v1.9.0).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=QRCoder&package-manager=nuget&previous-version=1.8.1&new-version=1.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Nov 28, 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