Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Dec 25, 2023

Bumps SonarAnalyzer.CSharp from 9.5.0.73987 to 9.16.0.82469.

Release notes

Sourced from SonarAnalyzer.CSharp's releases.

9.16

Hello everyone!

For this release, we focused on improving the symbolic execution engine, specifically rules S2589 and S2583, to increase their accuracy. We also deprecated rule S4792.

False Positive

  • 8470 - [C#, VB.NET] Fix S2583 FP: Should not raise on double condition
  • 8378 - [C#, VB.NET] Fix S2583 FP: Variable Set in Catch Block
  • 8140 - [C#, VB.NET] Fix S2583 FP: nested try catch blocks
  • 8094 - [C#, VB.NET] Fix S2583/S2589 FP: Delegate can be null when last invocation is removed but comparing the delegate against null gets reported as always false
  • 8326 - [C#] Fix S2589 FP: Var pattern should not raise
  • 8324 - [C#] Fix S2259 FP: Raising issue in unreachable code when using declaration pattern on unknown value
  • 8149 - [C#] Fix S2589 FP: Switch Expression default case with bool literal
  • 8011 - [C#] Fix S2589 FP: Rule is erroneously raised on var-type pattern matches that use when clauses
  • 8008 - [C#] Fix S2589 FP: Rule is raised on catch-all tuples in switch expressions
  • 7057 - [C#] Fix S2583/S2589 FP: When tuple deconstruction is used
  • 8489 - [VB.NET] Fix S1172 FP: VB names should not be case sensitive

Improvements

  • 8466 - [C#, VB.NET] Deprecate rule S4792

9.15

Hello everyone,

This release focuses on performance improvement. We made several changes to how we register our rules for analysis. Based on our measurement, we improve the build time by 5% to 15%, depending on project size and complexity! 🔥 🚀

Fixes

  • 8424 - Razor: SymbolReference locations for @typeparam are misplaced

Improvements

  • 8314 - [C#, VB.NET] Add timeouts to all regular expressions
  • 8402 - Update RSPEC before 9.15 release

False Positive

  • 8371 - [C#, VB.NET] Fix S1172 FP: Unused parameter cannot be removed

Performance

  • 8183 - [C#, VB.NET] Improve S5443 performance: Reuse compiled Regex
  • 8185 - [C#, VB.NET] Improve S2068 performance: Reuse compiled Regex
  • 8399 - [C#, VB.NET] Reduce time spend in HasMatchingScope for SyntaxNode registration
  • 8406 - [C#, VB.NET] Cache RegisterNodeAction checks result per SyntaxTree
  • 7858 - [C#, VB.NET] FileMetadataAnalyzer and UtilityAnalyzerBase should use IsGenerated from SyntaxTreeExtensions
  • 6558 - [C#, VB.NET] Performance: UtilityAnalyzerBase calls GetSemanticModel for each SyntaxTree
  • 7368 - [C#, VB.NET] UtilityAnalyzer: Use RegisterCompilationStartAction
  • 7411 - [C#, VB.NET] UtilityAnalyzer: Reduce lock contention in ShouldGenerateMetrics

9.14

Hello everyone!

We are happy to announce that we now have 5 dedicated Blazor rules 🚀 🥳

... (truncated)

Commits
  • a314cfc Fix S2583 FP: nested try catch blocks (#8484)
  • 98ea39c Fix S1172 FP: VB names should not be case sensitive (#8490)
  • a6ab794 Fix S2259 FP: Raising issue in unreachable code when using declaration patter...
  • 6dda358 Fix S2589 FP: Discard pattern in switch statement (#8485)
  • da53571 Fix S2583 FP: Should not raise on double condition (#8475)
  • 8fcf7fa Update RSPEC before 9.16 release (#8487)
  • cfee18a Fix S2583/S2589 FP: Tuple deconstruction assignment (#8461)
  • 30fc307 BUILD-3696 fix mend scan (#8482)
  • 022a8b5 BUILD-3696 Use Agent Pool on AWS (#8479)
  • 4541c82 Fix S2583 FP: Delegate unsubscription (#8457)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [SonarAnalyzer.CSharp](https://github.com/SonarSource/sonar-dotnet) from 9.5.0.73987 to 9.16.0.82469.
- [Release notes](https://github.com/SonarSource/sonar-dotnet/releases)
- [Commits](SonarSource/sonar-dotnet@9.5.0.73987...9.16.0.82469)

---
updated-dependencies:
- dependency-name: SonarAnalyzer.CSharp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Dec 25, 2023
@codecov
Copy link

codecov bot commented Dec 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c9ff76a) 80.59% compared to head (c5219dc) 80.59%.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           g11n-csharp-client    #2936   +/-   ##
===================================================
  Coverage               80.59%   80.59%           
===================================================
  Files                      45       45           
  Lines                    3169     3169           
  Branches                  382      382           
===================================================
  Hits                     2554     2554           
  Misses                    462      462           
  Partials                  153      153           
Flag Coverage Δ
unittests 80.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jan 22, 2024

Superseded by #2976.

@dependabot dependabot bot closed this Jan 22, 2024
@dependabot dependabot bot deleted the dependabot/nuget/singletonclient/g11n-csharp-client/SonarAnalyzer.CSharp-9.16.0.82469 branch January 22, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-not-required dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants