Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Update dependency SonarAnalyzer.CSharp to v9.30.0.95878 #3235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 2, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
SonarAnalyzer.CSharp (source) 9.23.0.88079 -> 9.30.0.95878 age adoption passing confidence

Release Notes

SonarSource/sonar-dotnet (SonarAnalyzer.CSharp)

v9.30.0.95878: 9.30

Compare Source

Hello, everyone. In this release, we worked on hardening our live variable analysis, which improved the analyzer's accuracy.

False Positives
  • 9473 - Fix S1854 FP: Raises when a variable is reassigned in a using body after it has been already assigned in using statement
  • 9472 - Fix S1854 FP: Raises when a variable is assigned in the switch statement and not used in the first case
  • 9471 - Fix S1854 FP: Raises when a variable is assigned in expression that is part of the ternary condition
  • 9468 - Fix S1854 FP: Throw should connect to outer catch
  • 9466 - Fix S1854 FP: Throw should visit finally

v9.29.0.95321: 9.29

Compare Source

This release includes a lot of false positive and false negative fixes.

Improvements
  • 2120 - [C#] Improve S3247: Rule should recommend pattern matching for new C# instead of as
  • 9465 - Update RSPEC before 9.29 release
False Positive
  • 7522 - [C#] Fix S1104 FP: Do not report in Unity3D serializable classes
  • 6990 - [C#] Fix S1144 FP: Event with a concrete sender
  • 3842 - [C#] Fix S1144 FP: Ignore unused Deconstruct methods
  • 8239 - [C#] Fix S1450 FP: When field is assigned value in event handler
  • 9494 - [C#] Fix S1694 FP: Abstract class with field or constructor
  • 9421 - [C#] Fix S1694 FP: Protected abstract methods
  • 3605 - [C#] Fix S2219 FP: Is operator used for pattern matching
  • 8266 - [C#] Fix S2259 FP: SE engine doesn't take into account element existence collection methods
  • 9485 - [C#] Fix S3247 FP: Should not report on member access objects
  • 6343 - [C#] Fix S3963 FP: Static constructor with conditional and no static field initialization
  • 7961 - [C#, VB.NET] Fix S2699 FP: Support Moq
False Negative
  • 9491 - [C#] Fix S3247 FN: When cast expression contains parentheses
  •   223 - [C#] Fix S3247 FN: Rule should catch more duplicated cast

v9.28.0.94264: 9.28

Compare Source

False Positive
  • 9432 - [C#] Fix S1144 FP: Unused fields in class with StructLayout when struct is in deep hierarchy class
  • 9379 - [C#] Fix S1144 FP: Diagnostic doesn't respect reflection with DynamicallyAccessedMembers attribute
  • 8342 - [C#] Fix S1144 FP: Private Attributes
  • 7068 - [C#] Fix S4144 FP: when type constraints are used
  • 3050 - [C#] Fix S1479 FP: Single line case clause should be ignored
  • 9447 - [C#] Fix S1854 FP: Value used in catch or when should LiveIn for all try blocks
  • 9440 - [C#] Fix S1854 FP: Value used in finally should LiveIn for all try blocks
  • 4948 - [C#] Fix S1854 FP: Value used in finally should LiveIn after throw
  • 6894 - [C#, VB.NET] Fix S3878 FP: When non-object array is passed to object[] params as first argument
  • 6893 - [C#, VB.NET] Fix S3878 FP: when a params argument is named
False Negative
  • 8719 - [C#, VB.NET] Fix S2583/S2589 FN: try-catch in loop, LVA purges symbol prematurely
  • 4940 - [C#] Fix S1854 FN: Proper support of try/catch statements
  • 1255 - [C#] Fix S1871 FN: Support single line conditional block

v9.27.0.93347: 9.27

Compare Source

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
  • RSPEC change - Rule S1694: Promoted to SonarWay
  • 9390 - Rule S6608: Benchmark is benchmarking the wrong things
  • 8795 - [C#] Improve S1694: Remove part about protected constructor
  • 5417 - Enable multiple project level issues
  • 9372 - Update RSPEC before 9.27 release
False Positive
  • 9247 - [C#] Fix S2629 FP: Constant fields in interpolated string
  • 9241 - [C#, VB.NET] Fix S2094 FP: Allow empty queries
  • 9106 - [C#] Fix S3459 FP: Backing field with ref property
  • 8522 - [C#, VB.NET] Fix S3220 FP: Rule does not take into account generics
  • 8436 - [C#] Fix S3253 FP: Don't raise for primary constructor in type declarations without parameters when they inherit from types with parameters
  • 8199 - [C#, VB.NET] Fix S2737 FP: Raised when exception filter is used
  • 8025 - [C#] Fix S2325 FP: Partial method implementations
  • 7521 - [C#] Fix S2743 FP: Should not raise when base type is generic
  • 7137 - [VB.NET] Fix S1654 FP: Do not report on event handlers, interfaces and overrides
False Negative
  • 9002 - [C#, VB.NET] Fix S6931 FN: Route templates starting with ~/
  • 6644 - [C#] Fix S2190 FN: No issues raised if recursion is inside an EventDeclaration by @​sagi1623
  • 6643 - [C#] Fix S2190 FN: No issues raised if recursion is inside a ConversionOperatorDeclaration by @​sagi1623
  • 6642 - [C#] Fix S2190 FN: No issues raised if recursion is inside an indexer by @​sagi1623
  • 4081 - [C#] Fix S2743 FN: Static fields of nested class inside generic class

v9.26.0.92422: 9.26

Compare Source

New Rules
  • 8871 - [C#] New rule S6932: Use model binding instead of reading raw request data
  • 8992 - [C#] New rule S4347: Secure random number generators must not output predictable values
  • 8996 - [C#] New rule S6781: JWT secret keys should not be disclosed
  • 8982 - [C#] New rule S6377: XML signatures should be verified securely
  • 8998 - [C#] New rule S5344: Passwords should not be stored in plain-text or with a fast hashing algorithm
Bug Fixes
  • 8577 - Fix S2234 Bug: AD0001 is thrown due to referencing a location outside of the current compilation
Improvements
  • 9282 - [C#] S6964: Issue is reported on the attribute instead of the property
False Positive
  • 9360 - [C#] Fix S6964 FP: Properties decorated with the [BindNever] attribute
  • 9337 - [C#] Fix S6964 FP: Add more attributes to the exclusions
  • 9336 - [C#] Fix S6966 FP: Don't raise on XmlReader and XmlWriter methods
  • 9331 - [C#] Fix S6964 FP: Property with a default value
  • 9285 - [C#] Fix S6964 FP: Do not raise in properties with required modifier
  • 9284 - [C#] Fix S6964 FP: Should not raise for reference properties in nullable context
  • 9275 - [C#] Fix S6964 FP: Don't raise on properties annotated with the JsonRequiredAttribute
  • 9269 - [C#] Fix S6966 FP: EntityFrameworks DbContext/DBSet Add/AddRange methods are preferred over their Async counterpart
  • 9265 - [C#] Fix S6966 FP: MongoDB Find can not be replaced by FindAsync
  • 9252 - [C#] Fix S6934 FP: Abstract Controller base class
  • 8985 - [C#] Fix S6934 FP: Attributes implementing IRouteTemplateProvider or inheriting from RouteAttribute
False Negative
  • 9263 - [C#] Fix S6964 FN: Rule should raise in case of value type property annotated with RequiredAttribute

v9.25.1.91650: 9.25.1

Compare Source

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
  • 9288 - [C#] Metrics analyzer for Razor: Lines of code are outside the range of the file

v9.25.0.90414: 9.25

Compare Source

Hello everyone,

This release comes with seven new rules for ASP.NET core alongside some improvements.
Enjoy!

New Rules
  • 9096 - [C#] New Rule S6966: Awaitable method should be used
  • 9095 - [C#] New Rule S6967: ModelState.IsValid should be called in controller actions
  • 9094 - [C#] New Rule S6964: The value type properties of a model class should be nullable or marked as "Required" to avoid under-posting.
  • 9093 - [C#] New rule S6968: Actions that return a value should be annotated with ProducesResponseTypeAttribute containing the return type
  • 9092 - [C#] New rule S6965: You should use HttpAttribute in API controller actions
  • 9091 - [C#] New rule S6962: You should pool HTTP connections with HttpClientFactory
  • 9089 - [C#] New rule S6960: Controllers should not have too many responsibilities
Bug Fixes
  • 9193 - Fix AD0001: Named Attribute Arguments in S6930
False Positive
  • 9219 - [C#] Fix S1144 FP: Getters/Setters of property with attribute are being flagged
Improvements
  • 9187 - Update RSPEC before 9.25 release
  • 9186 - [C#] Rule S6961: Implement CodeFix
Rule deprecations and deletions
  • 9175 - [VB.NET] Delete S2353: Remove deprecated rule
  • 9189 - [C#] Deprecate S6803

v9.24.0.89429: 9.24

Compare Source

Hey everyone,
This release contains one new ASP.NET Rule (S6961) and several general improvements and fixes. Enjoy!

Improvements
  • 9090 - [C#] New rule S6961 for C#: API Controllers should derive from ControllerBase instead of Controller
  • 8696 - Fix coverage aggregation from multiple reports
  • 9048 - Create SonarAnalyzer.CSharp.Styling project
  • 7774 - [C#, VB.NET] Fix S1144: Nested type constructor accessibility is wrong in the rule message
  • 8980 - Update RSPEC before 9.24 release
Bug Fixes
  • 9113 - [C#, VB.NET] AD0001: ArgumentNullException in SymbolicExecutionRunner
  • 8977 - [C#] CfgAllPathValidator AreAllSuccessorsValid Stack Overflow on Windows and error MSB6006 in Linux Codespaces
False Positive
  • 9063 - [C#, VB.NET] Fix S2094 FP: Should not raise for messages
  • 9062 - [C#, VB.NET] Fix S2094 FP: Documentation using the DefaultDocumentation package
  • 7591 - [C#, VB.NET] Fix S2094 FP: Implicit parameterless constructor widens the scope of the base class constructor
  • 8163 - [C#, VB.NET] Fix S3878 FP: Jagged arrays
False Negative
  • 6724 - [C#, VB.NET] Fix S1144 FN: Unused private getters and private setters
  • 6699 - [C#] Fix S1144 FN: Unused local functions

v9.23.2.88755: 9.23.2

Compare Source

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
  • 9022 - S6931 and S6934 raises AD0001 warnings
Improvements
  • 9075 - Update RSPEC before 9.23.2 release
False Positive
  • 9011 - [C#] Fix S2094 FP: Primary constructor calling base class constructor
  • 8905 - [C#, VB.NET] Fix S2259 FP: PropertyReference does not learn from the underlying symbol

v9.23.1.88495: 9.23.1

Compare Source

Bug Fixes
  • 8984 - Fix StackOverflow in CfgAllPathValidator.AreAllSuccessorsValid
  • 8991 - [C#, VB.NET] Fix TypeInitializationException in SymbolStartAnalysisContextWrapper
False Positive
  • 8532 - [C#, VB.NET] Fix S1144 FP: Do not raise on serializable members

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 272c686 to 7799727 Compare April 11, 2024 13:26
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.23.1.88495 Update dependency SonarAnalyzer.CSharp to v9.23.2.88755 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 7799727 to 84f71cf Compare April 23, 2024 15:24
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.23.2.88755 Update dependency SonarAnalyzer.CSharp to v9.24.0.89429 Apr 23, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 84f71cf to a2a2c19 Compare May 6, 2024 16:06
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.24.0.89429 Update dependency SonarAnalyzer.CSharp to v9.25.0.90414 May 6, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from a2a2c19 to c24e8de Compare May 23, 2024 11:14
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.25.0.90414 Update dependency SonarAnalyzer.CSharp to v9.25.1.91650 May 23, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from c24e8de to 46d3c49 Compare May 31, 2024 12:14
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.25.1.91650 Update dependency SonarAnalyzer.CSharp to v9.26.0.92422 May 31, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 46d3c49 to fa41927 Compare June 11, 2024 11:12
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.26.0.92422 Update dependency SonarAnalyzer.CSharp to v9.27.0.93347 Jun 11, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from fa41927 to 697afa5 Compare June 26, 2024 18:40
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.27.0.93347 Update dependency SonarAnalyzer.CSharp to v9.28.0.94264 Jun 26, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 697afa5 to 7e70e6e Compare July 12, 2024 11:00
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.28.0.94264 Update dependency SonarAnalyzer.CSharp to v9.29.0.95321 Jul 12, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 7e70e6e to 3ead4f9 Compare July 23, 2024 11:04
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.29.0.95321 Update dependency SonarAnalyzer.CSharp to v9.30.0.95878 Jul 23, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 3ead4f9 to 52f143c Compare July 23, 2024 16:08
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp to v9.30.0.95878 Update dependency SonarAnalyzer.CSharp Jul 23, 2024
@renovate renovate bot force-pushed the renovate/sonaranalyzer.csharp-9.x branch from 52f143c to 197a747 Compare July 23, 2024 19:29
@renovate renovate bot changed the title Update dependency SonarAnalyzer.CSharp Update dependency SonarAnalyzer.CSharp to v9.30.0.95878 Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant