Repository navigation
Update StyleCop.Analyzers to 1.3.180 and fix the new analyzer errors - #2655
Merged
Merged
Conversation
- Bump StyleCop.Analyzers from 1.2.0-beta.556 to 1.3.180.
- Disable SA1504: since 1.3 it also flags "get => x; set { ... }"
(DotNetAnalyzers/StyleCopAnalyzers#4391).
- Disable SA1315: many public overrides use different parameter names,
and renaming them would break callers that use named arguments.
- List the new rules SA1143, SA1317, SA1653 and SA1654 as errors.
- Fix the remaining SA1143, SA1653, SA1003, SA1017 and SA1204 hits
(formatting and doc comments only).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
krwq
commented
Nov 26, 2026
The second parts of Mcp23xxx, VideoDevice, Seesaw and Ssd1351 had a copy (or a leftover) of the type summary. Remove them, so each type keeps a single <summary> in its main file. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
pgrawehr
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request was generated with GitHub Copilot.
Dependabot's StyleCop.Analyzers 1.3.180 update (#2654) fails the build. 1.3.180 adds new rules and makes some existing ones stricter, and we treat warnings as errors. CI shows about 10 errors per run (mostly SA1315), because System.Device.Gpio fails first and everything that depends on it is skipped. A full build finds 313.
This PR takes the update and gets the build passing:
get => x; set { ... }, which we use all over the bindings (Relax SA1504 for getter or setter with lambda body DotNetAnalyzers/StyleCopAnalyzers#4391).Debug and Release build locally with 0 warnings, and all tests pass.
Replaces #2654.
Microsoft Reviewers: Open in CodeFlow