Merge pull request #19396 from michaelnebel/csharp/equality-on-floats

C#: Add `cs/equality-on-floats` to the Code Quality suite.
This commit is contained in:
Michael Nebel
2025-04-29 11:47:18 +02:00
committed by GitHub
4 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ ql/csharp/ql/src/Dead Code/DeadStoreOfLocal.ql
ql/csharp/ql/src/Likely Bugs/Collections/ContainerLengthCmpOffByOne.ql
ql/csharp/ql/src/Likely Bugs/Collections/ContainerSizeCmpZero.ql
ql/csharp/ql/src/Likely Bugs/DangerousNonShortCircuitLogic.ql
ql/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql
ql/csharp/ql/src/Likely Bugs/ReferenceEqualsOnValueTypes.ql
ql/csharp/ql/src/Likely Bugs/SelfAssignment.ql
ql/csharp/ql/src/Likely Bugs/UncheckedCastInEquals.ql

View File

@@ -5,7 +5,7 @@
* computation does not follow the standard rules of algebra.
* @kind problem
* @problem.severity warning
* @precision medium
* @precision high
* @id cs/equality-on-floats
* @tags reliability
* correctness

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* Changed the precision of the `cs/equality-on-floats` query from medium to high.

View File

@@ -14,3 +14,4 @@
- cs/non-short-circuit
- cs/useless-assignment-to-local
- cs/invalid-string-formatting
- cs/equality-on-floats