Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump SonarAnalyzer.CSharp from 9.3.0.71466 to 9.4.0.72892 #1343

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 22, 2023

Bumps SonarAnalyzer.CSharp from 9.3.0.71466 to 9.4.0.72892.

Release notes

Sourced from SonarAnalyzer.CSharp's releases.

9.4

Release 9.4 brings one new rule for C# and four new rules for VB.NET. It also brings improvements by migrating two more rules to the new symbolic execution engine, fixing false positives, and improving memory allocation.

Thanks to @​sharwell for his contribution by reporting 7438. Thanks to @​Corniel for his contribution by implementing new rule S2925 in 7342.

New Rules

  • 7305 - [VB.NET] New rule S3966: Objects should not be disposed more than once
  • 7304 - [VB.NET] New rule S1944: Invalid casts should not be made
  • 7303 - [VB.NET] New rule S4158: Empty collections should not be accessed or iterated
  • 7342 - [C#, VB.NET] New Rule: S2925 Do not use Thread.Sleep() in a test

Improvements

  • 7302 - [C#] Migrate S3966 to the new Symbolic Execution engine
  • 7300 - [C#] Migrate S4158 to the new Symbolic Execution engine
  • 7301 - [C#] Improve S1944: Rule now detects more issues
  • 7322 - [C#] Symbolic Execution: Learn NotNull from ??= for nullable types
  • 7267 - [C#, VB.NET] Symbolic Execution: Add BinaryOperation for literals: division, remainder, xor
  • 7435 - [C#] Improve S4635: Update issue message
  • 7365 - [C#] Improve S2198: Update issue message
  • 7337 - Update RSPEC before 9.4 release

False Positives

  • 4261 - [C#] Fix S4158 FP: When a collection was filled by using delegates
  • 2147 - [C#] Fix S4158 FP: Variable instance mismatch
  • 7308 - [C#] Fix S3655 FP: Recognize ??= for nullable types
  • 6179 - [C#, VB.NET] Fix S4158 FP: When the collection was filled during for loops, was reported to be empty

Performance

  • 7438 - Memory allocation improvement: HasMatchingScope should not allocate a new delegate on every call
Commits

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 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)

@dependabot dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Jun 22, 2023
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #1343 (0e92d72) into main (c475819) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1343   +/-   ##
=======================================
  Coverage   83.58%   83.58%           
=======================================
  Files         270      270           
  Lines        6389     6389           
  Branches     1008     1008           
=======================================
  Hits         5340     5340           
  Misses        840      840           
  Partials      209      209           
Flag Coverage Δ
linux 83.58% <ø> (?)
macos 83.58% <ø> (ø)
windows ?

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

@martincostello martincostello enabled auto-merge (squash) June 22, 2023 17:49
@martincostello
Copy link
Member

@dependabot rebase

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

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/nuget/SonarAnalyzer.CSharp-9.4.0.72892 branch from f0833f9 to 0e92d72 Compare June 22, 2023 17:50
@martincostello martincostello merged commit 6b38850 into main Jun 22, 2023
@martincostello martincostello deleted the dependabot/nuget/SonarAnalyzer.CSharp-9.4.0.72892 branch June 22, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

1 participant