Skip to content

Issue/736 add more warnings as errors#1052

Open
MartinHock wants to merge 5 commits into
ardalis:mainfrom
MartinHock:issue/736-add-more-warnings-as-errors
Open

Issue/736 add more warnings as errors#1052
MartinHock wants to merge 5 commits into
ardalis:mainfrom
MartinHock:issue/736-add-more-warnings-as-errors

Conversation

@MartinHock

Copy link
Copy Markdown
Contributor

removed the warnings that were appearing after latest-all was added to Directoy.build.props
and analysis was switched on

@MartinHock
MartinHock force-pushed the issue/736-add-more-warnings-as-errors branch from dd2b716 to 97f2598 Compare July 20, 2026 14:48
Enable latest-All analysis, promote code analysis warnings to errors, and resolve the resulting analyzer findings with targeted suppressions where framework and test conventions require them.
@MartinHock
MartinHock force-pushed the issue/736-add-more-warnings-as-errors branch from 97f2598 to 6651e94 Compare July 20, 2026 15:29
@MartinHock

Copy link
Copy Markdown
Contributor Author

The current cross-platform build succeeds on Ubuntu, Windows, and macOS.

However, merging is still blocked because the repository requires a status check named build, which is no longer reported.

I found that this required check appears to come from the former .github/workflows/dotnetcore.yml workflow, whose job ID was:

jobs:
build:

The current workflow reports the matrix jobs successfully, but no longer reports a check named exactly build.

Could a maintainer please update the required status check in the branch protection rules, or add an appropriate aggregate build check?

Added a detailed comment in Directory.Build.props explaining the exclusion of NU1903 from errors. The comment clarifies that the warning is due to a known vulnerable transitive dependency (SQLItePCLRaw.lib.e_sqlit3) required by Microsoft.Data.Sqlite.Core 7.0.0/7.0.1 for .NET 10.0 support, and provides guidance for removing the exclusion once the issue is resolved. No functional changes were made.
Updated the comment explaining the exclusion of the NU1903 warning for the vulnerable transitive dependency SQLitePCLRaw.lib.e_sqlite3. The revised comment clarifies that the warning will remain visible but will not fail the build while the issue is being addressed (see issue ardalis#1066 and PR ardalis#1067). It also notes to remove the exclusion once the dependency is updated or the PR is merged. No functional code changes were made.
Added #pragma warning disable CA1716 and explanatory comments to
GetContributorHandler.cs and GetContributorQuery.cs to suppress
the analyzer warning about the 'Get' namespace segment conflicting
with reserved keywords. Comments clarify that renaming is a
breaking change tracked separately. Warnings are restored after
the namespace declaration.
Added a comment explaining CA1716 is triggered by the "Get" namespace segment due to reserved keyword conflicts in some .NET languages. Included a pragma directive to disable the warning, preserving the public namespace. Referenced issue ardalis#1065 for a permanent fix.
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