build: Bump the analyzers group with 4 updates#183
Closed
dependabot[bot] wants to merge 1 commit intomainfrom
Closed
build: Bump the analyzers group with 4 updates#183dependabot[bot] wants to merge 1 commit intomainfrom
dependabot[bot] wants to merge 1 commit intomainfrom
Conversation
Bumps Meziantou.Analyzer from 2.0.276 to 3.0.29 Bumps Moq.Analyzers from 0.4.0 to 0.4.2 Bumps SonarAnalyzer.CSharp from 10.18.0.131500 to 10.22.0.136894 Bumps xunit.analyzers from 1.26.0 to 1.27.0 --- updated-dependencies: - dependency-name: Meziantou.Analyzer dependency-version: 3.0.29 dependency-type: direct:production update-type: version-update:semver-major dependency-group: analyzers - dependency-name: Moq.Analyzers dependency-version: 0.4.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: analyzers - dependency-name: SonarAnalyzer.CSharp dependency-version: 10.22.0.136894 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: analyzers - dependency-name: xunit.analyzers dependency-version: 1.27.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: analyzers ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
|
This Dependabot PR contains a version-update:semver-major update and requires manual review before merging. |
|
Contributor
Author
|
Looks like these dependencies are updatable in another way, so this is no longer needed. |
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.
Updated Meziantou.Analyzer from 2.0.276 to 3.0.29.
Release notes
Sourced from Meziantou.Analyzer's releases.
3.0.29
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.29
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.28...3.0.29
3.0.28
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.28
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.27...3.0.28
3.0.27
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.27
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.26...3.0.27
3.0.26
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.26
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.25...3.0.26
3.0.25
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.25
Full Changelog: meziantou/Meziantou.Analyzer@3.0.24...3.0.25
3.0.24
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.24
Full Changelog: meziantou/Meziantou.Analyzer@3.0.23...3.0.24
3.0.23
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.23
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.22...3.0.23
3.0.22
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.22
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.21...3.0.22
3.0.21
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.21
What's Changed
roslyn5.0packing by @viceroypenguin in Addroslyn5.0packing meziantou/Meziantou.Analyzer#1054Full Changelog: meziantou/Meziantou.Analyzer@3.0.20...3.0.21
3.0.20
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.20
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.19...3.0.20
3.0.19
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.19
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.18...3.0.19
3.0.18
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.18
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.17...3.0.18
3.0.17
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.17
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.16...3.0.17
3.0.16
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.16
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.15...3.0.16
3.0.15
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.15
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.14...3.0.15
3.0.14
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.14
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.13...3.0.14
3.0.13
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.13
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.12...3.0.13
3.0.12
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.12
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.11...3.0.12
3.0.11
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.11
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.10...3.0.11
3.0.10
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.10
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.9...3.0.10
3.0.9
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.9
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.8...3.0.9
3.0.8
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.8
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.7...3.0.8
3.0.7
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.7
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.6...3.0.7
3.0.6
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.6
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.5...3.0.6
3.0.5
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.5
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.4...3.0.5
3.0.4
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.4
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.3...3.0.4
3.0.3
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.3
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.2...3.0.3
3.0.2
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.2
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@3.0.1...3.0.2
3.0.1
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/3.0.1
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.302...3.0.1
2.0.302
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.302
Full Changelog: meziantou/Meziantou.Analyzer@2.0.301...2.0.302
2.0.301
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.301
What's Changed
New Contributors
Full Changelog: meziantou/Meziantou.Analyzer@2.0.300...2.0.301
2.0.300
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.300
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.299...2.0.300
2.0.299
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.299
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.298...2.0.299
2.0.298
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.298
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.297...2.0.298
2.0.297
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.297
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.296...2.0.297
2.0.296
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.296
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.295...2.0.296
2.0.295
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.295
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.294...2.0.295
2.0.294
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.294
Full Changelog: meziantou/Meziantou.Analyzer@2.0.293...2.0.294
2.0.293
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.293
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.292...2.0.293
2.0.292
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.292
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.291...2.0.292
2.0.291
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.291
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.290...2.0.291
2.0.290
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.290
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.289...2.0.290
2.0.289
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.289
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.288...2.0.289
2.0.288
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.288
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.287...2.0.288
2.0.287
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.287
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.286...2.0.287
2.0.286
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.286
Full Changelog: meziantou/Meziantou.Analyzer@2.0.285...2.0.286
2.0.285
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.285
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.284...2.0.285
2.0.284
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.284
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.283...2.0.284
2.0.283
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.283
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.282...2.0.283
2.0.282
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.282
Full Changelog: meziantou/Meziantou.Analyzer@2.0.281...2.0.282
2.0.281
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.281
Full Changelog: meziantou/Meziantou.Analyzer@2.0.280...2.0.281
2.0.280
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.280
Full Changelog: meziantou/Meziantou.Analyzer@2.0.279...2.0.280
2.0.279
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.279
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.278...2.0.279
2.0.278
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.278
What's Changed
Full Changelog: meziantou/Meziantou.Analyzer@2.0.277...2.0.278
2.0.277
NuGet package: https://www.nuget.org/packages/Meziantou.Analyzer/2.0.277
Full Changelog: meziantou/Meziantou.Analyzer@2.0.276...2.0.277
Commits viewable in compare view.
Updated Moq.Analyzers from 0.4.0 to 0.4.2.
Release notes
Sourced from Moq.Analyzers's releases.
0.4.2
Moq.Analyzers 0.4.2 🎉
This is a focused patch release with one mission: squash a false positive that was getting in the way of real-world LINQ-to-Mocks usage. If you've been seeing Moq1302 warnings on perfectly valid code, this one's for you. 🎯
A big thank you to @abatishchev for reporting the issue with a clear, actionable reproduction. Community reports like this make all the difference.
🐛 False Positive Fix for Moq1302
What was happening
If you were using
Mock.Ofwith a comparison expression — something totally normal like this:…you'd get a warning:
But there's nothing wrong with that code. It compiles, it runs, and it's how LINQ-to-Mocks expressions are supposed to work. The right-hand side of the comparison (
StatusCodes.Status200OK) is just a constant — it's not a mock setup member. The analyzer shouldn't have been looking at it at all. 😬The same false positive appeared with enum values, static fields, external locals, and other non-mock expressions on the right-hand side of
==,&&, or||comparisons.How it was fixed
The fix introduces a lambda parameter guard: before the analyzer flags a member access, it now walks the receiver chain to check whether the operation is actually rooted in the lambda parameter (i.e., the
rinr => r.Status == ...).A new
IsRootedInLambdaParameter()extension method traces the receiver chain — through property accesses, method calls, and conversions — all the way back to the lambda parameter. If the chain doesn't terminate in the lambda parameter, the member is silently skipped. Static members, constants, and external references pass right through without a warning.The guard is applied only to leaf member operations (property references, method calls). Composite operations like
&&and||still get decomposed normally, so chained comparisons liker.Prop == "a" && r.Other == "b"continue to be fully analyzed. No false negatives.As a bonus,
MoqKnownSymbolsis now threaded through the entire analysis chain instead of being recreated mid-analysis, and nestedMock.Ofcalls are excluded early to prevent false positives from inner mock expressions.🧪 Comprehensive Test Coverage
This release adds 961 new lines of test code covering the full surface area of the fix (#1020):
&&/||expressionsMock.Ofcalls👥 Contributors
Thank you to everyone who reported bugs and provided reproduction cases:
... (truncated)
0.4.1
Moq.Analyzers 0.4.1
This is a patch release addressing critical bugs reported after v0.4.0.
🐛 Bug Fixes
Moq1203 False Positives
ReturnsAsync,Callback, and similar chained methods. (#886, #919)Setupcall is wrapped in parentheses. (#895)Parenthesized Expression Handling
Assembly Loading
CS8032warning caused bySystem.Collections.Immutableassembly version mismatch. (#888)🤝 Contributors
Thank you to everyone who reported bugs, provided reproduction cases, and engaged in issue discussions to help make this release possible:
🔗 Resources
💬 Feedback
If you encounter any issues or have suggestions:
Thank you for using Moq.Analyzers!
0.4.1-alpha
v0.4.1-alpha
Prerelease containing 3 bug fixes since v0.4.0 to rebuild confidence with users.
Bug Fixes
Critical: CS8032 Fix
v0.4.0 shipped DLLs that referenced
System.Collections.Immutableversions incompatible with .NET 8 SDK hosts, causing CS8032 warnings on every build. This release downgrades the transitive dependency pins and adds CI load tests to prevent recurrence.Commits viewable in compare view.
Updated SonarAnalyzer.CSharp from 10.18.0.131500 to 10.22.0.136894.
Release notes
Sourced from SonarAnalyzer.CSharp's releases.
10.22
Hello everyone,
This release brings 4 new rules to help developers transition to C# 14, and a bunch of false positive fixes.
New rules
False Positive
Bugs
Other
10.21
### Bug
Feature
False Positive
10.20
This release brings 9 precision improvements — 7 false positive fixes and 2 false negative fixes — across rules S1116, S1144, S1210, S1643, S1854, S2365, S3254, S3265, and S127. It also promotes S2068 and S6418 from Security Hotspot to Vulnerability, making them visible directly in the IDE, and removes S3256 from the Sonar Way quality profile.
Changes
False Positive
False Negative
Rule specification
Maintenance
10.19
Documentation
False Positive
False Negative
Task
Bug
Commits viewable in compare view.
Updated xunit.analyzers from 1.26.0 to 1.27.0.
Release notes
Sourced from xunit.analyzers's releases.
No release notes found for this version range.
Commits viewable in compare view.
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 commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill 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 versionwill 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