Skip to content

fix: address analyzer code smells in compression package#1058

Merged
vbreuss merged 1 commit into
mainfrom
fix/compression-analyzer-warnings
Jul 11, 2026
Merged

fix: address analyzer code smells in compression package#1058
vbreuss merged 1 commit into
mainfrom
fix/compression-analyzer-warnings

Conversation

@vbreuss

@vbreuss vbreuss commented Jul 11, 2026

Copy link
Copy Markdown
Member

Switch the S2325 suppression to CA1822 in FileSystemExtensions (S2325 is deprecated in favor of the Roslyn rule) and remove the unnecessary partial modifier from the two compression ExtensionTests classes.

Switch the S2325 suppression to CA1822 in FileSystemExtensions (S2325
is deprecated in favor of the Roslyn rule) and remove the unnecessary
partial modifier from the two compression ExtensionTests classes.
@vbreuss vbreuss self-assigned this Jul 11, 2026
@vbreuss vbreuss merged commit 1eb6018 into main Jul 11, 2026
4 of 10 checks passed
@vbreuss vbreuss deleted the fix/compression-analyzer-warnings branch July 11, 2026 15:59
vbreuss added a commit that referenced this pull request Jul 12, 2026
…1059)

PR #1058 removed the partial modifier from the two compression ExtensionTests classes as an analyzer code smell, but both classes have a second partial declaration in ExtensionTests.Async.cs that is only compiled when FEATURE_COMPRESSION_ASYNC is defined (net10.0 and higher). This broke the net10.0 build on main with CS0260.

The analyzer finding is a false positive caused by the conditional compilation of the companion file.
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