Bump SonarAnalyzer.VisualBasic from 8.15.0.24505 to 10.27.0.140913#134
Conversation
--- updated-dependencies: - dependency-name: SonarAnalyzer.VisualBasic dependency-version: 10.27.0.140913 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
This PR performs a major version upgrade of SonarAnalyzer.VisualBasic from 8.x to 10.x. While Codacy reports no quality issues, the upgrade introduces a structural breaking change within the NuGet package itself.
The internal binary layout has been moved into Roslyn-specific subdirectories ('roslyn3'/'roslyn4'). Since the project uses 'GeneratePathProperty', any existing manual path resolution logic for these analyzers is now broken. This must be addressed before merging to ensure the analysis engine continues to function.
About this PR
- The upgrade spans several major and minor versions. Beyond the directory structure changes, there is a risk of configuration incompatibilities or breaking changes in rule behavior that are not addressed by this single-line PackageReference update.
Test suggestions
- Verify that the analyzer engine initializes correctly and applies the new ruleset from version 10.27.0.140913
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that the analyzer engine initializes correctly and applies the new ruleset from version 10.27.0.140913
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| <PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="3.9.0" /> | ||
| <PackageReference Include="SQLitePCLRaw.core" Version="2.0.4" /> | ||
| <PackageReference Include="SonarAnalyzer.VisualBasic" Version="8.15.0.24505" GeneratePathProperty="true" /> | ||
| <PackageReference Include="SonarAnalyzer.VisualBasic" Version="10.27.0.140913" GeneratePathProperty="true" /> |
There was a problem hiding this comment.
🔴 HIGH RISK
This version bump changes the internal directory structure of the NuGet package. Version 10.x moves the analyzer DLLs into 'roslyn3' and 'roslyn4' subdirectories. Any logic using 'GeneratePathProperty' (PkgSonarAnalyzer_VisualBasic) to locate the DLLs must be updated to include the correct Roslyn-specific subdirectory, or analysis will fail.
Updated SonarAnalyzer.VisualBasic from 8.15.0.24505 to 10.27.0.140913.
Release notes
Sourced from SonarAnalyzer.VisualBasic's releases.
10.27.0.140913
Release notes - .NET Analyzers - 10.27
Feature
NET-1285 S2629: Add custom message for Log4Net and Castle.Core
NET-3666 Deprecate S5042 and move it from HotSpots to Code Smell
NET-3783 Update RSPEC before 10.27 release
False Positive
NET-2696 Fix S4260 FP: Extension Properties always raise
False Negative
NET-230 Fix S4056 FN: SpecifyIFormatProviderOrCultureInfo for C#13 compatibility
NET-2692 Fix S2190 FN: Recursive extension properties
NET-2705 Fix S3343 FN: Partial Constructor with attribute in definition
NET-2732 Fix S1172 FN: Extension blocks
NET-2745 Fix S4144 FN: Extension Members
NET-2829 Fix S3241 FN: Extension methods and extension blocks
NET-3541 Fix S1117 FN: add CatchDeclaration coverage and adopt LocalDeclarationKinds
10.26.0.140279
Release notes - .NET Analyzers - 10.26
Feature
NET-3694 Update RSPEC before 10.26 release
False Positive
NET-2346 Fix S1854 FP: Variable used after another assignment in finally
NET-2347 Fix S1168 FP: Do not report on value types
NET-3698 Fix S1210 FP: file-scoped types should be exempt
False Negative
NET-1265 Fix S2930 FN: raise issues on non-disposed RegistryKeys
NET-2685 Fix S3604 FN: Field Keyword, Partial Constructors, NullConditional Assignment
NET-2812 Fix S4275 FN: Field Keyword
NET-2999 Fix S6672 FN: Mismatch in primary constructor is not recognized
10.25
?
Feature
sonar.cs.cobertura.reportsPathsparameterFalse Positive
10.24
This release brings a batch of false negative fixes and analyzer crash fixes.
Bug Fixes
False Positives
False Negatives
10.23
This release brings a bunch of fixes! Enjoy.
Bug Fixes
False Positives
False Negatives
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
10.18
This releases focuses on fixing the false-positives that are raised on code making use of the new features in C# 14.
Improvement
Task
False Positive
False Negative
10.17
False Negative
Task
New Feature
Bug
Improvement
10.16.2
Rotations of binary signing keys
10.16.1
Rotations of binary signing keys
10.16
False Positive
False Negative
Bug
10.15
False Positive
IEnumerable<string?>toIEnumerable<string>Improvement
False Negative
Task
10.14
Hey everyone,
This release mostly focuses on mitigating (NET-2196) a performance regression that was introduced in 10.13.
Improvement
False Negative
Task
10.13
Hello everyone,
In this release, we've focused on:
False Positives
dynamicandoutshould not raiseImprovements
10.12
This release brings the VB version of S6418 and a few FP and FN fixes.
New Rule
False Positive
False Negative
Task
10.11
Hello everyone!
In this release we fixed a bunch of false positives and false negatives.
Additionally this version adds support for telemetry in order to gather information on feature usage. Telemetry, requires scanner 10.2.0 or greater.
False Positive
password:secretFalse Negative
10.10.1
Bugfix release to fix combability with SonarQube Cloud + a simplification to the
ProfileRegistrarTask
10.10
Hey everyone, this release mostly focuses on internal and technical things.
General
Internal Styling Rules
10.9
Hello everyone!
This is a mega-hardening release! Enjoy 😄
False Positive
False Negative
launchSettings.jsonfilesBug
Improvement
10.8
A small release with a few improvements for S1172, S2222 and S4158:
False Positive
False Negative
10.7
Improvement
Bug
10.6
Improvement
10.5
### Improvement
10.4
Improvements
In this release, we have added support for test density and metrics at the individual file level. You can now view the number of unit tests, as well as details on skipped tests, failed tests, and test duration, from all supported coverage tools (xUnit, MsTest, and nUnit).
Additionally, we have significantly optimized memory allocation, resulting in memory usage reduction during registration.
False Positive
False Negative
Task
10.3
False Positive
Other
10.2
New Rules
Improvement
False Positive
False Negative
10.1
False Negative
10.0
New rule
False negatives
False positives
Bug
Improvements
9.32
This rule includes the promotion of 4 rules to Sonar-way, the deprecation of 1 rule and 2 FP fixes.
Rule Promotions and Deprecations
False Positive
9.31
This release focuses on improving the SonarQube plugin for the .NET analyzers.
Improvements
9.30
Hello, everyone. In this release, we worked on hardening our live variable analysis, which improved the analyzer's accuracy.
False Positives
9.29
This release includes a lot of false positive and false negative fixes.
Improvements
asFalse Positive
DeconstructmethodsFalse Negative
9.28
False Positive
DynamicallyAccessedMembersattributecatchorwhenshould LiveIn for all try blocksFalse Negative
9.27
This release includes a ton of false positive and false negative fixes. We would also like to thank @sagi1623 for his contribution in #8464, which fixed three issues 🚀.
Improvements
False Positive
refpropertyFalse Negative
~/9.26
New Rules
Bug Fixes
Improvements
False Positive
IRouteTemplateProvideror inheriting from RouteAttributeFalse Negative
9.25.1
The latest Roslyn compiler version changes the way Razor files are compiled, and this hotfix release takes care of these changes. For more information check this issue.
Bug Fixes
9.25
Hello everyone,
This release comes with seven new rules for ASP.NET core alongside some improvements.
Enjoy!
New Rules
Bug Fixes
False Positive
Improvements
Rule deprecations and deletions
9.24
Hey everyone,
This release contains one new ASP.NET Rule (S6961) and several general improvements and fixes. Enjoy!
Improvements
Bug Fixes
False Positive
False Negative
9.23.2
Hello, everyone!
Today we are doing a bug fix release that also addresses a couple of false positives. We deprecated VB support for S6931 and removed the rule from the "Sonar Way" quality profile for VB.
Special thanks to @Corniel for fixing #9019!
Bug fix
Improvements
False Positive
PropertyReferencedoes not learn from the underlying symbol9.23.1
Bug Fixes
False Positive
9.23
Hello everyone!
This release comes with two new rules for ASP.NET, false positive fixes, and other improvements.
A big thank you to @Corniel for their external contribution with #8898!
New Rules
False Positives
Other improvements and fixes
Array.Find!when transformingx == false.9.22
New Rules
private static readonly[Non-SonarWay]False Positive
9.21
New Rules
Improvements
Bug Fixes
False Positive
9.20
Hey everyone!
This release brings a vast number of i.....
Description has been truncated