Resolve 8 critical SonarQube issues (BLOCKER + CRITICAL non-S3776) #2
@@ -1,9 +1,12 @@
|
|||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Strata.SqlTools.Rules.Rule.Expression;
|
namespace Strata.SqlTools.Rules.Rule.Expression;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides implicit conversion operators and comparison operators for rule expressions.
|
/// Provides implicit conversion operators and comparison operators for rule expressions.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#pragma warning disable CS0660, CS0661
|
#pragma warning disable CS0660, CS0661
|
||||||
|
[SuppressMessage("Major Code Smell", "S3875:\"operator==\" should not be overloaded on reference types", Justification = "Intentional DSL syntax: `expr1 == expr2` constructs a Comparison rule expression, not a bool. The existing CS0660/CS0661 pragma documents the deliberate omission of Equals/GetHashCode for the same reason.")]
|
||||||
public partial class Expression
|
public partial class Expression
|
||||||
#pragma warning restore CS0660, CS0661
|
#pragma warning restore CS0660, CS0661
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user